# xstate

> State machines, statecharts, and actors for JavaScript and TypeScript

XState is a state management and orchestration library for JavaScript and TypeScript applications. It uses finite state machines, statecharts, and the actor model to model and control complex application logic. Developers install it via package managers to coordinate workflows across frontend frameworks or backend runtimes.

- Source: https://github.com/statelyai/xstate
- Homepage: https://stately.ai/docs
- Live demo: https://state.new/
- License: MIT
- Built with: TypeScript 97.1%, JavaScript 2.4%, Other 0.5%
- Stars: 30535 (+538 in the last 90 days)
- Forks: 1417
- Contributors: 369
- Last commit: 2026-11-23
- Latest release: xstate@5.33.4 (2026-11-07)
- Purpose: Developer tools
- Type: Library / SDK
- For: Personal

## Can I use it?

MIT License. Permissive. Few rules: use it almost any way you like, if you keep the notice.

- Use it at work: Yes. Free for personal and company use.
- Sell what you build with it: Yes. You can sell apps and services that include it.
- Keep your own code private: Yes. You don’t have to share your code or your changes.
- Put it in a closed-source app: Yes. You can ship it inside closed-source software.
- Credit the authors: Required. Keep the copyright and license notice in the copies you share.

Good to know:

- It comes with no promise that it works. You use it at your own risk.
- This covers the project’s own code. Its dependencies, and folders like “ee”, may have other licenses.
- The license can change between versions. The one in the version you use is what counts.

_For information only, not legal advice. This is a short summary of the MIT License. The license text is what counts. [Read the full license](https://spdx.org/licenses/MIT.html). For a business decision, ask a lawyer._

[Compare the common licenses](https://diggithub.com/-/licenses#lic-mit)

## Worth score: 79/100

How much DigGitHub recommends it, from activity, adoption, docs, license and security signals.

- Popularity: 22/25
- Momentum: 8/20
- Maintenance: 25/25
- Community: 12/15
- Readiness: 12/15

## Downloads

Latest release: [xstate@5.33.4](https://github.com/statelyai/xstate/releases/tag/xstate%405.33.4). Files from the project's GitHub release, not checked by DigGitHub.

Source code only: this release has no files to download.

## Alternatives

- [SolidJS](https://diggithub.com/solidjs/solid.md): Fine-grained reactive UI library
- [Zustand](https://diggithub.com/pmndrs/zustand.md): Small, fast state management for React

---

Source page: https://diggithub.com/statelyai/xstate
Updated: 2026-11-24
