XState comparison - cassiozen/useStateMachine Wiki

I’m a huge XState fan and this library obviously took a lot of inspiration from it. XState is the golden standard for state machines in JavaScript, but this library has a more niche use case:

Finally, it has a heavy focus on type inference - it's nice when a library can provide autocompletion and type checking without requiring you to manually provide typing definitions.

And how does it compare to @xstate/fsm?

The gist is: