statelyai/xstate
State machines, statecharts, and actors for complex logic observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 87
- Longevity 100
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: 1.0
- age_days: 4006
- days_rel: 8
- days_push: 7
- n_releases_24m: 149
Adoption not part of the score
30061 stars · 1385 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
XState is a zero-dependency JavaScript/TypeScript library for state management and orchestration using state machines, statecharts, and the actor model. It lets developers model complex application and workflow logic in a predictable, testable, and visual way, integrating with React, Vue, Svelte, and other frameworks.
Use cases
- manage complex frontend application state with state machines
- model multi-step workflows and background job orchestration
- replace Redux or Zustand with event-based state management
- prevent impossible states in UI logic
- visually design statecharts and export code
- implement actor-based concurrent logic in JavaScript
When to choose
- your app logic has complex, interdependent states and transitions
- you need deterministic, easily testable state behavior
- you want visual modeling tools (Stately Studio, VS Code extension) alongside code
- you need both simple stores and full statechart orchestration in one ecosystem
When to avoid
- you only need trivial local component state
- your team is unfamiliar with statecharts and the learning overhead isn't justified
- you need a minimal store under 1kb without machine semantics (consider @xstate/store instead)
Facets
library · maturity active
state-management workflow-automation concurrency web-development frontend backend developer-tools cross-platform state-machine statechart actor-model fsm event-driven orchestration scxml react vue svelte visual-editor automation nodejs web-server javascript typescript
10 sources
- readme: https://github.com/statelyai/xstate · fetched 2026-08-28 · b393d3156734
- homepage: https://stately.ai/docs · fetched 2026-08-29 · c3be329e6b0f
- site_page: https://stately.ai/docs/xstate-store · fetched 2026-08-29 · 11895b5591a5
- site_page: https://stately.ai/docs/glossary · fetched 2026-08-29 · e3933b2c3958
- site_page: https://stately.ai/docs/xstate · fetched 2026-08-29 · c8e2ebe97799
- site_page: https://stately.ai/docs/migration · fetched 2026-08-29 · 0b8d2039c3a0
- site_page: https://stately.ai/docs/quick-start · fetched 2026-08-29 · 7279969a3eca
- site_page: https://stately.ai/docs/states · fetched 2026-08-29 · 3b77c3bb3447
- site_page: https://stately.ai/docs/studio · fetched 2026-08-29 · dc3b6d02077c
- site_page: https://stately.ai/docs/state-machines-and-statecharts · fetched 2026-08-29 · 77731682c42f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| statelyai/xstate | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="statelyai/xstate")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem