Sevok
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 sevok
$ pnpx sevok
$ yarn dlx sevok
Deno: $ deno run -A npm:sevok
Bun: $ bunx --bun sevok
CLI: $ sevok
*/