AFSM
Decorator-driven async state machines — change state in one line
Decorator-driven
Wrap async methods with @ChangeState and other decorators to auto-manage transitions and intermediate states.
Visual state diagrams
Auto-generates mermaid stateDiagram-v2 so you can observe the topology and transitions live.
Composition & interruption
Compose multiple FSMs via context, abort in-flight MiddleStates, sync mode, and inheritance.
DevTools extension
Companion Chrome / Edge DevTools panel to inspect running state machines and their history.
Try it live
Here’s the “traffic light” example — it auto-runs: