Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

TanStack Query (React Query)

Powerful data fetching and caching library for React applications.

State and data fetching npm MIT

Used in agent projects
32
0.3% of 12,697 public repos built with AI coding agents
Rank in state and data fetching
#14 of 20
by use in those projects
Downloads
1.7M
npm, last 7 days, react-query
GitHub stars
50.4K
last push Oct 10, 2026

How TanStack Query (React Query) is used

TanStack Query (React Query) is a dependency in 32 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.3%), #14 of 20 in state and data fetching. The most used alternative there is TanStack Query. Projects that use it most often also use ESLint (96.9%), React (96.9%), Axios (53.1%).

Often used with TanStack Query (React Query)

ESLint96.9% of TanStack Query (React Query) projects · 2.5× more than average
React96.9% of TanStack Query (React Query) projects · 2.2× more than average
Axios53.1% of TanStack Query (React Query) projects · 5.3× more than average
Tailwind CSS84.4% of TanStack Query (React Query) projects · 2.4× more than average
Solana Web3.js56.2% of TanStack Query (React Query) projects · 3.4× more than average
Solana Wallet Adapter46.9% of TanStack Query (React Query) projects · 10.9× more than average
Next.js62.5% of TanStack Query (React Query) projects · 2.8× more than average
Solana SPL Token40.6% of TanStack Query (React Query) projects · 5.6× more than average

Install

Packagenpm install react-query
Main stacksNext.js (20), TypeScript / JavaScript (11), Python (1)
Example projectsGrape-Labs/grape-art, WTFAcademy/frontend, m8s-lab/pump-fun-frontend, rustsol114/raydium-token-launchpad, ChangeYourself0613/token_launchpad

Alternatives to TanStack Query (React Query)

All state and data fetching

Tool Used in agent projectsDownloads / wk GitHub starsLicense
TanStack Query npm
Hooks for managing, caching and synchronizing remote data in React.
1,217 (9.6%) 65.8M 50.4K MIT
Zustand npm
Lightweight state management for React with minimal boilerplate.
752 (5.9%) 60.8M 58.8K MIT
RxJS npm
Reactive programming library for composing async events and data streams in JavaScript.
176 (1.4%) 104M 31.7K Apache-2.0
React Redux npm
Official React bindings for Redux state management with hooks.
135 (1.1%) 39.2M 23.4K MIT
Jotai npm
Minimal React state management with atoms as primitive building blocks for flexibility.
124 (1.0%) 6.6M 21.3K MIT
SWR npm
React hooks library for data fetching with caching, revalidation and real-time updates.
123 (1.0%) 18.8M 32.5K MIT
Redux Toolkit npm
Official Redux library with built-in best practices and reduced boilerplate for state management.
120 (0.9%) 32.6M 11.2K MIT
Immer npm
Immutable state management by mutating a draft in a simpler API.
77 (0.6%) 64.6M 29K MIT
Is TanStack Query (React Query) right for your project? Ask AgentGid →