
XState
JavaScript and TypeScript library for state management and orchestration, built on state machines, statecharts and actors.
XState is a JavaScript and TypeScript library for state management and orchestration. It models application logic as state machines, statecharts and actors.
The same repository holds the @xstate/store, @xstate/react, @xstate/vue, @xstate/svelte, @xstate/solid and @xstate/effect packages. Stately, the company founded by the library’s creator, offers Stately Studio, a hosted visual editor that its docs describe with premium features, as a separate product.
Worth knowing
The README and docs present a beta of the next major release as the install route, while the npm latest tag is the stable line.
Identity
Rendering and deploy
- Install with
- npm4
Releases
Adoption
Sources
- 2026-11-17: links
stately.ai/docs - 2026-11-17: links, Written in, GitHub stars
api.github.com/repos/statelyai/xstate - 2026-11-17: Maintainer, License, License model
raw.githubusercontent.com/statelyai/xstate/next/LICENSE - 2026-11-17: Categories, Install with
raw.githubusercontent.com/statelyai/xstate/next/README.md - 2026-11-17: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/xstate - 2026-11-17: First release
registry.npmjs.org/xstate - 2026-11-17: Current major version, Last release
api.github.com/repos/statelyai/xstate/releases - 2026-11-17: Contributors
api.github.com/repos/statelyai/xstate/contributors?per_page=1 - 2026-11-17: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/xstate