Examples

Three worked machines, each adding one idea. They use only @statewalker/fsm — no framework, no build step — and every one runs live on its page.

Each page shows the configuration, a live statechart, and the code that wires behaviour to states. For the concepts behind them, read States, Events & Transitions and Hierarchy & Lifecycle.