๐ŸฅŸ

Bun

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.

Quick facts
Type: JavaScript/TypeScript runtime, bundler, test runner, and package manager
Made by: Oven (open-source)
License: Free / open-source (MIT)
Platforms/Hosting: macOS, Linux, Windows (via WSL)
Primary use case: Fast all-in-one replacement for Node.js + npm + bundler + test runner
Jump to: ExampleGetting startedBest for

Example

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!"); }
});

Getting started

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
Best for: JavaScript/TypeScript projects โ€” especially new ones โ€” where startup speed and install speed matter, and teams who want one tool instead of separately wiring up Node, npm/yarn, a bundler, and a test runner.