Skip to content

Documentation ​

Typed Fetch client for TanStack Query. Start here, then jump to the guide that matches your stack.

Start ​

PageWhat you’ll do
Getting startedInstall and make the first request
IntroductionMental model and entry points
Why this API?How it differs from axios / ky / ofetch
ComparisonFeature matrix
MigrateFrom axios, ky, ofetch, or fetch

Core guides ​

PageTopic
ConfigurationTokens, status handlers, defaults
ErrorsFetchError and narrowing
TanStack QueryReact Query and Vue Query
PluginsNamed interceptors and refresh token

Integrations ​

PageStack
ReactFetchProvider, useFetch, useSse, useWs
Vue & NuxtPlugin, composables, Nuxt
SolidFetchProvider, useFetch, useSse, useWs
AngularprovideFetchClient, injectFetch, useSse, useWs
Svelte & SvelteKitsetFetchClient, useFetch, useSse, useWs
SSRNext.js and Nuxt cookie forwarding
SSEAuth-capable streams (all frameworks)
WebSocket & streamsWebSocket, WebTransport, NDJSON with auth + useWs
UploadMultipart + progress
tRPCShared client link (all frameworks)
OpenAPI CLICodegen
Migrateaxios / ky / ofetch / fetch → tanstack-fetch

API · Examples · Blog ​

MIT Licensed · Created by Mohammad Garmabi · Not an official TanStack package