Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
Bun is an all-in-one JavaScript runtime, bundler, test runner, and package manager designed for speed, built primarily in Rust with C++ bindings for JavaScriptCore integration. The project includes extensive benchmarks comparing Bun's performance against other tools like esbuild, Webpack, Jest, and Vitest across bundling, HTTP serving, testing, file uploads, WebSockets, and other workloads. The repository contains the core implementation organized as a Rust Cargo workspace of approximately 200 crates covering the runtime, CLI, parser, transpiler, and built-in modules, along with comprehensive test suites organized by functionality (Bun-specific APIs, Node.js compatibility, Web APIs, CLI commands, bundler, and integration tests).