Hacker News new | ask | show | jobs
Show HN: PrinceJS – Now with OpenAPI, Zod Validation, and Built-In Middleware
1 points by lilprince1218 152 days ago
Hey HN, Matthew here (13, from Nigeria). Following the great feedback on my initial PrinceJS post [1], I'm back with a major update focused on real-world usability.

*What's New:* • *OpenAPI Docs*: Automatic `/docs` endpoint for your API. • *Input Validation*: Built-in, type-safe validation powered by Zod. • *Essential Middleware*: CORS, logging, rate limiting, and static file serving are now included. • *JSX Support*: Option to render HTML directly for full-stack apps. • *Clean Starter*: Use `bun create princejs my-app` to begin.

The core is still fast (~21.7k req/s, 2.2 kB) and dependency-free, but now it's a complete toolkit. These additions address the "what's missing?" question from the first thread.

I'd love your brutal feedback on these new features and the developer experience.

Try it: `bun create princejs my-app` GitHub: https://github.com/MatthewTheCoder1218/princejs Docs: https://princejs.vercel.app/docs

[1] https://news.ycombinator.com/item?id=45957402