Launched this week

tanstack-fetch
Typed fetch client for TanStack Query
3 followers
Typed fetch client for TanStack Query
3 followers
The fetch client that speaks queryFn. Returns data on success, throws a typed FetchError on failure and honors AbortSignal, so TanStack Query cancellation just works. Tiny core on native fetch, with built-in 401ā429 handlers, single-flight refresh-token, SSR cookie forwarding, upload progress, SSE with auth, WebSocket and tRPC transport. Adapters for React, Vue, Solid, Angular and Svelte. Free and open source.





Free
Launch Team

CloudflareDeploy serverless functions globally in seconds
Promoted
Hey Product Hunt! š I'm Mohammad, the maker of tanstack-fetch.
I use TanStack Query in almost every project, and I kept writing the same glue code around fetch: parse JSON, throw on non-2xx, pass the AbortSignal, refresh the token, type the errors. So I turned it into a small library.
tanstack-fetch is a typed fetch client shaped for queryFn:
⢠Returns data on success, throws a typed FetchError on failure
⢠Honors AbortSignal, so query cancellation just works
⢠Tiny core built on native fetch, no axios needed
⢠Optional extras: SSR, SSE, WebSocket, upload progress, refresh-token, tRPC
⢠Adapters for React, Vue, Solid, Angular and Svelte
It's free and open source (independent project, not an official TanStack package). There's a playground on the site if you want to try it without installing anything.
I'd love your feedback: what's missing, what's confusing, and how you handle fetching with TanStack Query today. Thanks for checking it out! š