xstate@5.32.5
// Finite State Machines and Statecharts for the Modern Web.
$ npm install xstate
downloads/wk
4,664,424
license
MIT
version
5.32.5
published
Jul 14, 2026
What is xstate?
xstate is a JavaScript library for building and managing finite state machines and statecharts, which are formal models for defining how an application transitions between different states based on events. Developers use it to handle complex application logic—like user workflows, form validation, or async operations—in a predictable, testable way by explicitly mapping out all possible states and transitions rather than relying on implicit conditional logic.
Links
Keywords
Maintainers
davidkpiano, andarist, xstate-release-bot