Skip to content

The best XState alternatives

7 tools that do a similar job to XState, 7 of them open source. Each entry says what it does and who it suits, so you can pick the one that fits instead of the most famous.

You're replacing

XState

A JavaScript/TypeScript library for managing app and workflow logic with state machines and actors.

  1. 1

    Redux

    Open source · MIT · ★ 61.4k

    A JavaScript library for keeping an app's shared state predictable and easy to test.

    Best for: Developers building larger front-end apps where many components share the same data; Teams that want state changes to follow a consistent, testable pattern

  2. 2

    Zustand

    Open source · MIT · ★ 58.9k

    A small React state-management library built on hooks, with no providers needed.

    Best for: React developers who want simpler shared state than Redux; Apps that need state shared across many components without wrapping them in providers

  3. 3

    UI-Router

    Open source · MIT · ★ 13.4k

    A routing library for AngularJS apps that maps URLs to nested app states and views.

    Best for: Teams maintaining an existing AngularJS 1.x application; Developers who need nested views that follow URL structure

  4. 4

    Jotai

    Open source · MIT · ★ 21.3k

    A small React state library where you manage state as independent 'atoms'.

    Best for: React developers who want simple shared state without heavy setup; Teams that find a single large store too rigid and want state split into small pieces

  5. 5

    Valtio

    Open source · MIT · ★ 10.2k

    A small state library for React and plain JavaScript where you change state like a normal object.

    Best for: React developers who want simple shared state without a lot of boilerplate; Developers who prefer mutating state directly instead of writing reducers or immutable updates

  6. 6

    React Flow

    Open source · MIT · ★ 38.9k

    Open source React and Svelte libraries for building node-based, diagram-style user interfaces.

    Best for: Frontend developers building a flowchart or diagram editor in React; Teams building a visual workflow or node-graph tool in Svelte

  7. 7

    PocketFlow

    Open source · MIT · ★ 11.3k

    A tiny Python framework (about 100 lines) for wiring LLM calls into graphs of steps and agents.

    Best for: Developers who want a small, readable LLM framework they can inspect in full; Python programmers building agents, multi-step workflows, or RAG pipelines

How we pick: tools in the same category that solve the same problem, projects that name each other as alternatives, and open-source projects that describe themselves as an alternative to XState. We don't take payment for placement.