# State and data fetching

Hold an app’s state and keep server data fresh in the interface. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [TanStack Query](https://elestia.ai/opensource/state-and-data/tanstack-query/index.md) | 9.0 | 7.0 | 9.0 | 8.9 | 8.3 | 9.0 | 7.9 | Any React or other front-end team that needs cached, fresh server data, with mutations, pagination and SSR hydration, from REST or RPC APIs. |
| 2 | [Zustand](https://elestia.ai/opensource/state-and-data/zustand/index.md) | 8.5 | 6.2 | 8.5 | 7.9 | 8.1 | 8.3 | 8.3 | React teams that want simple, typed global client state with little boilerplate, alongside a server-cache library such as TanStack Query. |
| 3 | [Pinia](https://elestia.ai/opensource/state-and-data/pinia/index.md) | 8.0 | 3.9 | 8.4 | 8.0 | 6.0 | 7.8 | 8.1 | Vue 3 and Nuxt teams that want the official, typed store for shared client state. |
| 4 | [Jotai](https://elestia.ai/opensource/state-and-data/jotai/index.md) | 7.6 | 5.6 | 8.0 | 7.4 | 5.3 | 6.2 | 7.9 | React teams whose client state has many small derived or async pieces and who want fine-grained re-renders without selectors. |
| 5 | [Redux Toolkit](https://elestia.ai/opensource/state-and-data/redux-toolkit/index.md) | 7.6 | 6.6 | 8.0 | 8.0 | 8.2 | 7.3 | 7.8 | Large teams that want one structured, well-typed store for both client state and server cache, with Redux DevTools. |
| 6 | [Apollo Client](https://elestia.ai/opensource/state-and-data/apollo-client/index.md) | 7.5 | 4.3 | 8.0 | 7.7 | 6.0 | 6.9 | 8.0 | Teams whose app talks to a large GraphQL API and needs a normalized cache, optimistic updates and fragment colocation. |
| 7 | [XState](https://elestia.ai/opensource/state-and-data/xstate/index.md) | 7.3 | 4.5 | 7.8 | 7.5 | 6.3 | 6.6 | 8.6 | Teams with complex, long-lived flows (wizards, checkout, media players, agent loops) that want those flows explicit, typed, visual and testable. |
| 8 | [SWR](https://elestia.ai/opensource/state-and-data/swr/index.md) | 7.0 | 5.7 | 7.2 | 6.9 | 6.5 | 6.5 | 7.5 | React or Next.js teams with read-heavy apps who want a tiny, simple caching hook more than a full server-state toolkit. |
| 9 | [MobX](https://elestia.ai/opensource/state-and-data/mobx/index.md) | 6.7 | 5.8 | 7.4 | 7.0 | 6.0 | 6.4 | 8.5 | Teams with complex, object-oriented client state that want automatic fine-grained updates and computed values, in React or outside it. |
| 10 | [Valtio](https://elestia.ai/opensource/state-and-data/valtio/index.md) | 6.5 | 4.9 | 7.0 | 6.3 | 4.8 | 5.3 | 7.8 | React or vanilla JS developers who want to mutate plain objects and get automatic render tracking without selectors. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| TanStack Query | 338M | ×6.9 | 51k | 1.9k | Nov 2026 | 0 |
| Zustand | 366M | ×6.9 | 59k | 121 | Nov 2026 | 0 |
| Pinia | 30M | ×3.1 | 15k | 137 | Oct 2026 | 0 |
| Jotai | 39M | ×4.4 | 21k | 132 | Nov 2026 | 0 |
| Redux Toolkit | 195M | ×6.5 | 11k | 277 | Nov 2026 | 0 |
| Apollo Client | 34M | ×2.1 | 20k | 380 | Nov 2026 | 0 |
| XState | 33M | ×3.2 | 31k | 649 | Nov 2026 | 0 |
| SWR | 108M | ×4.4 | 32k | 58 | Aug 2026 | 0 |
| MobX | 18M | ×2.1 | 28k | 158 | Nov 2026 | 0 |
| Valtio | 13M | ×3.0 | 10k | 33 | May 2026 | 0 |

All categories: https://elestia.ai/opensource/index.md
