stately.js
Stately.js is a JavaScript based finite-state machine (FSM) engine for Node.js and the browser.
kingly
State machine library (Extended Hierarchical State Transducer)
@thi.ng/cellular
Highly customizable 1D cellular automata, shared env, multiple rules, arbitrary sized/shaped neighborhoods, short term memory, cell states etc.