xstate
State machines, statecharts, and actors for complex logic
TL;DR · 30-second scan
xstate (TypeScript) — State machines, statecharts, and actors for complex logic
You have a genuinely complex workflow with many states, transitions, and side effects.
State Management
Actor-based state machines. ~27k stars. Overkill for most apps but unbeatable for genuinely complex workflows — multi-step forms, async retries with rollback, real-time collaboration. Worth learning even if you do not adopt.
You have a genuinely complex workflow with many states, transitions, and side effects.
You have toggles and modals — useState is enough.
Add this badge to your README to show your project is curated on StackPicks. Free, lightweight (180×28 SVG), and gives your visitors a one-click way to see honest take + alternatives.
[](https://stackpicks.dev/repo/statelyai-xstate)
<a href="https://stackpicks.dev/repo/statelyai-xstate"><img src="https://stackpicks.dev/api/badge/statelyai-xstate" alt="Featured on StackPicks" width="180" height="28" /></a>
Are you the maintainer of statelyai/xstate? Add the badge and we'll feature your project in the weekly curator newsletter.