Skip to content
SPECIFICTION
Get listed

Bun vs Nub

Bun

bun.sh

Nub

nubjs.com

Side by side

FigureBunNub
Price fromFree—
Free planYes—
Free trial——
Open source——
WindowsYesYes
macOSYesYes
LinuxYesYes
Plans published10
Spec score · JavaScript Package Managers8.5 (#3)7.3 (#14)
Package managerBun’s npm-compatible package manager supports workspaces, catalogs, overrides, patches, and a readable lockfile.Nub install is a pnpm-compatible package manager that can round-trip npm, pnpm, and bun lockfiles; Yarn lockfiles are read-only.
RuntimeBun runs JavaScript and TypeScript on JavaScriptCore and supports Node.js APIs and node_modules.It runs TypeScript, JSX, and JavaScript files on the stock Node binary without requiring a separate build step.

Plans

Bun

  • BunFree

Bun pricing →

Nub

No plans published.

Nub pricing →

In their own words

Bun

Bun combines a JavaScript runtime, package manager, test runner, and bundler in one binary. It runs JavaScript and TypeScript on JavaScriptCore, with support for Node.js APIs and node_modules. Its npm-compatible package manager supports workspaces, catalogs, overrides, patches, readable lockfiles, private registry authentication, dependency resolution, and offline installation. The test runner includes Jest-compatible expectations, mocks, snapshots, DOM testing, and coverage. For builds, Bun handles TypeScript, JSX, CSS, and HTML for browsers and servers, and includes a development server with hot module reloading and single-file executables. Built-in APIs cover PostgreSQL, MySQL, SQLite, Redis, S3-compatible storage, HTTP, and WebSockets. The project names Next.js, Remix, Nuxt, Astro, SvelteKit, Hono, and Elysia among frameworks that run on Bun. It is MIT-licensed and developed publicly on GitHub. Bun runs on Linux, macOS, and Windows, subject to minimum OS versions and x64 processors with SSE4.2. Install options include an official script, npm, Homebrew, Windows package managers, and Docker. Support and discussion are available through Discord.

Visit bun.sh

Nub

Nub is a free, open-source Rust toolkit for running TypeScript, JSX and JavaScript with the stock Node binary. It executes modern syntax, supports tsconfig.json, environment files and data-file imports, and does not require a separate build step. Nub loads .env files, watches entrypoints and imported files, and can provision project-pinned Node versions from .node-version, .nvmrc or engines and devEngines. Its script runner handles lifecycle hooks, npm_* variables, forwarded arguments and workspace filters. The installer works with npm, pnpm and Bun lockfiles; Yarn lockfiles are read-only. Supply-chain controls deny dependency build scripts by default, check OSV advisories and delay releases newer than 24 hours, with nub approve-builds for review. Nub includes nubx, GitHub Actions, a container image and deployment guides. It supports Linux, macOS and Windows on listed x64 and arm64 architectures.

Visit nubjs.com