@hectoday/http

Every request has a path.
Hectoday HTTP chooses clarity over convenience.
Inbound request. Outbound response.
Nothing hidden. Nothing assumed.
From here, it makes sense.

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


Good for


Learn the protocol. Then build the abstractions.