XState
Some data may be outdated — see provenance labels.
State machines, statecharts, and actors for complex logic observed · 2026-09-29
Health v2 · maintenance only
93/100
- Activity 97
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 1.0
- age_days: 4054
- days_rel: 35
- days_push: 22
- n_releases_24m: 137
Adoption not part of the score
30197 stars · 1392 forks observed · 2026-09-29
What it is AI-extracted, prompt v1, taxonomy v1, 2026-10-05, confidence 0.97
XState is a TypeScript/JavaScript library for building state machines, statecharts, and actors. It enables deterministic, visual, and testable application logic for both frontend and backend environments.
Use cases
- model complex UI interactions with finite state machines
- orchestrate multi-step workflows in serverless functions
- manage application state in React, Vue, or Svelte projects
- visualize statecharts using Stately Studio
- implement robust event-driven logic in Node.js services
- create reusable actors for microservice communication
When to choose
- You need a predictable, testable way to handle complex state transitions.
- Your project uses TypeScript and benefits from strong type inference.
- You want visual tooling (Stately Studio) to design and simulate state machines.
- Zero runtime dependencies are important for bundle size.
When to avoid
- Your application has trivial state needs that can be handled by simple hooks or Redux.
- You prefer a purely functional or immutable data approach without explicit state machines.
- You need a solution that works out‑of‑the‑box with non‑JavaScript runtimes.
Facets
library · maturity active
state-management workflow-automation webhook web-development frontend backend browser state-machine statechart actor-model visualization zero-dependencies typescript-first nodejs deno typescript
10 sources
- readme: https://github.com/statelyai/xstate · fetched 2026-09-29 · b393d3156734
- homepage: https://stately.ai/docs · fetched 2026-09-21 · c3be329e6b0f
- site_page: https://stately.ai/docs/xstate-store · fetched 2026-09-21 · 11895b5591a5
- site_page: https://stately.ai/docs/glossary · fetched 2026-09-21 · e3933b2c3958
- site_page: https://stately.ai/docs/xstate · fetched 2026-09-21 · c8e2ebe97799
- site_page: https://stately.ai/docs/migration · fetched 2026-09-21 · 0b8d2039c3a0
- site_page: https://stately.ai/docs/quick-start · fetched 2026-09-21 · 7279969a3eca
- site_page: https://stately.ai/docs/states · fetched 2026-09-21 · 3b77c3bb3447
- site_page: https://stately.ai/docs/studio · fetched 2026-09-21 · dc3b6d02077c
- site_page: https://stately.ai/docs/state-machines-and-statecharts · fetched 2026-09-21 · 77731682c42f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| statelyai/xstate | main | 93 |
| statelyai/xstate-viz | plugin | 10 |
| statelyai/inspect | plugin | 81 |
For agents
markdown · JSON · MCP: product_card(name="statelyai/xstate")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem