{"adoption": {"forks": 946, "observed_at": "2026-08-28T04:10:25.564819+00:00", "stars": 8750}, "canonical_url": "https://ross.abutalabs.com/products/javascript-state-machine", "card": {"archived": false, "artifact_type": "library", "description": "A javascript finite state machine library", "domain": ["web-development", "frontend"], "enriched": true, "function": ["state-management", "developer-tools"], "health_score": 35, "homepage": null, "language": "JavaScript", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["jakesgordon/javascript-state-machine"], "name": "jakesgordon/javascript-state-machine", "platform": ["browser", "cross-platform"], "pushed_at": "2025-06-01T22:01:49+00:00", "repo": "jakesgordon/javascript-state-machine", "stars": 8750, "tags": ["finite-state-machine", "fsm", "state-transitions", "lifecycle-events", "javascript", "algorithms", "nodejs"], "topics": [], "urls": [], "use_cases": ["model game or UI object states with explicit transitions", "implement a workflow with allowed state changes and guards", "replace ad-hoc boolean flags with a state machine", "add lifecycle hooks when an object changes state", "manage states like solid/liquid/gas or idle/running/paused in JavaScript"], "what_it_is": "A JavaScript finite state machine library for defining states, transitions, and lifecycle event hooks. It works in both the browser and Node.js and generates transition methods and observer callbacks from a declarative config.", "when_to_avoid": ["you need hierarchical or concurrent statecharts (e.g. XState)", "your project is not JavaScript/Node.js based", "you need persistence or distributed state machine orchestration"], "when_to_choose": ["you need a lightweight, dependency-free finite state machine in JavaScript", "you want declarative transitions with automatic transition methods and event observers", "you need the same state machine logic in browser and Node.js"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/javascript-state-machine", "repo": "jakesgordon/javascript-state-machine", "role": "main", "score": 43}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:10:25.564819+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:25:16.615711+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9ca725f24f0b1759f1ac956b04b3d5d2adb0ed982ac955c4ec4819851511e5db", "fetched_at": "2026-08-28T04:10:25.564819+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jakesgordon/javascript-state-machine"}, {"content_hash": "5f53d1cc4ec53556cbaeb269a11004429edf93a7e78a94f0cffe9b68644d2103", "fetched_at": "2026-08-29T08:25:44.843667+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/javascript-state-machine"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:10:25.564819+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:25:16.615711+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9ca725f24f0b1759f1ac956b04b3d5d2adb0ed982ac955c4ec4819851511e5db", "fetched_at": "2026-08-28T04:10:25.564819+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jakesgordon/javascript-state-machine"}, {"content_hash": "5f53d1cc4ec53556cbaeb269a11004429edf93a7e78a94f0cffe9b68644d2103", "fetched_at": "2026-08-29T08:25:44.843667+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/javascript-state-machine"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:25:16.615711+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9ca725f24f0b1759f1ac956b04b3d5d2adb0ed982ac955c4ec4819851511e5db", "fetched_at": "2026-08-28T04:10:25.564819+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jakesgordon/javascript-state-machine"}, {"content_hash": "5f53d1cc4ec53556cbaeb269a11004429edf93a7e78a94f0cffe9b68644d2103", "fetched_at": "2026-08-29T08:25:44.843667+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/javascript-state-machine"}], "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:10:25.564819+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:10:25.564819+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:10:25.564819+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:25:16.615711+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9ca725f24f0b1759f1ac956b04b3d5d2adb0ed982ac955c4ec4819851511e5db", "fetched_at": "2026-08-28T04:10:25.564819+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jakesgordon/javascript-state-machine"}, {"content_hash": "5f53d1cc4ec53556cbaeb269a11004429edf93a7e78a94f0cffe9b68644d2103", "fetched_at": "2026-08-29T08:25:44.843667+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/javascript-state-machine"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:10:25.564819+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:10:25.564819+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:25:16.615711+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9ca725f24f0b1759f1ac956b04b3d5d2adb0ed982ac955c4ec4819851511e5db", "fetched_at": "2026-08-28T04:10:25.564819+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jakesgordon/javascript-state-machine"}, {"content_hash": "5f53d1cc4ec53556cbaeb269a11004429edf93a7e78a94f0cffe9b68644d2103", "fetched_at": "2026-08-29T08:25:44.843667+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/javascript-state-machine"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:10:25.564819+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:10:25.564819+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:10:25.564819+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:25:16.615711+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9ca725f24f0b1759f1ac956b04b3d5d2adb0ed982ac955c4ec4819851511e5db", "fetched_at": "2026-08-28T04:10:25.564819+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jakesgordon/javascript-state-machine"}, {"content_hash": "5f53d1cc4ec53556cbaeb269a11004429edf93a7e78a94f0cffe9b68644d2103", "fetched_at": "2026-08-29T08:25:44.843667+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/javascript-state-machine"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:10:25.564819+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:10:25.564819+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:25:16.615711+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9ca725f24f0b1759f1ac956b04b3d5d2adb0ed982ac955c4ec4819851511e5db", "fetched_at": "2026-08-28T04:10:25.564819+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jakesgordon/javascript-state-machine"}, {"content_hash": "5f53d1cc4ec53556cbaeb269a11004429edf93a7e78a94f0cffe9b68644d2103", "fetched_at": "2026-08-29T08:25:44.843667+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/javascript-state-machine"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:25:16.615711+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9ca725f24f0b1759f1ac956b04b3d5d2adb0ed982ac955c4ec4819851511e5db", "fetched_at": "2026-08-28T04:10:25.564819+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jakesgordon/javascript-state-machine"}, {"content_hash": "5f53d1cc4ec53556cbaeb269a11004429edf93a7e78a94f0cffe9b68644d2103", "fetched_at": "2026-08-29T08:25:44.843667+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/javascript-state-machine"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:25:16.615711+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9ca725f24f0b1759f1ac956b04b3d5d2adb0ed982ac955c4ec4819851511e5db", "fetched_at": "2026-08-28T04:10:25.564819+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jakesgordon/javascript-state-machine"}, {"content_hash": "5f53d1cc4ec53556cbaeb269a11004429edf93a7e78a94f0cffe9b68644d2103", "fetched_at": "2026-08-29T08:25:44.843667+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/javascript-state-machine"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:25:16.615711+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9ca725f24f0b1759f1ac956b04b3d5d2adb0ed982ac955c4ec4819851511e5db", "fetched_at": "2026-08-28T04:10:25.564819+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jakesgordon/javascript-state-machine"}, {"content_hash": "5f53d1cc4ec53556cbaeb269a11004429edf93a7e78a94f0cffe9b68644d2103", "fetched_at": "2026-08-29T08:25:44.843667+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/javascript-state-machine"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 24, "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": 5572, "days_push": 458, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 43, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}