fest
Fetch-style Server Primitives
Middleware, request context, lifecycle events, and runtime adapters for Node.js, Deno, Bun, and stream-based hosts.
import { serve } from "@hornjs/fest";
serve({
fetch(req: Request) {
return Response.json({ hello: "world!" });
},
});
/*
Node.js: $ node --experimental-strip-types server.ts
CLI: $ npx @hornjs/fest
Deno: $ deno run -A npm:@hornjs/fest
Bun: $ bunx --bun @hornjs/fest
*/