Tools/TanStack/query

query

πŸ€– Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

50.2k β˜…+39/wkestablishedTypeScriptMIT License β†’trending

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Aug 2026

Server data is not application state, but almost everyone stores it that way. TanStack Query fixes that: it handles caching, background refetching, request deduplication, pagination, and knowing when data went stale, so you stop writing the same useEffect plus loading plus error triangle in every component. MIT licensed, with adapters for React, Vue, Svelte, Solid, and plain JS.

It is protocol agnostic, which matters more than it sounds. Query does not care whether you fetch over REST, GraphQL, tRPC, or a promise you wrote by hand. You hand it a key and a function and it owns the rest. The devtools panel alone earns the install, because watching cache entries go stale and refetch in real time is usually where the bug turns out to be.

Nothing to run and nothing to pay. It lives in your bundle. The cost is conceptual: query keys are a cache namespace, and getting them wrong produces stale data that reads like a backend bug. Spend an afternoon on key structure before spreading it across an app.

The catch is that Query is not a state manager and people keep using it as one. Client state, form state, and UI state still need their own answer. Keep Query on the server-data side of that line.

Free vs Self-Hosted vs Paid

fully free

Free

All of it. MIT licensed, every framework adapter, the devtools, no paid tier and no cloud service attached to it.

Self-Hosted Costs

None. It is a client-side library that ships in your bundle. The core is small enough that bundle size is rarely the argument against it.

Paid

There is no paid version of TanStack Query. The project runs on GitHub Sponsors and corporate partners. TanStack sells other things around the ecosystem, but Query itself is not gated and never has been.

When to Pay

Never, in the sense of a license. Sponsor the project if it saves your team real hours, because sponsorship is the only revenue holding it up.

Completely free and MIT licensed with no paid tier. Funded by sponsors, so sponsor it if it earns a place in your stack.

What to do by team size

Solo
free
Small team
free
Medium team
free; agree on query key conventions before the app grows
Large team
free; a shared query key factory prevents cache collisions across teams
Self-hosting ops:trivial

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Score
95/100 Β· A+
Adoption30/30
Maintenance25/25
Community15/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

High adoption: 50,183 starsActive community: 4,189 forksCommunity discussions enabledOrganization account (29 public repos)Notable author: 11,273 followersAuthor also built: TanStack/charts (676 stars)

License: MIT License

Use freely, including commercial. Just keep the license.

Commercial use: βœ“ Yes

About

Owner
TanStack (Organization)
Stars
50,246
Forks
4,229

Also by TanStack

Explore Further

More tools in the directory