Stately.js

Stately.js is a JavaScript based finite-state machine (FSM) engine for Node.js and the browser.

Website:https://github.com/fschaefer/Stately.js

 You can edit this code