What Makes Bun Unstoppably Fast?
Built from scratch in Zig on top of WebKit's JavaScriptCore engine, Bun boots in milliseconds, runs TypeScript out of the box, and installs dependencies up to 20x faster than traditional package managers.
js
// High-performance HTTP server with Bun
const server = Bun.serve({
port: 3000,
fetch(req) {
const url = new URL(req.url);
if (url.pathname === "/api/health") {
return Response.json({ status: "ok", runtime: "Bun 1.4" });
}
return new Response("Hello from Bun!");
},
});
console.log(`Server running at http://localhost:${server.port}`);

