(simple)-state-shifter: a Finite State Machine to simplify code flow

If you find business logic &/or UI flow is becoming a tangled web, with many if/else / switch statements, then consider s Finite State Machine like mine to reduce the code & help make it more legible: (live demo linked in repo) https://github.com/tomByrer/state-shifter
GitHub
GitHub - tomByrer/state-shifter: JS Finite State Machines made simple
JS Finite State Machines made simple. Contribute to tomByrer/state-shifter development by creating an account on GitHub.
No description
2 Replies
dys 🐙
dys 🐙2w ago
Neat project. ¿Did you look at XState at all for inspiration? FYI, the pictured link is misspelt & broken. 😸
No description
tombyrer
tombyrerOP2w ago
Thanks for the bug report! Yes, I've been following XState for like 5 years, even wrote a "Mermaid to XState" script last year. I wrote Simple-State-Shifter to be a more minimal replacement of XState's FSM.
GitHub
GitHub - tomByrer/mermax: MermaidJS to XState (Finite State Machine...
MermaidJS to XState (Finite State Machine) transformation - tomByrer/mermax

Did you find this page helpful?