{"adoption": {"forks": 48, "observed_at": "2026-08-28T04:06:43.899905+00:00", "stars": 2402}, "canonical_url": "https://ross.abutalabs.com/products/usestatemachine", "card": {"archived": false, "artifact_type": "library", "description": "The <1 kb state machine hook for React", "domain": ["frontend", "web-development", "developer-tools"], "enriched": true, "function": ["state-management", "frontend-framework"], "health_score": 20, "homepage": null, "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["cassiozen/useStateMachine"], "name": "cassiozen/useStateMachine", "platform": ["cross-platform"], "pushed_at": "2024-04-22T04:59:24+00:00", "repo": "cassiozen/useStateMachine", "stars": 2402, "tags": ["react-hook", "finite-state-machine", "typescript", "tiny-library", "xstate-alternative", "nodejs", "web-server"], "topics": ["statemachine", "react-hook", "state-machine", "typescript", "state-management", "hooks"], "urls": [], "use_cases": ["manage component state as a finite state machine in react", "add state-driven ui toggling to a react app", "orchestrate async data fetching with retries in react", "model form flows with typed events and context", "find a lightweight xstate alternative for react hooks"], "what_it_is": "A tiny (<1 kb) React hook for finite state machines, built as a thin wrapper around useReducer and useEffect. It supports entry/exit effects, guarded transitions, and extended state (context) with strong automatic TypeScript type inference.", "when_to_avoid": ["you need hierarchical or parallel state machines like XState offers", "you're not using React", "you need visualization tooling or a large state chart ecosystem"], "when_to_choose": ["you want a minimal, dependency-free state machine in a React app", "you value excellent TypeScript inference and a tiny bundle size", "your state logic fits simple states, transitions, and effects"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/usestatemachine", "repo": "cassiozen/useStateMachine", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:43.899905+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:34:12.596473+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9b351083ea1c94245eebccd35aa0b697d2769f95e326fe2e7bc357944d88d129", "fetched_at": "2026-08-28T04:06:43.899905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/cassiozen/useStateMachine"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:43.899905+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:34:12.596473+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9b351083ea1c94245eebccd35aa0b697d2769f95e326fe2e7bc357944d88d129", "fetched_at": "2026-08-28T04:06:43.899905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/cassiozen/useStateMachine"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:34:12.596473+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9b351083ea1c94245eebccd35aa0b697d2769f95e326fe2e7bc357944d88d129", "fetched_at": "2026-08-28T04:06:43.899905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/cassiozen/useStateMachine"}], "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:06:43.899905+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:43.899905+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:43.899905+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:34:12.596473+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9b351083ea1c94245eebccd35aa0b697d2769f95e326fe2e7bc357944d88d129", "fetched_at": "2026-08-28T04:06:43.899905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/cassiozen/useStateMachine"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:43.899905+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:43.899905+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:34:12.596473+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9b351083ea1c94245eebccd35aa0b697d2769f95e326fe2e7bc357944d88d129", "fetched_at": "2026-08-28T04:06:43.899905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/cassiozen/useStateMachine"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:43.899905+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:43.899905+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:43.899905+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:34:12.596473+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9b351083ea1c94245eebccd35aa0b697d2769f95e326fe2e7bc357944d88d129", "fetched_at": "2026-08-28T04:06:43.899905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/cassiozen/useStateMachine"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:43.899905+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:43.899905+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:34:12.596473+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9b351083ea1c94245eebccd35aa0b697d2769f95e326fe2e7bc357944d88d129", "fetched_at": "2026-08-28T04:06:43.899905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/cassiozen/useStateMachine"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:34:12.596473+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9b351083ea1c94245eebccd35aa0b697d2769f95e326fe2e7bc357944d88d129", "fetched_at": "2026-08-28T04:06:43.899905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/cassiozen/useStateMachine"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:34:12.596473+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9b351083ea1c94245eebccd35aa0b697d2769f95e326fe2e7bc357944d88d129", "fetched_at": "2026-08-28T04:06:43.899905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/cassiozen/useStateMachine"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:34:12.596473+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9b351083ea1c94245eebccd35aa0b697d2769f95e326fe2e7bc357944d88d129", "fetched_at": "2026-08-28T04:06:43.899905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/cassiozen/useStateMachine"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2000, "days_push": 863, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}