engineeringarchitecture
Why We Chose Bun
·1 min read
The runtime decision
When we set out to build this documentation platform, we had a key decision: which JavaScript runtime should power it?
Why not Node.js?
Node.js is battle-tested and has a massive ecosystem. But we wanted something faster out of the box — especially for server-side rendering React components.
Enter Bun
Bun gave us everything we needed:
- Fast startup — The server starts in milliseconds, not seconds.
- Built-in bundler — No need for webpack, esbuild, or vite as separate tools.
- TypeScript native — No transpilation step required.
- npm compatible — All our favorite packages just work.
The results
Our documentation pages render in under 5ms server-side. The entire build (MDX compilation + client bundle + CSS) completes in seconds.
// This is all it takes to start the server
const app = new Elysia()
.use(staticPlugin())
.use(docsRoutes)
.listen(3000);
Bun was the right call. If you're building a content-heavy site with SSR, give it a try.
Written by
The Team
Building great developer tools.