npm install @hectoday/http
Build HTTP APIs
with web standards
A typed HTTP framework that runs on Deno, Bun, Node.js, and Cloudflare Workers. Routes, validation, auth, hooks -- all built on Request and Response.
Deno Bun Node.js Cloudflare Workers
server.ts
import { setup, route } from "@hectoday/http"; const app = setup({ routes: [ route.get("/hello", { resolve: () => new Response("Hello World"), }), ], }); Deno.serve(app.fetch);
Web standards all the way down
Request, Response, Headers, URL. No proprietary abstractions. Your handlers receive a Request and return a Response, just like the platform intended.
Validation that flows into types
Define a Zod schema for params, query, body, or headers. The resolved types show up in your handler automatically. No extra generics, no casting.
Hooks, not middleware
Before and after hooks for logging, timing, transforms, and error handling. Scoped to individual routes or the entire app.
Same code, any runtime
Deploy to Deno, Bun, Node.js, or Cloudflare Workers without changing a line. No adapters, no platform-specific imports.