TanStack/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. observed · 2026-10-11
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 2597
- days_rel: 18
- days_push: 10
- n_releases_24m: 1664
Adoption not part of the score
50412 stars · 4250 forks observed · 2026-10-11
What it is AI-extracted, prompt v1, taxonomy v1, 2026-09-21, confidence 0.99
TanStack Query is a TypeScript/JavaScript library for asynchronous state management and server‑state utilities. It provides declarative APIs for fetching, caching, synchronizing, and updating data in web applications.
Use cases
- fetch and cache API data in a React app
- manage server‑state with automatic refetching and background updates
- implement infinite scrolling or pagination with deduped requests
- optimistically update UI after a mutation
- share fetched data across multiple components without duplicate network calls
- prefetch data for route transitions in SPA frameworks
When to choose
- You need a robust data‑fetching layer with built‑in caching and stale‑while‑revalidate semantics.
- Your application heavily relies on server‑state that must stay in sync across components.
- You want framework‑agnostic support (React, Vue, Svelte, Solid, etc.) with a consistent API.
- You prefer TypeScript support and fine‑grained control over query lifecycles.
When to avoid
- You only need simple one‑off fetch calls without caching or background refetching.
- Your project already uses a full state‑management solution that includes data fetching (e.g., Redux Toolkit Query).
- You require a server‑side only solution without a client library.
Facets
library · maturity active
caching state-management http-client middleware web-development frontend data-science browser tanstack-query react-query typescript server-state data-fetching async-state nodejs react vue svelte solid angular preact
10 sources
- readme: https://github.com/TanStack/query · fetched 2026-10-11 · c8fe19d2c823
- homepage: https://tanstack.com/query · fetched 2026-09-07 · 2c887586d541
- site_page: https://tanstack.com/query/latest/docs/framework/react/overview · fetched 2026-09-07 · 0e50d82f9263
- site_page: https://tanstack.com/query/latest/docs/framework/react/guides/important-defaults · fetched 2026-09-07 · 4aea6d62ced4
- site_page: https://tanstack.com/query/latest/docs/reference/QueryClient · fetched 2026-09-07 · 69a28376adbf
- site_page: https://tanstack.com/query/latest/docs/framework/react/examples/simple · fetched 2026-09-07 · f313f1304ac8
- site_page: https://tanstack.com/query/latest/docs/blog · fetched 2026-09-07 · 7742c2010223
- site_page: https://tanstack.com/query/latest/docs/framework · fetched 2026-09-07 · 4eca16a4bb9f
- site_page: https://tanstack.com/query/latest/docs/contributors · fetched 2026-09-07 · 8385738fb9d5
- site_page: https://tanstack.com/blog · fetched 2026-09-07 · f45f670c0ce6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| TanStack/query | main | 95 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem