E2E Type Safety
Your backend router type flows into every request. Wrong paths and wrong bodies break at compile time. Zero bundle cost.

E2E Type Safety
Your backend router type flows into every request. Wrong paths and wrong bodies break at compile time. Zero bundle cost.
Runtime Validation
Zod schemas at the network boundary. API drift gets caught before it reaches your UI.
Offline-First
GET requests fall back to IndexedDB cache. Mutations queue locally and sync automatically.
Request Deduplication
Concurrent requests for the same resource share one in-flight Promise. Zero duplicate server hits.
npm install @weldjs/http zodnpm install @weldjs/react zod # + React componentsimport { Weld } from '@weldjs/http'import { z } from 'zod'
type AppRouter = { 'v1/products': { GET: { response: { id: string; name: string; price: number }[] } POST: { body: { name: string; price: number }; response: { id: string } } }}
const api = new Weld<AppRouter>('https://api.example.com')
const ProductSchema = z.object({ id: z.string(), name: z.string(), price: z.number(),})
// Type-safe · Validated · Offline-resilient · Deduplicatedconst { signal, promise } = api.get('v1/products', z.array(ProductSchema))