# pmndrs/zustand

🐻 Bear necessities for state management in React

Repository: https://github.com/pmndrs/zustand
Canonical: https://ross.abutalabs.com/products/zustand
Homepage: https://zustand-demo.pmnd.rs/
Language: TypeScript
License: MIT
License Family: permissive
Topics: hooks, react, react-context, reactjs, redux, state-management, hacktoberfest
Last push: 2026-08-24T23:48:49+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 85, longevity 100
- inputs: {"age_days": 2703, "days_push": 9, "days_rel": 21, "gap_med": 34, "n_releases_24m": 18}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 58614, forks 2185 (observed 2026-08-28T04:12:18.621997+00:00)

## What it is
Zustand is a small, fast, and scalable state management library for React based on simplified flux principles, with a hook-based API and no provider boilerplate. It handles common React pitfalls like zombie children, concurrency, and context loss between mixed renderers.

## Use cases
- manage global state in a react app without boilerplate
- replace redux with a simpler hook-based store
- share state between react components without context providers
- create a store as a custom hook with actions and state
- selectively re-render components on state slices
- handle state in react concurrent mode safely

## When to choose
- you want minimal, unopinionated state management for React
- you need a tiny bundle size and hook-based API
- you want to avoid providers and boilerplate of redux or context
- you need reliable behavior with React concurrency and mixed renderers

## When to avoid
- you need a full state management ecosystem with devtools middleware, sagas, and strict conventions
- your app is not React-based
- you prefer normalized entity stores with heavy tooling like redux toolkit

## Facets
- artifact type: library
- maturity: stable
- function: state-management, frontend-framework
- domain: frontend, web-development
- platform: browser, cross-platform
- tags: react, hooks, flux, store, redux-alternative, nodejs

## Member repositories
- pmndrs/zustand (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:18.621997+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:18:19.790533+00:00, confidence not recorded.
  - readme: https://github.com/pmndrs/zustand (fetched 2026-08-28T04:12:18.621997+00:00, sha 57b93966ad73)
  - homepage: https://zustand-demo.pmnd.rs/ (fetched 2026-08-28T18:01:25.466545+00:00, sha b39215a26a81)
  - registry_npm: https://registry.npmjs.org/zustand (fetched 2026-08-28T18:01:25.474989+00:00, sha 9da183b2e4e5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
