diegohaz/constate
React Context + State observed · 2026-10-12
Health v2 · maintenance only
81/100
- Activity 99
- Release rhythm 46
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3126
- days_rel: 146
- days_push: 9
- n_releases_24m: 1
Adoption not part of the score
4006 stars · 93 forks observed · 2026-10-12
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Constate is a tiny React library that lets you write state with custom hooks and lift them into React Context with minimal effort. It wraps any hook with a factory that generates a provider and context hooks, scaling local state to global state.
Use cases
- share state between React components without prop drilling
- turn a custom hook into a React Context provider
- scale local component state to global state
- manage theming or i18n state in React apps
- build wizard or form state with React Context
When to choose
- you use React hooks and want Context-based state with minimal boilerplate
- you want a tiny, unopinionated state management library
- you want to start with local state and lift it to Context later
When to avoid
- you need a full-featured store with middleware, devtools, or selectors
- you are not using React
- you need high-frequency state updates where Context re-renders are costly
Facets
library · maturity stable
state-management frontend web-development browser cross-platform react react-context react-hooks typescript nodejs
3 sources
- readme: https://github.com/diegohaz/constate · fetched 2026-10-12 · 4ba3d144c585
- homepage: https://github.com/diegohaz/constate · fetched 2026-08-29 · cf5db1b05547
- registry_npm: https://registry.npmjs.org/constate · fetched 2026-08-29 · 3010c92ccd9c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| diegohaz/constate | main | 81 |
For agents
markdown · JSON · MCP: product_card(name="diegohaz/constate")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem