Hacker GitHub

← All repos

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

Mentions per year 30 mentions · busiest year 2021 (7)
20082026
  1. …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
  2. …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...
  3. ▲ 29
    XState – State machines for state management in JavaScript
    story by sebmellen · 2024-12-22 · 9 comments
  4. …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
  5. …[&] 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
  6. 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
  7. ▲ 178
    Xstate: State machines and statecharts for the modern web
    story by thunderbong · 2023-03-27 · 77 comments
  8. 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
  9. 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
  10. 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
  11. …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
  12. …state machines & statecharts into web applications in a way that could be automatically visualized: https://github.com/davidkpiano/xstate
  13. See here: https://twitter.com/DavidKPiano/status/1372549025753395207 And here: https://github.com/davidkpiano/xstate/discussions/255
  14. …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
  15. ▲ 20
    JavaScript/TypeScript finite state machines and statecharts for the modern web
    story by hacksilver · 2021-03-05 · 1 comment
  16. ▲ 1
    XState – State machines and statecharts for the modern web
    story by Whitespace · 2021-03-02 · 0 comments
  17. …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
  18. …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
  19. 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
  20. …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…
  21. …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)
  22. Hooks + Context seems like a win, as does xstate https://github.com/davidkpiano/xstate
  23. …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
  24. ▲ 4
    State machines and statecharts for the modern web and diagrams
    story by based2 · 2019-01-19 · 0 comments
  25. …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
  26. ▲ 4
    Functional, Stateless JavaScript Finite State Machines and Statecharts
    story by midhunsezhi · 2018-08-21 · 2 comments
  27. 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…
  28. …is a nice javascript library which even generates charts out of your defined states in your app: https://github.com/davidkpiano/xstate
  29. 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…
  30. ▲ 1
    Xstate: Simple, stateless JavaScript finite-state machines
    story by mxstbr · 2017-08-26 · 0 comments