Bun 1.4.4 is out: a faster all-in-one JavaScript toolkitSee what's new
NEWBUN 1.4.4 IS HERE

Bun is a fastJavaScript runtime& toolkit.All in one.

Runtime, package manager, test runner and bundler in a single binary. Use bun install or bun test in an existing Node.js project, or run the whole thing on Bun.

Install Bun v1.4.4View install script
curl -fsSL https://bun.sh/install | bash
Then follow the quickstart
Installing a Next.js app
Lower is better · s
bunv1.4
0.21s
yarnv1.22.22
1.76s
pnpmv11.21.0
1.92s
npmv12.0.2
4.45s
0s1s2s3s4s5s
warm cache · lockfile present · node_modules removed · Linux x64bun.sh · official benchmark
Used by
THE ALL-IN-ONE TOOLKIT

From the first line of code to production

Bun isn't a loose collection of tools. The runtime, package manager, test runner, and bundler share the same foundation and work out of the box.

RUNTIME

One runtime.
From script to server.

Bun runs TypeScript, JSX and TSX natively, with an HTTP server, WebSockets, SQLite, S3 and password hashing built in. Install fewer packages. Ship more code.

  • TypeScript and JSX with zero config
  • Node.js compatibility and the npm ecosystem
  • Bun.serve, SQLite and S3 built in
  • One binary, millisecond startup
Learn more
server.tsTypeScript
const server = Bun.serve({
  port: 3000,
  async fetch(req) {
    const url = new URL(req.url);
    if (url.pathname === "/api")
      return Response.json({ ok: true });
    return new Response("Hello from Bun!");
  },
});

console.log(`Listening on ${server.url}`);
$ bun run server.tsListening on http://localhost:3000
QUICKSTART

Your first Bun project in seconds

Install Bun, create a project, and run it. No config files, no extra dependencies.

01Install Bun
curl -fsSL https://bun.sh/install | bash
02Create a project
bun init my-app
03Run it
cd my-app && bun run index.ts

Everything you need. One binary.

Install Bun, open the docs, and ship something fast.