Automate workflows.
Manage state effortlessly.

A powerful combination of workflow automation and state management — built for React, Angular, and the CLI.

3Packages
React+ Angular
CLIIncluded
Packages

Three tools. One workflow.

Pick the package that fits your stack — or use all three together for end-to-end automation.

Mstate React
State machine hooks for React. Manage complex transitions declaratively with zero boilerplate.
mstate-react
→ npm install
Mstate Angular
Reactive state machines for Angular. Integrates seamlessly with RxJS and services.
mstate-angular
→ npm install
Mstate CLI
Generate, visualize, and run state machines from the terminal. Scaffold workflows in seconds.
mstate-cli
→ npm install
Why Mstate

Built for real workflows

Everything you need to model, run, and debug complex state logic.

State machines

Model any workflow as a finite state machine with typed transitions and guards.

Zero boilerplate

Minimal API surface. Define states and actions — Mstate handles the rest.

Reactive updates

Integrates with React hooks and Angular observables natively out of the box.

$

CLI tooling

Scaffold and visualize machines from the command line without touching the UI.