This is where I experiment with ways to combine svelte & statecharts.
Currently I'm using a custom statechart lib in ./src/machine.js but I've also tried out xstate.
./src/machine.js
xstate
> npm install
> npm start
abstract-state-router
sapper