{"adoption": {"forks": 144, "observed_at": "2026-08-28T04:06:00.747242+00:00", "stars": 1969}, "canonical_url": "https://ross.abutalabs.com/products/machinajs", "card": {"archived": false, "artifact_type": "library", "description": "ts ex machina - finite state machines in TypeScript", "domain": ["developer-tools", "programming-languages"], "enriched": true, "function": ["state-management", "developer-tools"], "health_score": 78, "homepage": "http://machina-js.org/", "language": "TypeScript", "license": "NOASSERTION", "license_family": "other", "maturity": "active", "member_repos": ["ifandelse/machina.js"], "name": "ifandelse/machina.js", "platform": ["browser", "cross-platform"], "pushed_at": "2026-08-11T21:55:31+00:00", "repo": "ifandelse/machina.js", "stars": 1969, "tags": ["finite-state-machine", "fsm", "hierarchical-states", "behavioral-fsm", "typescript-first", "state-charts", "automation", "nodejs", "typescript", "javascript"], "topics": ["fsm", "state-machine"], "urls": [], "use_cases": ["model complex UI component states as finite state machines", "manage connection lifecycle states for multiple clients with one FSM definition", "implement hierarchical state machines with parent-child delegation", "queue and replay inputs that arrive before a state is ready", "catch unreachable states and missing handlers at compile time or lint time"], "what_it_is": "machina is a TypeScript-first library for building finite state machines in JavaScript and TypeScript, with full type inference for states, inputs, and transitions. It supports hierarchical states with input bubbling, behavioral FSMs that track state per-client via WeakMap, deferred inputs, lifecycle hooks, and static analysis tooling.", "when_to_avoid": ["you need full SCXML or statechart features like parallel regions or history states", "you want a batteries-included state container with built-in store integration like Redux or Zustand", "your project is plain JavaScript and you do not benefit from the TypeScript-first design"], "when_to_choose": []}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/machinajs", "repo": "ifandelse/machina.js", "role": "main", "score": 76}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:00.747242+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:05:09.845963+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c3cb92b50f052594e05278aca26034924ffeab15cbb4826db8a49eddbf6b6137", "fetched_at": "2026-08-28T04:06:00.747242+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ifandelse/machina.js"}, {"content_hash": "c985bbdc8831525f1ebdc85eb5c5c6f1328bc2f0d19ed2580a9e3b61313c7df1", "fetched_at": "2026-08-29T10:45:08.791856+00:00", "kind": "homepage", "missing": false, "url": "http://machina-js.org/"}, {"content_hash": "db99775ead180d2b439b7840cabd7092dee54c64b421ba3b52a4a39a6109a195", "fetched_at": "2026-08-29T10:45:08.800899+00:00", "kind": "site_page", "missing": false, "url": "https://machina-js.org/guide/getting-started"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:00.747242+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:05:09.845963+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c3cb92b50f052594e05278aca26034924ffeab15cbb4826db8a49eddbf6b6137", "fetched_at": "2026-08-28T04:06:00.747242+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ifandelse/machina.js"}, {"content_hash": "c985bbdc8831525f1ebdc85eb5c5c6f1328bc2f0d19ed2580a9e3b61313c7df1", "fetched_at": "2026-08-29T10:45:08.791856+00:00", "kind": "homepage", "missing": false, "url": "http://machina-js.org/"}, {"content_hash": "db99775ead180d2b439b7840cabd7092dee54c64b421ba3b52a4a39a6109a195", "fetched_at": "2026-08-29T10:45:08.800899+00:00", "kind": "site_page", "missing": false, "url": "https://machina-js.org/guide/getting-started"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:05:09.845963+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c3cb92b50f052594e05278aca26034924ffeab15cbb4826db8a49eddbf6b6137", "fetched_at": "2026-08-28T04:06:00.747242+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ifandelse/machina.js"}, {"content_hash": "c985bbdc8831525f1ebdc85eb5c5c6f1328bc2f0d19ed2580a9e3b61313c7df1", "fetched_at": "2026-08-29T10:45:08.791856+00:00", "kind": "homepage", "missing": false, "url": "http://machina-js.org/"}, {"content_hash": "db99775ead180d2b439b7840cabd7092dee54c64b421ba3b52a4a39a6109a195", "fetched_at": "2026-08-29T10:45:08.800899+00:00", "kind": "site_page", "missing": false, "url": "https://machina-js.org/guide/getting-started"}], "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:00.747242+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:00.747242+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:00.747242+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:05:09.845963+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c3cb92b50f052594e05278aca26034924ffeab15cbb4826db8a49eddbf6b6137", "fetched_at": "2026-08-28T04:06:00.747242+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ifandelse/machina.js"}, {"content_hash": "c985bbdc8831525f1ebdc85eb5c5c6f1328bc2f0d19ed2580a9e3b61313c7df1", "fetched_at": "2026-08-29T10:45:08.791856+00:00", "kind": "homepage", "missing": false, "url": "http://machina-js.org/"}, {"content_hash": "db99775ead180d2b439b7840cabd7092dee54c64b421ba3b52a4a39a6109a195", "fetched_at": "2026-08-29T10:45:08.800899+00:00", "kind": "site_page", "missing": false, "url": "https://machina-js.org/guide/getting-started"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:00.747242+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:00.747242+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:05:09.845963+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c3cb92b50f052594e05278aca26034924ffeab15cbb4826db8a49eddbf6b6137", "fetched_at": "2026-08-28T04:06:00.747242+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ifandelse/machina.js"}, {"content_hash": "c985bbdc8831525f1ebdc85eb5c5c6f1328bc2f0d19ed2580a9e3b61313c7df1", "fetched_at": "2026-08-29T10:45:08.791856+00:00", "kind": "homepage", "missing": false, "url": "http://machina-js.org/"}, {"content_hash": "db99775ead180d2b439b7840cabd7092dee54c64b421ba3b52a4a39a6109a195", "fetched_at": "2026-08-29T10:45:08.800899+00:00", "kind": "site_page", "missing": false, "url": "https://machina-js.org/guide/getting-started"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:00.747242+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:00.747242+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:00.747242+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:05:09.845963+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c3cb92b50f052594e05278aca26034924ffeab15cbb4826db8a49eddbf6b6137", "fetched_at": "2026-08-28T04:06:00.747242+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ifandelse/machina.js"}, {"content_hash": "c985bbdc8831525f1ebdc85eb5c5c6f1328bc2f0d19ed2580a9e3b61313c7df1", "fetched_at": "2026-08-29T10:45:08.791856+00:00", "kind": "homepage", "missing": false, "url": "http://machina-js.org/"}, {"content_hash": "db99775ead180d2b439b7840cabd7092dee54c64b421ba3b52a4a39a6109a195", "fetched_at": "2026-08-29T10:45:08.800899+00:00", "kind": "site_page", "missing": false, "url": "https://machina-js.org/guide/getting-started"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:00.747242+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:00.747242+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:05:09.845963+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c3cb92b50f052594e05278aca26034924ffeab15cbb4826db8a49eddbf6b6137", "fetched_at": "2026-08-28T04:06:00.747242+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ifandelse/machina.js"}, {"content_hash": "c985bbdc8831525f1ebdc85eb5c5c6f1328bc2f0d19ed2580a9e3b61313c7df1", "fetched_at": "2026-08-29T10:45:08.791856+00:00", "kind": "homepage", "missing": false, "url": "http://machina-js.org/"}, {"content_hash": "db99775ead180d2b439b7840cabd7092dee54c64b421ba3b52a4a39a6109a195", "fetched_at": "2026-08-29T10:45:08.800899+00:00", "kind": "site_page", "missing": false, "url": "https://machina-js.org/guide/getting-started"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:05:09.845963+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c3cb92b50f052594e05278aca26034924ffeab15cbb4826db8a49eddbf6b6137", "fetched_at": "2026-08-28T04:06:00.747242+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ifandelse/machina.js"}, {"content_hash": "c985bbdc8831525f1ebdc85eb5c5c6f1328bc2f0d19ed2580a9e3b61313c7df1", "fetched_at": "2026-08-29T10:45:08.791856+00:00", "kind": "homepage", "missing": false, "url": "http://machina-js.org/"}, {"content_hash": "db99775ead180d2b439b7840cabd7092dee54c64b421ba3b52a4a39a6109a195", "fetched_at": "2026-08-29T10:45:08.800899+00:00", "kind": "site_page", "missing": false, "url": "https://machina-js.org/guide/getting-started"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:05:09.845963+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c3cb92b50f052594e05278aca26034924ffeab15cbb4826db8a49eddbf6b6137", "fetched_at": "2026-08-28T04:06:00.747242+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ifandelse/machina.js"}, {"content_hash": "c985bbdc8831525f1ebdc85eb5c5c6f1328bc2f0d19ed2580a9e3b61313c7df1", "fetched_at": "2026-08-29T10:45:08.791856+00:00", "kind": "homepage", "missing": false, "url": "http://machina-js.org/"}, {"content_hash": "db99775ead180d2b439b7840cabd7092dee54c64b421ba3b52a4a39a6109a195", "fetched_at": "2026-08-29T10:45:08.800899+00:00", "kind": "site_page", "missing": false, "url": "https://machina-js.org/guide/getting-started"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:05:09.845963+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "c3cb92b50f052594e05278aca26034924ffeab15cbb4826db8a49eddbf6b6137", "fetched_at": "2026-08-28T04:06:00.747242+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ifandelse/machina.js"}, {"content_hash": "c985bbdc8831525f1ebdc85eb5c5c6f1328bc2f0d19ed2580a9e3b61313c7df1", "fetched_at": "2026-08-29T10:45:08.791856+00:00", "kind": "homepage", "missing": false, "url": "http://machina-js.org/"}, {"content_hash": "db99775ead180d2b439b7840cabd7092dee54c64b421ba3b52a4a39a6109a195", "fetched_at": "2026-08-29T10:45:08.800899+00:00", "kind": "site_page", "missing": false, "url": "https://machina-js.org/guide/getting-started"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 97, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases", "no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 5300, "days_push": 22, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 76, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}