Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: PrinceJS v1.7.7 Update. Down to 2.2 kB and top (13yo dev)
1 point by lilprince1218 50 days ago | hide | past | favorite
Hey HN (update from my Nov 21 post),

Matthew here, 13 from Nigeria. After the autocannon correction (thx @saltyaom!), here's v1.7.7 of PrinceJS.

New since launch: • Bundle: ~2.2 kB gzipped (tree-shaking tweaks, down 600 bytes) • Speed: 21,748 req/s on oha (-c 100 -z 30s, Bun 1.2.x) – top 3 confirmed • Vs others: Hono 22,124 | Elysia 25,312 | Express 9,325

Full server (8 lines): import { prince } from "princejs"; const app = prince();

app.get("/", () => "Hello world "); app.get("/users/:id", (req) => ({ id: req.params.id }));

app.listen(3000);

Cloud VM benchmarks next. Feedback on size/speed?

Repo: https://github.com/MatthewTheCoder1218/princejs npm i princejs

Matthew (@Lil_Prince_1218)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: