Documentation
Typed Fetch client for TanStack Query. Start here, then jump to the guide that matches your stack.
Start
| Page | What you’ll do |
|---|---|
| Getting started | Install and make the first request |
| Introduction | Mental model and entry points |
| Why this API? | How it differs from axios / ky / ofetch |
| Comparison | Feature matrix |
| Migrate | From axios, ky, ofetch, or fetch |
Core guides
| Page | Topic |
|---|---|
| Configuration | Tokens, status handlers, defaults |
| Errors | FetchError and narrowing |
| TanStack Query | React Query and Vue Query |
| Plugins | Named interceptors and refresh token |
Integrations
| Page | Stack |
|---|---|
| React | FetchProvider, useFetch, useSse |
| Vue & Nuxt | Plugin, composables, Nuxt |
| SSR | Next.js and Nuxt cookie forwarding |
| SSE | Auth-capable streams |
| Upload | Multipart + progress |
| tRPC | Shared client link |
| OpenAPI CLI | Codegen |
| Migrate | axios / ky / ofetch / fetch → tanstack-fetch |
