bunxyz
v0.1.9
Published
Minimalist, fast, file-system based routing framework for Bun
Maintainers
Readme
Bunxyz 🚀
A minimalist, fast, file-system based routing framework for Bun, inspired by Express and Next.js/Remix. Leverage Bun's incredible speed with a familiar and intuitive development experience.
Features ✨
- ⚡️ Blazing Fast: Built directly on Bun's native
Bun.serveAPI. - 📁 File-System Routing: Define your API routes effortlessly using the directory structure under
src/api(configurable). - ⚙️ Dynamic Routes: Supports parameters like
/api/products/[id].ts. - 🧩 Middleware Support: Easily add Express-style middleware functions.
- 🔧 Developer Friendly: Includes
BunxyzRequest(withreq.params) andBunxyzResponsehelpers (.json(),.text(),.html()). - ✍️ Explicit Method Handlers: Use named exports (
GET,POST,PUT,DELETE, etc.) in your route files.
