
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.
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 freeFree
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
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
Trust Signals
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
A tiny TypeScript visualization grammar for responsive, accessible, server-rendered chartsβpowered b
Tiny, fast Markdown parsing and rendering for blogs and documentation
π€ Type-safe durable execution for agents and workflows. Resumable runs, append-only history, and com
Explore Further
More tools in the directory
next.js
The React Framework
142.0k βcc-switch
A cross-platform desktop All-in-One assistant tool for Claude Code, Codex, OpenCode, openclaw & Gemini CLI.
130.6k βopen-design
π¨ Local-first, open-source alternative to Anthropic's Claude Design. β‘ 19 Skills Β· β¨ 71 brand-grade Design Systems Β· πΌοΈ sandboxed preview Β· π¦ HTML/PDF/PPTX export. π€ Runs on Claude Code / Codex / Cursor / Gemini CLI / OpenCode / Qwen / Copilot / Hermes / Kimi CLI.
93.2k β