Skip to content

Examples

Runnable apps that exercise the machine grammar. Build a machine yourself first (tutorial — ends with a complete login table), then skim the model. Work these apps in order — each adds machinery.

Example What it shows Read first
state_machine_walkthrough Flat login-style table; guards and actions co-located; pure machine-transition tests — the tutorial's cousin in-repo The model
nine_states One parallel machine, three regions; tags collapse 3×3×3 UI into one view decision Tags, Parallel regions
long_running_work Parent spawns N workers with :spawn-all; cooperative cancel on every exit path Actors
websocket Hierarchical connection machine; spawned socket actor; :after backoff; :always flush Hierarchical states, Automatic transitions, Actors