Bun is an all-in-one JavaScript/TypeScript runtime built by Oven, ranking #34 in usage among developer tools at roughly 5.5%. It bundles a runtime, package manager, bundler, and test runner into a single fast binary, positioned as a drop-in, much faster alternative to running Node.js plus npm plus separate bundling and testing tools. Developers reach for it to cut down both install time and cold-start time in JS/TS projects.
Bun installs dependencies and runs TypeScript files directly, with no separate compile step or ts-node needed.
# install all dependencies (reads package.json)
bun install
# run a TypeScript file directly, no build step
bun run index.ts
// index.ts
const server = Bun.serve({
port: 3000,
fetch(req) { return new Response("Hello from Bun!"); }
});
Install Bun with its official install script, which works on macOS, Linux, and Windows (via WSL).
# install Bun (macOS/Linux)
curl -fsSL https://bun.sh/install | bash
# verify the install
bun --version