Install
npm
npm install @hectoday/http deno
deno add jsr:@hectoday/http Runs on Deno, Bun, and Cloudflare Workers.
Why
Most frameworks abstract HTTP away. @hectoday/http does the opposite.
You work directly with Request, Response,
headers, status codes, routing, and guards.
So you actually learn how the web works, not just how to use a framework.
Example
import { route, setup } from "@hectoday/http";
const app = setup({
handlers: [
route.get("/", {
resolve: () => new Response("Hello HTTP"),
}),
],
});
Deno.serve(app.fetch); No wrappers. No custom response objects. Just HTTP.
Principles
- Web standards first
Built on the Fetch API - Explicit control flow
You decide what happens - Minimal surface area
Small API, easy to reason about - Education-first
Clarity over convenience
Good for
- Learning HTTP properly
- Teaching web fundamentals
- Understanding request lifecycles
- Building APIs
Learn the protocol. Then build the abstractions.