{"adoption": {"forks": 93, "observed_at": "2026-08-28T04:04:32.013151+00:00", "stars": 1371}, "canonical_url": "https://ross.abutalabs.com/products/use-persisted-state", "card": {"archived": false, "artifact_type": "library", "description": "A custom React Hook that provides a multi-instance, multi-tab/browser shared and persistent state.", "domain": ["frontend", "web-development"], "enriched": true, "function": ["state-management", "caching"], "health_score": 20, "homepage": null, "language": "JavaScript", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["donavon/use-persisted-state"], "name": "donavon/use-persisted-state", "platform": ["browser"], "pushed_at": "2023-04-26T18:53:55+00:00", "repo": "donavon/use-persisted-state", "stars": 1371, "tags": ["react-hooks", "localstorage", "persistence", "cross-tab-sync", "nodejs"], "topics": ["react", "reactjs", "hooks", "custom-hook", "localstorage", "persistence"], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/use-persisted-state", "repo": "donavon/use-persisted-state", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:32.013151+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:40:49.739238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "87cf8336b309ccf4f38eced89b4b6c4fbb878a734c410dca97801d7abde0737d", "fetched_at": "2026-08-28T04:04:32.013151+00:00", "kind": "readme", "missing": false, "url": "https://github.com/donavon/use-persisted-state"}, {"content_hash": "fb5097927300f062831fcea32991aa4dc6ee72c428be85713dce14768e33cdaf", "fetched_at": "2026-08-29T11:57:45.016730+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/use-persisted-state"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:32.013151+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:40:49.739238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "87cf8336b309ccf4f38eced89b4b6c4fbb878a734c410dca97801d7abde0737d", "fetched_at": "2026-08-28T04:04:32.013151+00:00", "kind": "readme", "missing": false, "url": "https://github.com/donavon/use-persisted-state"}, {"content_hash": "fb5097927300f062831fcea32991aa4dc6ee72c428be85713dce14768e33cdaf", "fetched_at": "2026-08-29T11:57:45.016730+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/use-persisted-state"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:40:49.739238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "87cf8336b309ccf4f38eced89b4b6c4fbb878a734c410dca97801d7abde0737d", "fetched_at": "2026-08-28T04:04:32.013151+00:00", "kind": "readme", "missing": false, "url": "https://github.com/donavon/use-persisted-state"}, {"content_hash": "fb5097927300f062831fcea32991aa4dc6ee72c428be85713dce14768e33cdaf", "fetched_at": "2026-08-29T11:57:45.016730+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/use-persisted-state"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:32.013151+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:32.013151+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:32.013151+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:40:49.739238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "87cf8336b309ccf4f38eced89b4b6c4fbb878a734c410dca97801d7abde0737d", "fetched_at": "2026-08-28T04:04:32.013151+00:00", "kind": "readme", "missing": false, "url": "https://github.com/donavon/use-persisted-state"}, {"content_hash": "fb5097927300f062831fcea32991aa4dc6ee72c428be85713dce14768e33cdaf", "fetched_at": "2026-08-29T11:57:45.016730+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/use-persisted-state"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:32.013151+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:32.013151+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:40:49.739238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "87cf8336b309ccf4f38eced89b4b6c4fbb878a734c410dca97801d7abde0737d", "fetched_at": "2026-08-28T04:04:32.013151+00:00", "kind": "readme", "missing": false, "url": "https://github.com/donavon/use-persisted-state"}, {"content_hash": "fb5097927300f062831fcea32991aa4dc6ee72c428be85713dce14768e33cdaf", "fetched_at": "2026-08-29T11:57:45.016730+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/use-persisted-state"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:32.013151+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:32.013151+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:32.013151+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:40:49.739238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "87cf8336b309ccf4f38eced89b4b6c4fbb878a734c410dca97801d7abde0737d", "fetched_at": "2026-08-28T04:04:32.013151+00:00", "kind": "readme", "missing": false, "url": "https://github.com/donavon/use-persisted-state"}, {"content_hash": "fb5097927300f062831fcea32991aa4dc6ee72c428be85713dce14768e33cdaf", "fetched_at": "2026-08-29T11:57:45.016730+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/use-persisted-state"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:32.013151+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:32.013151+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:40:49.739238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "87cf8336b309ccf4f38eced89b4b6c4fbb878a734c410dca97801d7abde0737d", "fetched_at": "2026-08-28T04:04:32.013151+00:00", "kind": "readme", "missing": false, "url": "https://github.com/donavon/use-persisted-state"}, {"content_hash": "fb5097927300f062831fcea32991aa4dc6ee72c428be85713dce14768e33cdaf", "fetched_at": "2026-08-29T11:57:45.016730+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/use-persisted-state"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:40:49.739238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "87cf8336b309ccf4f38eced89b4b6c4fbb878a734c410dca97801d7abde0737d", "fetched_at": "2026-08-28T04:04:32.013151+00:00", "kind": "readme", "missing": false, "url": "https://github.com/donavon/use-persisted-state"}, {"content_hash": "fb5097927300f062831fcea32991aa4dc6ee72c428be85713dce14768e33cdaf", "fetched_at": "2026-08-29T11:57:45.016730+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/use-persisted-state"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:40:49.739238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "87cf8336b309ccf4f38eced89b4b6c4fbb878a734c410dca97801d7abde0737d", "fetched_at": "2026-08-28T04:04:32.013151+00:00", "kind": "readme", "missing": false, "url": "https://github.com/donavon/use-persisted-state"}, {"content_hash": "fb5097927300f062831fcea32991aa4dc6ee72c428be85713dce14768e33cdaf", "fetched_at": "2026-08-29T11:57:45.016730+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/use-persisted-state"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:40:49.739238+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "87cf8336b309ccf4f38eced89b4b6c4fbb878a734c410dca97801d7abde0737d", "fetched_at": "2026-08-28T04:04:32.013151+00:00", "kind": "readme", "missing": false, "url": "https://github.com/donavon/use-persisted-state"}, {"content_hash": "fb5097927300f062831fcea32991aa4dc6ee72c428be85713dce14768e33cdaf", "fetched_at": "2026-08-29T11:57:45.016730+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/use-persisted-state"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2764, "days_push": 1225, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}