stateful.js (npm): Simple implemetation of the State pattern for JavaScript
Keywords: state|state machine|fsm|design patterns