As suggested by katspaugh I’m posting the libraries I found as the answer.
List of workflow libraries that I’ve found until now:
- XState – https://github.com/davidkpiano/xstate
- Workflow.js for Backbone.js https://github.com/kendagriff/workflow.js
- Sprout Workflow Engine https://github.com/bstaats/workr
- Javascript Finite State Machine https://github.com/jakesgordon/javascript-state-machine
- State chart https://github.com/DavidDurman/statechart
- machina.js https://github.com/ifandelse/machina.js
- jWorkflow https://github.com/tinyhippos/jWorkflow
- Stately https://github.com/fschaefer/Stately.js