Finite state machine module for node.js If you have to much of a if, else if, switch in your code, statemachines can help to abstract the logic and clean your implementation. What can it implement Acceptor type FSM