stackpicks.dev
Back to gallery
TanStack/query preview
TanStack
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.

Stars
49.5k
Forks
3.8k
Watchers
49.5k
Open issues
192
TypeScriptMIT main Updated 1 hour ago~20 stars/day lifetime
Editor's take

The #1-rated tool in the React 2025 survey. Async state management — fetching, caching, syncing server state. Not a state library exactly but solves what most React apps actually needed Redux for. Default choice.

Use this if

You are fetching data from any API in React. Yes, you need this.

Skip if

You are on Next.js App Router with mostly server components — fetch directly on the server.

State ManagementDatabase & ORM
Topics
asynccachedatafetchgraphqlhooksqueryreactrestsolidstalestale-while-revalidatesveltetypescriptupdatevue
Quick install
# Install via npm / pnpm / bun:
pnpm add query
# or
npm install query

Inferred from TypeScript · always double-check against the official README below.

README — rendered from TanStack/query

TanStack Query

TanStack Query

An async state management library built to simplify fetching, caching, synchronizing, and updating server state.

  • Protocol‑agnostic fetching (REST, GraphQL, promises, etc.)
  • Caching, refetching, pagination & infinite scroll
  • Mutations, dependent queries & background updates
  • Prefetching, cancellation & React Suspense support

Get Involved

Partners

CodeRabbit Cloudflare
Query & you?

We're looking for TanStack Query Partners to join our mission! Partner with us to push the boundaries of TanStack Query and build amazing things together.

LET'S CHAT

Explore the TanStack Ecosystem

… and more at TanStack.com »

Live data via GitHub REST API · Cached 30 min · Created 11 Sept 2019