Skip to content

Docs · Engines

State machine (FSM)

Native finite state machines, and the only engine here that decides whether the machine is one. A state machine's defects are facts about reachability and determinism, and neither has pixels: two arrows leaving a state on the same event with nothing to tell them apart is a machine and a coin toss, and it draws as two perfectly ordinary arrows. The engine reports nondeterministic branching, states nothing can reach, non-final states with no way out, a machine that can never terminate, and transitions naming states that were never declared — which every tool that draws what it is handed simply omits from the figure. Every arrow the document writes is drawn, and none is drawn through a box.

Architectural composition of precision sculptural forms
Templates
26
Source language
plaintext
Workstation
Studio
Engine id
statemachine

In the same space

Most users come to State machine (FSM) from XState visualizer or UML state diagram tools. flowss runs this engine in the browser — no install, shareable via URL, exportable to PNG / SVG / PDF / source.

Syntax at a glance

state Idle
state Paid final
initial Idle
transition Idle -> Paid on "pay"

Paste this in the Studio code pane to see State machine (FSM) render live. The full grammar is at the upstream-docs link above.

Sample templates

All 26 →
Engine reference: statemachine · ← Browse all engines · Quick-start guide