statelyai/xstate
View on GitHub ↗ ★ 30,396 TypeScript
State machines, statecharts, and actors for complex logic
30 mentions on Hacker News by 23 people: 7 stories, 23 comments · first 2017-08-26 · latest 2026-04-26
20082026
-
…XState, a JS/TS library for authoring, executing, and visualizing state machines/statecharts: https://github.com/statelyai/xstate I've been working on it for 10+ years. The main thing I've learned is that statecharts are most valuable when…
comment by davidkpiano · 2026-04-26 · in Statecharts: hierarchical state machines -
…value structuring displayed here in the example, but it is an interesting idea indeed. [0]: https://github.com/statelyai/xstate?tab=readme-ov-file#super...
comment by dleeftink · 2026-03-24 · in Qite.js – Frontend framework for people who hate React and love HTML -
▲ 29
XState – State machines for state management in JavaScriptstory by sebmellen · 2024-12-22 · 9 comments
-
…editor [0] and a state machine library with a visualization layer [1]. [0] https://state.new [1] https://github.com/statelyai/xstate
comment by davidkpiano · 2024-08-12 · in Finite State Machine Designer -
…[&] https://www.w3.org/TR/scxml/ [&] https://github.com/jbeard4/SCION [&] https://github.com/statelyai/xstate [&] https://www.rtsys.informatik.uni-kiel.de/en/archive/kieler [&] search the web and you'll find more [4] https://www.wis
comment by michaelsbradley · 2023-06-15 · in Sequence diagrams, the only good thing UML brought to software development -
There's also a pared down, minimal version of xstate: https://github.com/statelyai/xstate/tree/main/packages/xstat...
comment by cardamomo · 2023-05-15 · in JavaScript state machines and statecharts -
▲ 178
Xstate: State machines and statecharts for the modern webstory by thunderbong · 2023-03-27 · 77 comments
-
Statecharts (hierarchical state machines) for the modern web: https://github.com/statelyai/xstate#readme https://xstate.js.org/ Interactive visualizer: https://stately.ai/viz
comment by michaelsbradley · 2022-09-30 · in Facts about State Machines -
Declarative hierarchical state machines (a.k.a. statecharts) for JavaScript / TypeScript: https://github.com/statelyai/xstate#readme https://xstate.js.org/
comment by michaelsbradley · 2022-08-28 · in State Machines II -
1. XState is open-source and MIT-licensed: https://github.com/statelyai/xstate , as well as the extension https://github.com/statelyai/xstate-vscode and various other tooling. The editor is closed-source. 2. Really good example – yes, the…
comment by davidkpiano · 2022-02-09 · in Stately Editor Public Beta -
…advocate for this is, I really just don’t know. This is a simple todo list example from it’s docs: https://github.com/statelyai/xstate/tree/main/examples/todo-... Eh, I give up. I really have no words for any of this.
comment by crate_barre · 2021-10-10 · in How I built a modern website in 2021 -
…state machines & statecharts into web applications in a way that could be automatically visualized: https://github.com/davidkpiano/xstate
comment by davidkpiano · 2021-05-16 · in Ask HN: What are some tools / libraries you built yourself? -
See here: https://twitter.com/DavidKPiano/status/1372549025753395207 And here: https://github.com/davidkpiano/xstate/discussions/255
comment by davidkpiano · 2021-03-25 · in FSL: A programming language to make complex finite state machines easy to create -
…it to support visual manipulation and code generation. Project is JS/TS-specific, however. [0] https://github.com/davidkpiano/xstate [1] https://xstate.js.org/viz/?gist=bbcb4379b36edea0458f597e5eec...
comment by strogonoff · 2021-03-07 · in Nodes.io – A new way to create with code -
▲ 20
JavaScript/TypeScript finite state machines and statecharts for the modern webstory by hacksilver · 2021-03-05 · 1 comment
-
▲ 1
XState – State machines and statecharts for the modern webstory by Whitespace · 2021-03-02 · 0 comments
-
…machine. I'd say the most popular way to define a state machine in code is how Xstate does it: https://github.com/davidkpiano/xstate . You define your states, and then you define your inputs, and then you map out every single transition…
comment by amw-zero · 2021-01-01 · in State machines are wonderful tools -
…but a state machine gives you far more structure and comprehensibility around state management. https://github.com/davidkpiano/xstate
comment by kls · 2020-02-07 · in Angular 9.0 -
I came across a javascript implementation [1] and HN discussion from a year ago [2]. [1] https://github.com/davidkpiano/xstate [2] https://news.ycombinator.com/item?id=17805950
comment by enturn · 2020-01-19 · in Statecharts: A visual formalism for complex systems [pdf] -
…today already. I think tools like xState gets this right, you can glance the package listing here: https://github.com/davidkpiano/xstate/tree/master/packages Then you just include core + framework X integration, and if you need a new…
comment by capableweb · 2020-01-12 · in Rete: JavaScript framework for visual programming and creating node editor -
…interested in statecharts, have a look at these two resources: https://statecharts.github.io/ https://github.com/davidkpiano/xstate (This is probably the most complete implementation of statecharts so far)
comment by jlu · 2019-12-15 · in Ask HN: Favorite Nonfiction Books of 2019? -
Hooks + Context seems like a win, as does xstate https://github.com/davidkpiano/xstate
comment by sbussard · 2019-02-13 · in Ask HN: How do you manage state in your React application? -
…UI code. At that point, you can use React exactly as you described, as pure functions of data. [1] https://github.com/davidkpiano/xstate
comment by adamkl · 2019-02-03 · in React as a UI Runtime -
▲ 4
State machines and statecharts for the modern web and diagramsstory by based2 · 2019-01-19 · 0 comments
-
…it adds a FSM to React, plus it has an excellent visualisation tool [1] for the states. [0]: https://github.com/davidkpiano/xstate [1]: https://bit.ly/xstate-viz
comment by icc97 · 2018-09-08 · in Show HN: Micro JavaScript framework inspired by finite-state machine -
▲ 4
Functional, Stateless JavaScript Finite State Machines and Statechartsstory by midhunsezhi · 2018-08-21 · 2 comments
-
Hey! I'm the creator of xstate: https://github.com/davidkpiano/xstate - a pure, functional, declarative implementation of statecharts in TypeScript. It has zero dependencies, is frameworkless, and fast (O(n) state and transition look-up…
comment by davidkpiano · 2018-02-26 · in How I Learned to Stop Worrying and Love the State Machine -
…is a nice javascript library which even generates charts out of your defined states in your app: https://github.com/davidkpiano/xstate
comment by topaxi · 2018-02-26 · in How I Learned to Stop Worrying and Love the State Machine -
I would check out https://github.com/davidkpiano/xstate It's the one I've been most tempted to try. Ryan Florence has a good video of it somewhere. I haven't used explicit state machines in the past but there are a few apps that would have…
comment by tetheta · 2018-01-04 · in Ask HN: Do you use State Machines for UI dev? -
▲ 1
Xstate: Simple, stateless JavaScript finite-state machinesstory by mxstbr · 2017-08-26 · 0 comments