State and data fetching
Hold an app’s state and keep server data fresh in the interface. We rate 10; TanStack Query leads with 9.0 out of 10.
The numbers
Read from GitHub, npm and the OSV advisory database on 21 November 2026. Downloads also count build servers and installs by other tools, and they grow for almost every package: for the median project we rate, they are ×4.1 of a year before.
| 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 |