# Zustand: 8.5 out of 10

A strong pick. 2nd of 10 in [State and data fetching](https://elestia.ai/opensource/state-and-data/index.md).

Zustand is a small, hook-based store for client state in React. It has no dependencies and needs no providers. Today it is the most common pick for new React apps that need shared client state. It does not fetch or cache server data, so most apps pair it with TanStack Query or SWR.

**Best for:** React teams that want simple, typed global client state with little boilerplate, alongside a server-cache library such as TanStack Query.

## Scores

- **Overall: 8.5** (likely 7.4 to 9.2)
  - Claude Opus 5.5 (8.5): Zustand is the strongest pick for client-state management in React today. It is simple, stable, well maintained and growing faster than the market. It stays below 9 because it covers only half of this category's job and needs a server-cache peer such as TanStack Query. Very large teams may also prefer Redux Toolkit's structure.
  - GPT-6.2 Sol (8.4): Zustand is a leading choice for shared React client state because its typed stores are easy to set up, efficient with selectors, and actively maintained. TanStack Query is a better fit when server data freshness is the main job, and Redux Toolkit with RTK Query covers both jobs in one package. Strong adoption and user satisfaction support the recommendation, while concentrated release activity and the extra setup for server rendering weigh against a category-wide default.
- **Needed by many: 6.2** (likely 5.1 to 7.3)
  - Claude Opus 5.5 (6.0): Most React apps of moderate size need some shared client state, and React is the largest frontend group. Zustand serves only the client-state half of the category's job and is mostly tied to React. About a third of State of React respondents use no state library at all.
  - GPT-6.2 Sol (6.4): Shared client state is a common need in React web and native apps. Zustand also offers a framework-independent store, while its main UI integration is for React. About a third of State of React respondents reported using zero of the listed state management libraries, and the survey covers a subset of JavaScript developers.
- **Helps a lot: 8.5** (likely 7.5 to 9.2)
  - Claude Opus 5.5 (8.5): For client state in React it is hard to beat: there is little boilerplate, selectors limit re-renders, TypeScript types are solid, and the middleware covers persistence and devtools. AI agents write correct Zustand code readily, because the API is small and widely documented. It does not do server caching, and Redux Toolkit offers stronger structure and debugging for very large teams.
  - GPT-6.2 Sol (8.5): Zustand 5.1.0 has a small typed API, clear examples, and useful persistence and DevTools middleware. In an independent dashboard benchmark, granular subscriptions skipped renders on unrelated updates, matching Redux and Jotai in that test. Users report render loops with unstable selector results, and Next.js server rendering takes extra setup. The short examples make basic stores straightforward for coding agents to scaffold, though agent accuracy and performance beyond the benchmark workload are unmeasured here.
- **Holds up over time: 7.9** (likely 6.8 to 8.9)
  - Claude Opus 5.5 (8.0): Releases come steadily: 9 in the last year, with v5.1.0 on 6 November 2026, and only 2 open issues against 697 closed. v5 has had no breaking changes since late 2024. The main risk is that most of the work falls on one lead maintainer, inside the volunteer pmndrs collective with sponsor funding.
  - GPT-6.2 Sol (7.8): Zustand recorded 121 commits and nine releases in the past year, with several contributors credited for middleware fixes. Users had to rewrite some selectors during the v5 upgrade. Recent releases were triggered by the same maintainer, who is also the listed GitHub Sponsors recipient. The funding level and typical response time are unclear, and the small issue queue excludes bug reports routed to Discussions.
- **Used widely: 8.1** (likely 7.1 to 8.9)
  - Claude Opus 5.5 (8.5): Downloads are 366M per 4 weeks, up 6.9x on a year ago against a 4.1x median, so it is gaining ground. It has 62k dependent repositories and 59k stars, the most stars in the category. Some downloads come transitively through libraries like react-three-fiber and React Flow, so direct choices are lower than the raw count, but still in the hundreds of thousands of projects.
  - GPT-6.2 Sol (7.7): Four-week installs rose from 53.2 million to 366.1 million, about 6.9 times year over year against the 4.1 times catalog median. That suggests Zustand is gaining ground, with growth close to TanStack Query and ahead of Redux Toolkit. Ecosyste.ms also found 62,080 dependent repositories, ahead of TanStack Query and Jotai and behind Redux Toolkit and XState. Partial repository coverage, automated builds, and installs through downstream libraries make the number of direct choices uncertain.
- **Vouched for: 8.3** (likely 7.2 to 9.2)
  - Claude Opus 5.5 (8.0): The State of React 2025 survey names Zustand the most popular state library by user satisfaction. Many independent 2026 comparisons call it the default for new mid-size React apps, and major libraries in the React ecosystem build on it. The case for it rests mostly on surveys and blog posts rather than formal benchmarks.
  - GPT-6.2 Sol (8.5): Zustand led State of React 2025 in user satisfaction. React Flow 13 builds on Zustand 5, and SigNoz lists it as a frontend dependency. An independent benchmark confirms that selectors can avoid unrelated renders in a dashboard. The survey is self-selected, and the benchmark covers one kind of workload.
- **Safe: 8.3** (likely 7.1 to 9.3)
  - Claude Opus 5.5 (8.5): It has zero dependencies, no advisories ever recorded and an MIT licence. Its OpenSSF Scorecard is 6.5, held down by weak Code-Review, no security policy, no SAST and no fuzzing. The small codebase keeps the real attack surface low.
  - GPT-6.2 Sol (8.0): Zustand has an MIT licence, zero required package dependencies, and no advisories in the supplied OSV data. The latest release shipped through a GitHub Actions workflow configured for tokenless npm publishing. OpenSSF scored code review 1 out of 10, and GitHub shows no published security policy. Recent release runs show one trigger account, and the full set of people with release access is unverified.

## Good

- The API is tiny: a store is one create() call with no providers, actions or reducers to wire up.
- It has zero runtime dependencies and a bundle of about 1–3 KB.
- Built-in middleware covers persist, devtools, immer and slices, and v5.1 adds async persist and dispatching actions from DevTools.
- It has stayed stable on v5 for two years with only patch-level fixes, and the issue backlog is almost empty.

## Bad

- It has no server-state caching, so data fetching needs TanStack Query, SWR or hand-written code.
- It is React-first; the vanilla store works elsewhere, but Vue and Svelte users have better-fitting options.
- Its unopinionated structure lets large teams drift into inconsistent store patterns, which Redux Toolkit avoids by enforcing conventions.
- Selector mistakes, such as returning new objects without useShallow, can cause re-render loops in v5.

## The numbers

- Downloads, 4 weeks: 366M
- In a year: ×6.9
- GitHub stars: 59k
- Commits, 12 months: 121
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/pmndrs/zustand
- npm: https://www.npmjs.com/package/zustand

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.
