A Flying Spagetti Monster (finite state machine) implemented in Java and JavaScript.
The JavaScript version of this allows for you to invoke print on a composed fsm to emit to STDOUT documentation visually in the form of a directed graph such as a Melior Graph in Graphviz markup.