javascript-state-machine (npm): A finite state machine library
Keywords: finite state machine|state machine|server|client