DEV Community

Little Prince
Little Prince

Posted on

I’m 13 and Just Made a Web Framework 3x Faster Than Express

Yesterday I published princejs on npm.

  • <2 kB
  • Zero dependencies
  • Native Bun binary
  • Built in 3 days on my school laptop
  • 500+ downloads in <24 hours

Same laptop. Same test. Same autocannon command:

Express → 8,000 requests in 10s

princejs25,000 requests in 10s

benchmark

To Start

npm i princejs

or 

pnpm add princejs
Enter fullscreen mode Exit fullscreen mode

Then

import { Prince } from "princejs";
const app = new Prince();

app.get("/", () => app.json({ message: "Wassup" }));
app.listen(3000);
Enter fullscreen mode Exit fullscreen mode

That’s it. No bloat. No legacy. Just speed.

Repo: https://github.com/MatthewTheCoder1218/princejs
npm: https://npmjs.com/package/princejs

Top comments (0)