OOrveth

Documentation

Server

@orveth/server — routing, middleware, RequestContext, and HTTP listeners.

@orveth/server is the Phase 1 core. It exports the Orveth class with path and wildcard routing, improved RequestContext, middleware composition, and 404/405 handling.

server.ts
import { Orveth } from "@orveth/server";

const app = new Orveth();

app.get("/users/:id", (ctx) => ctx.ok({ id: ctx.params.id }));

await app.listen(3000);