oven-sh/bun
JavaScript and TypeScript runtime with bundler, test runner and package manager
Bun ships as a single `bun` executable that runs JS and TS (including JSX) on JavaScriptCore, as a drop-in Node.js replacement. The same binary provides a Node-compatible package manager, a bundler, a test runner and a single-file executable compiler. It also has built-in APIs for an HTTP server, WebSockets, SQLite, PostgreSQL, Redis and S3.
Strengths
- One executable covers runtime, package manager, bundler and test runner
- Runs TypeScript and JSX directly without a separate build step
- Built-in clients for SQLite, PostgreSQL, Redis and S3 and a WebSocket-capable HTTP server
- Canary build published on every commit to main; `bun upgrade` self-updates
Weaknesses
- Node.js compatibility is a goal, so some Node APIs or native modules may differ
- x64 builds can fail with illegal instruction errors on CPUs lacking required features
- Linux kernel 5.6+ strongly recommended; minimum is 5.1
- Not a backend service: it is a runtime, so auth and storage are up to you
- no GPU