Guide
This guide covers everything you need to build typed API clients with Sorbus.
Getting Started
New to Sorbus? Start here:
- Introduction — what Sorbus is and how it works
- Installation — add Sorbus to your project
Core
Once the basics are covered, explore each concept in depth:
- Client — create a typed client from the contract
- Contract — define your API shape with Zod
- Requests — make requests with full type inference
- Error Handling — throw by default, catch when you choose
- Key Transforms — bridge camelCase and snake_case
- Caching — ETag / If-None-Match for server-side fetching
Extras
- Apiwork — generate contracts from Rails with zero drift