Fetch
Fetch
A type-safe, fluent fetch wrapper for TypeScript.
Philosophy
Fetch reimagines HTTP requests in TypeScript. It moves away from loose, untyped fetch calls to a structured, type-safe, and fluent API.
It is built on the Builder Pattern, ensuring that every request is constructed correctly before it is executed. With first-class support for Zod (or any validator), it bridges the gap between runtime data and static types.
Core Features
Fluent Builder
Construct requests using a chainable, immutable builder API. Readable, maintainable, and safe.
Type-Safe Requests
Infer request bodies, search parameters, and responses automatically. No more 'any'.
Structured Routing
Organize your API endpoints into a hierarchical, type-safe router structure.
Middleware
Intercept and modify requests and responses globally or per-route.