Skip to content

Repository files navigation

🚀 Fetcher-TS

Type-safe HTTP clients for TypeScript with runtime validation.

Note: This project was inspired by the original fetcher-ts package, but has been extended with additional validation libraries and features.

📦 Packages

Package Description Documentation
@lonli-lokli/fetcher-typebox Fetcher with TypeBox validation README
@lonli-lokli/fetcher-zod Fetcher with Zod validation README

✨ Features

  • 🔒 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

📄 License

MIT

About

A strongly-typed fetch wrapper for TypeScript applications with runtime validation

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages