Sevo
Composable Server Primitives Across Runtimes
Web-standard server primitives with context-based handlers, middleware, and runtime adapters for Bun, Deno, Node.js, and stream-based hosts.
export default {
routes: {
"/users/:id": (ctx) => {
return Response.json({ userId: ctx.params.id });
},
},
fetch() {
return Response.json({ hello: "world!" });
},
};
/*
Node.js: $ npx sevo
$ pnpx sevo
$ yarn dlx sevo
Deno: $ deno run -A npm:sevo
Bun: $ bunx --bun sevo
CLI: $ sevo
*/