Bun has joined Anthropic — and Anthropic is betting on Bun
NEWBun v1.3.14 released

Bun is a fast JavaScript 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.3.14

curl -fsSL https://bun.sh/install | bash
View install script ↗

Bundling 10 copies of three.js

with sourcemaps and minification · milliseconds (lower is better)

Bun
v1.3.0
269ms
Rolldown
v1.0.0-beta.42
495ms
esbuild
v0.25.10
572ms
Farm
v1.0.5
1608ms
Rspack
v1.5.8
2137ms
Linux x64 · bench/bundle in oven-sh/bunreproduce
Bundling 10 copies of three.js — Linux x64 · bench/bundle in oven-sh/bun
runtimeversionbundle timepeak RAM
Bunv1.3.0269.1 ms
Rolldownv1.0.0-beta.42494.9 ms
esbuildv0.25.10571.9 ms
Farmv1.0.51,608 ms
Rspackv1.5.82,137 ms

Used by

A minute with Bun

One binary for the whole workflow.

Install, develop, run, test and ship with the same tool. Every step below is a real command with real output.

v1.3.14Latest release · May 2026

Built-in image processing, HTTP/3, and 7× faster warm installs.

Bun 1.3.14 fixes 92 issues and keeps shrinking the toolchain you need around it: image transforms without sharp, HTTP/2 and HTTP/3 clients in fetch(), QUIC in Bun.serve(), and a global store that makes repeat installs nearly free.

In production

Bun in production

Claude Code ships to millions of developers as a Bun executable. Midjourney pushes every image notification through Bun's WebSocket server. Railway runs its serverless functions on it. Hear it from them:

Claude Code

Claude Code ships to every developer as a Bun single-file executable.

Claude Code is a single file with Bun inside it. Users download it and run it. There is no install step and no startup lag.

Midjourney

Every image notification Midjourney sends goes through Bun's WebSocket server.

Pub/sub, backpressure and per-message compression are built into Bun.serve() — no ws, no socket.io, no sidecar.

Railway

Railway built its serverless Functions product on Bun.

A Railway Function is a TypeScript file. Bun runs it as-is, so a deploy skips the build and a cold start takes milliseconds.

Frameworks

Bun runs Next.js, Remix, Nuxt, Astro, SvelteKit, Hono, Elysia & friends.

Node.js compatibility means your framework already works. Swap npm run dev for bun --bun run dev and keep shipping — with Bun's SQL, S3 and shell APIs available right inside your route handlers.

app/blog/[slug]/page.tsx
import { s3, $, sql } from "bun";
export default async function BlogPage({ params }) {
const [post] = await sql`SELECT * FROM posts WHERE slug = ${params.slug}`;
const img = s3.file(post.imageKey).presign();
const words = await $`wc -w < ${post.file}`.text();
return <Article post={post} img={img} words={words} />;
}

Batteries included

The APIs you need, baked in.

Most servers need an HTTP stack, a database client, Redis, S3, hashing and a way to shell out. Bun ships all of them, so that is a stack of packages you never install or patch.

Bun.serve() with routes, params and static responses.

Docs

server.ts

import { serve, sql } from "bun";

const server = serve({
  port: 3000,
  routes: {
    "/": new Response("Welcome to Bun!"),
    "/api/users/:id": async req => {
      const [user] = await sql`SELECT * FROM users WHERE id = ${req.params.id}`;
      return Response.json(user);
    },
  },
});

console.log(`Listening on ${server.url}`);

Frontend

Full speed, full‑stack

Point Bun at an HTML file and you get a dev server with instant hot reloading, then bun build --production for optimized bundles. React, TypeScript, Tailwind and CSS imports work out of the box.

  1. 1
    bun init --react

    Scaffold a React app (or add index.html to any project).

  2. 2
    bun ./index.html

    Dev server with HMR that preserves state; browser logs stream to your terminal.

  3. 3
    bun build ./index.html --production

    Tree-shaken, minified, code-split bundles.

bun ./index.html — hot reloading

Bun is a complete toolkit.

Feature NodeDeno
Runtime
Node.js compatibility
Web Standard APIs
TypeScript
JSX
Native addons
Module loader plugins
Built-in APIs
PostgreSQL, MySQL & SQLite drivers
S3 client
Redis client
Tooling

Try it on the repo
you have open
right now.

Install Bun, open the project you were already working on, and run bun install. Your code, dependencies and scripts stay exactly as they are.

curl -fsSL https://bun.sh/install | bash
View install script ↗