donavon/use-persisted-state
A custom React Hook that provides a multi-instance, multi-tab/browser shared and persistent state. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2764
- days_rel: n/a
- days_push: 1225
- n_releases_24m: 0
Adoption not part of the score
1371 stars · 93 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A React hook factory that returns a drop-in replacement for useState, persisting state to localStorage. State is shared across multiple hook instances on a page and synced across browser tabs and windows.
Use cases
- persist React state across page reloads
- sync state between browser tabs
- share state between multiple components using the same key
- remember user preferences like theme or counter values
- replace useState with a persistent version
When to choose
- you need persistent client-side state without a backend
- you want cross-tab state synchronization in a React app
- you want a minimal drop-in replacement for useState
When to avoid
- you need server-side persistence or shared state across users
- you are not using React 16.8+ with hooks
- you need to persist large amounts of data beyond localStorage limits
Facets
library · maturity maintenance
state-management caching frontend web-development browser react-hooks localstorage persistence cross-tab-sync nodejs
2 sources
- readme: https://github.com/donavon/use-persisted-state · fetched 2026-08-28 · 87cf8336b309
- registry_npm: https://registry.npmjs.org/use-persisted-state · fetched 2026-08-29 · fb5097927300
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| donavon/use-persisted-state | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="donavon/use-persisted-state")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem