Warning
ProBun is a work in progress, expect many new features and changes in the future.
ProBun, a better web server for Bun. ProBun aims to enhance your web development experience by providing a more efficient and flexible server solution.
- Fast: ProBun is built on top of Bun.serve, a fast and efficient web server created by the Bun team. ProBun aims to be over
494.31%
better than Express. view benchmark - TypeScript Support: ProBun is written in TypeScript, making it easier to write type-safe code.
- File-based Routing: ProBun uses the file system as the routing mechanism, making it easier to manage your routes. Example:
// routes/index.ts - This will handle localhost:3000/
import { Context } from "probun";
export async function GET(req: Request): Promise<Response> {
const c = Context(req)
return c.json({ hello: "world" });
}
To get started with ProBun, we recommend you to read the installation guide