Skip to content

BunA fast JavaScript

Bun is a fast all-in-one JavaScript runtime.

Bun 3.3
Bundling 10,000 React components
Build time in milliseconds (Linux x64, Hetzner)
Bun v1.3.0
269.1 ms
Rolldown v1.0.0-beta.42
494.9 ms
esbuild v0.25.10
571.9 ms
Farm v1.0.5
1608 ms
Rspack v1.5.8
2137 ms

Four tools, one toolkit

Use them together as an all-in-one toolkit, or adopt them incrementally. bun test works in Node.js projects. bun install can be used as the fastest npm client. Each tool stands on its own.

Node.js

JavaScript Runtime

Starts 3x faster than Node.js

A fast JavaScript runtime designed as a drop-in replacement for Node.js

$ bun ./index.ts
โœ“Node.js API compatibility
โœ“Comprehensive builtin standard library
โœ“Hot & watch mode built-in
โœ“TypeScript, JSX & React (zero config)
โœ“PostgreSQL, Redis, MySQL, SQLite
โœ“Environment variables with .env
NPM

Package Manager

30x faster

Install packages up to 30x faster than npm with a global cache and workspaces

$ bun install
โœ“Simple migration from npm/pnpm/yarn
โœ“Workspaces, monorepos
โœ“Dependency auditing with bun audit
โœ“Eliminate phantom dependencies
โœ“Lifecycle scripts & postinstall handling
โœ“Block malicious packages
VITEST

Test Runner

Jest & Vitest

Jest-compatible test runner with built-in code coverage and watch mode

$ bun test
โœ“Jest-compatible expect() API
โœ“Watch mode & lifecycle hooks
โœ“Concurrent test execution
โœ“Snapshot testing
โœ“DOM APIs via happy-dom
โœ“Built-in code coverage
VITE

Bundler

Vite and esbuild

Bundle TypeScript, JSX, React & CSS for both browsers and servers

$ bun build ./app.tsx
โœ“TypeScript & JSX built-in (no config)
โœ“React support out of the box
โœ“Single-file executables
โœ“CSS imports & bundling
โœ“Build for the browser, Bun, and Node.js
โœ“.html, .css, .ts, .tsx, .jsx & more

Released under the MIT License.