Type-safe HTTP clients for TypeScript with runtime validation.
Note: This project was inspired by the original
fetcher-tspackage, but has been extended with additional validation libraries and features.
| Package | Description | Documentation |
|---|---|---|
| @lonli-lokli/fetcher-typebox | Fetcher with TypeBox validation | README |
| @lonli-lokli/fetcher-zod | Fetcher with Zod validation | README |
- 🔒 Type-safe: End-to-end type safety from HTTP responses to your application code
- ✅ Runtime validation: Validate API responses with your choice of validation library
- 🧩 Composable: Handle different status codes with different data shapes
- 🔄 Transformable: Transform API responses into the shape your application needs
- 🌐 Cross-platform: Works in Node.js, browsers, and React Native
MIT