# Bun vs Node.js

| 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](https://nodejs.org/en/about/previous-releases)), and its type stripping is stable, but it ignores `tsconfig.json` and does not run `.tsx` files ([Node TypeScript docs](https://nodejs.org/api/typescript.md)).

- Source: https://nodejs.org/api/typescript.md
- Checked: 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](https://bun.com/) 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](https://bun.com/docs/runtime/nodejs-compat)

- Source: https://bun.com/
- Checked: 28 November 2026

## Bun

A fast all-in-one JavaScript runtime, package manager, bundler and test runner aimed at Node.js compatibility.

Best for: Fast local development loops and greenfield TypeScript projects.

[Bun](https://www.devcurator.com/tools/bun.md)

## Node.js

The JavaScript runtime that npm packages, server-side JavaScript and tooling are written for first.

Best for: Production servers and tooling where ecosystem compatibility matters most.

[Node.js](https://www.devcurator.com/tools/nodejs.md)
