Hacker News new | past | comments | ask | show | jobs | submit | davidkpiano's comments login

Thank you for the kind words! I somewhat agree that it is complicated and overly engineered for many applications that don't need all of the statechart features, and that it has a sizable learning curve.

I plan on greatly simplifying it for the next major version, mostly to be more idiomatic and flexible without sacrificing the state machine principles.


I'm looking forward to it and ready to beta test immediately!

PS: while we're at it, could you please take a look at #248 @ GitHub. Seems like this issue's export to linear failed when I have opened it.


You and your team are real MVPs.


I remember this! It was one of my inspirations for creating a hierarchical state machine editor [0] and a state machine library with a visualization layer [1].

[0] https://state.new [1] https://github.com/statelyai/xstate


Hey thanks for linking, I'm still working on this and hope to have a beta release soon!

Stately Agent is a completely open-source library for creating (LLM) agents that adhere to state machines.


How does this compare to the state machine editor on https://state.new ?


Seems stately.ai has a stronger descriptive power. Protocoldesigner doesnt have mature features now, and not even a best practice.


There are a lot of resources on finite state machines, especially in TypeScript, here: https://stately.ai/docs/state-machines-and-statecharts


Thank you, I am starting to play around with this library. I am also reading up on workflow engines vs finite state machines.


(Creator here) Thank you for the mention!


Oh hey it's me!


You don't need to define every possible state. A state machine can serve as a higher-level structure of some of the states (statuses, modes) of parts of your app, for ease of structuring logic. But you can also create a single-state state machine and represent non-finite data as "external state".


XState creator here!

I love that use-case. We have plenty of developers & companies using XState on the backend, and one of our main goals for XState v5 was to enable more backend use-cases, with custom & composable actor logic, deep persistence, inspection APIs, and actor-first statechart features for modeling more complex actor-actor interaction.

Ultimately, we'd love to be an open-source alternative to AWS Step Functions.


This looks awesome!


Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: