What is Bun?
Bun is an open-source JavaScript runtime and toolkit designed as a fast, drop-in replacement for Node.js workflows. It is written in Zig and powered by JavaScriptCore, the engine used in Safari. A single bun executable includes a runtime, an npm-compatible package manager, a Jest-compatible test runner and a bundler, so you can replace several tools at once. Bun aims for Node.js compatibility so most existing packages and projects work.
Key features
- Runtime: runs JavaScript, TypeScript and JSX files directly, with no separate build step.
- Package manager:
bun installis compatible with npm andpackage.jsonand is known for its speed. - Test runner:
bun testoffers a Jest-compatible API with snapshots and mocking. - Bundler: bundle frontend and backend code, or compile apps into standalone executables.
- Node.js compatibility: supports Node APIs and modules such as
fs,httpandpath. - Built-in APIs: a fast HTTP server (
Bun.serve), SQLite, a Postgres client, S3 and more. - Web standards: fetch, WebSocket, Request and Response are built in.
Who is it for?
Bun is for JavaScript and TypeScript developers who want faster installs, tests and startup times, and for teams who want fewer tools in their stack. It is used for backends, CLIs, scripts and frontend tooling.
Use cases
- Speeding up dependency installs in CI
- Running TypeScript scripts without configuration
- Building HTTP APIs and WebSocket servers
- Fast unit tests with
bun test - Shipping CLIs as single-file executables
Pricing
Bun is free and open source (MIT license). See the installation docs to get started.
What's new and trending
Bun ships frequent point releases. Bun v1.4.4 was released on October 22, 2026, following v1.4.3 on October 10, 2026 (release notes).
Getting started
- Install Bun on macOS or Linux with
curl -fsSL https://bun.sh/install | bash(see the docs for Windows). - Run
bun initto create a new project. - Run a file with
bun run index.ts. - Install packages with
bun installorbun add <package>. - Write tests and run them with
bun test.
Alternatives
Deno is the other modern JavaScript runtime, with built-in security permissions and tooling. Vite handles frontend builds and dev servers, Vitest and Jest are standalone test runners, and Biome is a fast formatter and linter. For web frameworks that run well on Bun, see Hono.
FAQ
Is Bun a replacement for Node.js? Bun is designed as a drop-in replacement for many Node.js projects, and most npm packages work. Check compatibility for native modules.
Is Bun free? Yes. Bun is open source under the MIT license.
Does Bun support TypeScript? Yes. Bun runs TypeScript and JSX files directly.
Can I use Bun only as a package manager?
Yes. Many teams use bun install with an existing Node.js project.
Does Bun work on Windows? Yes. Bun supports Windows, macOS and Linux.

