I’m 13 and I built a Bun framework that’s 2x faster than Express 🚀
Source: Dev.to
Overview
A 97 kB (2.4 kB gzipped) Bun‑native framework that achieves 21,748 req/s.
PrinceJS is a “Super‑Framework”: tiny yet packed with batteries‑included features.
Features
- ✅ Built‑in SQLite ORM (powered by
Bun.sqlite) - ✅ Native cron scheduler (no extra npm packages)
- ✅ Functional JSX rendering (clean UI without the React bloat)
- ✅ OpenAPI/Swagger generation (auto‑sync your docs)
- ✅ Validation with Zod
Benchmark (Intel i7‑6600U)
| Framework | Req/s | Size (gzipped) |
|---|---|---|
| PrinceJS | 21,748 | 2.4 kB |
| Hono | 22,124 | 7.5 kB |
| Elysia | 25,312 | 64.8 kB |
| Express | 9,325 | ~2 MB |
Example
import { prince } from "princejs";
import { Html, Body, H1, render } from "princejs/jsx";
const app = prince();
app.get("/", () => render(
Html(Body(H1("Hello from PrinceJS!")))
));
app.listen(3000);