Bun vs Node.js
Bun: Fast local development loops and greenfield TypeScript projects.; Node.js: Production servers and tooling where ecosystem compatibility matters most.
| Field | Bun | Node.js |
|---|---|---|
| Pricing | Open source | Open source |
| Open source | Yes | Yes |
| Self-hostable | Yes | Yes |
| Ecosystem | JavaScript / TypeScript | JavaScript / TypeScript |
| License | MIT | MIT |
| Category | Runtimes | Runtimes |
Choose Node.js over Bun when
Choose it for the V8 runtime that is the reference for every API Bun implements. Node 26 is the latest LTS and its type stripping is stable, but it ignores tsconfig.json and does not run .tsx files.
Node.js: runs on V8. Node 26 is the latest LTS (releases), and its type stripping is stable, but it ignores tsconfig.json and does not run .tsx files (Node TypeScript docs).
SourceChecked 25 November 2026
Choose Bun over Node.js when
Choose it when you want one executable to run your JavaScript application, install packages, run tests and bundle code.
Bun ships its runtime, package manager, test runner and bundler together. Bun overview It aims to run Node.js applications, and its compatibility guide records gaps in APIs such as node:module and node:async_hooks. Check the specific functions used by your application and dependencies before moving them to Bun. Node.js compatibility
SourceChecked 28 November 2026
Bun
A fast all-in-one JavaScript runtime, package manager, bundler and test runner aimed at Node.js compatibility.
Choose Bun if
Fast local development loops and greenfield TypeScript projects.
Why it’s here
One executable is a runtime, package manager, test runner, bundler, type checker and formatter, and you can adopt one piece at a time: bun install and bun test work in an existing Node.js project without switching runtime (bun.com). TypeScript and JSX run with no configuration. Built-in clients for PostgreSQL, MySQL, SQLite (SQL), Redis (docs index) and S3 (S3) mean fewer dependencies for a typical back end.
Pick it when
- You are moving an npm, Yarn or pnpm project.
bun installmigratespackage-lock.json,yarn.lockorpnpm-lock.yamlto its text lockfile,bun.lock, on first run; npm 6 lockfiles are the exception (lockfile docs). - You ship a command-line tool as a single-file executable, built with
bun build --compile(compatibility page). - You start a new TypeScript service and want
.tsand.tsxfiles to run as they are, withbun checkreporting the same errors astscfrom TypeScript 7 (bun check).
Skip it when
Your production code depends on Node APIs that Bun marks as partial or missing on its compatibility page, which tracks Node.js v26:
node:async_hooks:createHookand the async ID functions are stubs. Bun invokes no hooks apart frominitforprocess.nextTick, and async IDs are always 0.node:crypto: BoringSSL lacks theed448,x448,rsa-pss,dsaandml-kem-512key types.node:cluster: load balancing HTTP requests across processes works only on Linux.node:v8:serializeuses JavaScriptCore's format, not V8's.node:seais not implemented;bun build --compilereplaces it.
Bun's stated policy is that a package that works in Node.js but fails in Bun is a Bun bug.
Current state
The latest release is 1.4.4, published 2026-10-22; it added bun fmt, a Prettier-compatible formatter (1.4.4 notes). Bun 1.4.0, released 2026-08-20, is the first version written in Rust instead of Zig (rewrite post) and added 1,517 tests from the Node.js test suite (1.4 notes). Anthropic acquired Bun in December 2025; the announcement states that Bun stays MIT licensed and the same team works on it (announcement). The official site is now bun.com.
Setup
From the installation guide:
curl -fsSL https://bun.com/install | bash # macOS, Linux
powershell -c "irm bun.sh/install.ps1|iex" # Windows 10 1809 or later
Watch out for
Bun runs TypeScript without checking types unless you pass --check or run bun check in CI (runtime docs). Its test runner is Jest-compatible, but its docs state that not everything in Jest is implemented (test docs), so run your suite before switching. Bun itself is MIT, but it statically links JavaScriptCore and WebKit under LGPL-2, which matters if you redistribute a modified bun binary (LICENSE.md).
Node.js
The JavaScript runtime that npm packages, server-side JavaScript and tooling are written for first.
Choose Node.js if
Production servers and tooling where ecosystem compatibility matters most.
Why it’s here
Node.js runs JavaScript outside the browser. Its standard library supplies asynchronous primitives for network and filesystem operations, so an application can keep serving other work while it waits for I/O. A server does not need to create a new thread for each request. Node.js introduction
Pick it when
- You want to run a web server or command-line program with the same JavaScript language used by your frontend team. The standard library includes networking and filesystem modules, and the introduction shows an HTTP server built with the built-in API. Node.js introduction
- You want to deploy against a release line that receives long-term support. The release schedule identifies active and maintenance LTS lines and recommends them for production applications. Release schedule
- Your program needs to perform CPU-intensive JavaScript work alongside I/O. Node.js exposes worker threads for CPU work, and its worker documentation describes using a pool instead of creating a worker for each task. Worker threads
Skip it when
- You expect the runtime itself to type-check TypeScript or honor
tsconfig.jsonpath aliases. The built-in support strips erasable types, and the docs point to third-party tooling for full TypeScript support. TypeScript documentation
Current state
Node.js 26.13.1 (Lithium) is the latest stable release on the download page. The distribution index dates it November 10, 2026, and the release announcement is dated November 11. Downloads Distribution index Release announcement Node.js itself uses the MIT licence, and its distribution includes separately licensed dependencies listed in the same file. Node.js licence
Setup
Select the LTS build for your operating system on the official download page. The release provides a Windows installer, a macOS installer and Linux binaries. Downloads Release files
Watch out for
The built-in TypeScript runner refuses TypeScript files in node_modules, and tsconfig.json aliases are ignored. Plan to ship compiled JavaScript from packages that rely on those features. TypeScript limitations Worker threads are intended for CPU-heavy work. For routine asynchronous I/O, use the built-in APIs. Worker threads