Unflare (v2)
Just another express-inspired web framework for serverless like cloudflare's workers.
import { Unflare } from 'unflare';
const app = new Unflare();
app.get('/', () => {
const { res } = app;
res.send('Hello World!');
});
export default app;
Installation
Requires at least Node v18, but preferably Node v19 or latest.
This module is intended to be use for cloudflare's workers to help manage routing and handling of request. To avoid issues, install this after creating your wrangler/workers project.
Installation is done using the npm install
command:
$ npm install unflare
Features
- specifically for cloudflare's workers.
- write like you would with express.
- treeshakeable and ES6 compliant.
- scoped and recursive handling of middlewares, routers, routes and error handlers.
- auto extraction of queries, params, cookies and body of request.
GUIDES
- Tutorials:
- Contributing