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

Zustand

Lightweight state management for React with minimal boilerplate.

State and data fetching npm MIT

Used in agent projects
752
5.9% of 12,697 public repos built with AI coding agents
Rank in state and data fetching
#2 of 20
by use in those projects
Downloads
60.8M
npm, last 7 days, zustand
GitHub stars
58.8K
last push Oct 5, 2026

How Zustand is used

Zustand is a dependency in 752 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (5.9%), #2 of 20 in state and data fetching. The most used alternative there is TanStack Query. Projects that use it most often also use React (98.4%), Tailwind CSS (79.9%), clsx (53.9%). It is more common in projects set up for Kiro (10.3%) than for GitHub Copilot (5.3%).

Often used with Zustand

React98.4% of Zustand projects · 2.3× more than average
Tailwind CSS79.9% of Zustand projects · 2.3× more than average
clsx53.9% of Zustand projects · 3.0× more than average
Lucide React54.9% of Zustand projects · 2.8× more than average
ESLint74.7% of Zustand projects · 2.0× more than average
Tailwind Merge49.6% of Zustand projects · 2.9× more than average
TypeScript87.9% of Zustand projects · 1.6× more than average
Class Variance Authority41.9% of Zustand projects · 3.0× more than average

By coding agent

Claude Code6.7% of projects set up for it
Cursor7.4% of projects set up for it
GitHub Copilot5.3% of projects set up for it
Gemini CLI8.0% of projects set up for it
OpenAI Codex6.2% of projects set up for it
Devin Desktop6.9% of projects set up for it
OpenCode5.3% of projects set up for it
Kiro10.3% of projects set up for it

Share of public repos configured for each agent that list Zustand as a dependency.

Install

Packagenpm install zustand
Main stacksNext.js (376), TypeScript / JavaScript (297), React Native / Expo (52), Python (12)
Example projectsvega-org/vega-app, veithly/BountyBoard, miantiao-me/bm.md, NeurProjects/neur-app, ErdongChen-Andrew/CharacterControl

Alternatives to Zustand

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
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
Pinia npm
Intuitive, type-safe state management store for Vue applications.
69 (0.5%) 5.2M 14.7K MIT
Is Zustand right for your project? Ask AgentGid →