Nub vs Vite+
Where Nub and Vite Plus overlap and where they differ. Nub is a package manager and runtime layer on stock Node; Vite Plus is an integrated frontend toolchain.
Nub and Vite+ overlap on the everyday Node workflow: both run package.json scripts and package binaries, and both provision a project's Node version. Beyond that they differ. Nub is a runtime and package manager on stock node; Vite+ is the Vite team's integrated frontend toolchain.
| Functionality | Nub | Vite+ |
|---|---|---|
Script runner (npm run equivalent) | ✅ | ✅ |
Bin runner (npx) | ✅ | ✅ |
Node.js version manager (nvm) | ✅ | ✅ |
TypeScript runner (tsx) | ✅ | ❌ |
| Package manager | ✅ | ❌ — passthrough |
Package manager shims (corepack) | ✅ | 🟡 — npm only |
| Dev server | ❌ — bring your own | ✅ — Vite |
| Bundler | ❌ — bring your own | ✅ — Rolldown |
| Formatter | ❌ — bring your own | ✅ — Oxfmt |
| Linter | ❌ — bring your own | ✅ — Oxlint |
| Type checker | ❌ — bring your own | ✅ — tsgo (embedded) |
| Test runner | ❌ — bring your own | ✅ — Vitest |
Running files
Both tools run a file on the project's Node version. The difference is what happens to the file.
nub app.ts # augmented, on stock Node
vp node app.ts # plain NodeNub augments the file it runs, on the stock node binary:
- TypeScript — the full syntax surface: enums, decorators, parameter properties,
import =, and extensionless imports - JSX —
.jsxand.tsxrun directly, with the runtime resolved from yourtsconfig - Module resolution —
paths,baseUrl, andextendsfromtsconfig, applied at runtime - Env files —
.envand.env.[mode]loaded automatically - Data imports — YAML, TOML, JSON5, JSONC, and text files load like JSON
- Polyfilled APIs —
Worker, web storage,Temporal,URLPattern, and other newer globals
Running a file with vp node is unaugmented. It relies on Node's own type stripping, with no tsconfig-aware resolution and none of those loaders or polyfills.
Nub transpiles TypeScript but does not type check it; bring your own type checker.
Package management
Nub is a full package manager, powered by the embedded aube engine. It resolves the dependency graph, links node_modules, and round-trips the lockfile your project already uses.
Vite+ passes through to an existing package manager: in a pnpm project, vp install runs pnpm's install.
The frontend toolchain
Vite+ is broader in scope. It ships the dev server, bundler, formatter, linter, type checker, and test runner from the table above as one tested stack. Nub leaves those to the tools and frameworks you install as devDependencies.