jakesgordon/javascript-state-machine
A javascript finite state machine library observed · 2026-08-28
Health v2 · maintenance only
43/100
- Activity 24
- 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: 5572
- days_rel: n/a
- days_push: 458
- n_releases_24m: 0
Adoption not part of the score
8750 stars · 946 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
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.
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
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
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
Facets
library · maturity stable
state-management developer-tools web-development frontend browser cross-platform finite-state-machine fsm state-transitions lifecycle-events javascript algorithms nodejs
2 sources
- readme: https://github.com/jakesgordon/javascript-state-machine · fetched 2026-08-28 · 9ca725f24f0b
- registry_npm: https://registry.npmjs.org/javascript-state-machine · fetched 2026-08-29 · 5f53d1cc4ec5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jakesgordon/javascript-state-machine | main | 43 |
For agents
markdown · JSON · MCP: product_card(name="jakesgordon/javascript-state-machine")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem