Define states once.
Render it anywhere.
A state-machine for design systems and complex UIs.
Blazing fast sealed in pure states and events. The same behavior drops
into any JS renderer. Inspired by
XState
and
Zag.
npm i @dunky.dev/state-machine - 🔒
Locked in by design
No external prop, no callback, no handle into the machine. Its behavior is closed to the world. Consumers react to the machine from outside.
- 🌍
Take it anywhere
The machine carries a universal, interactive UI of its own, clickable on any JS surface, precisely because it's a closed box.
- ⚡️
Blazing fast
Design systems and complex UIs can run hundreds of live machines at once. Dunky is tuned for exactly that load. See the benchmark →
Fast machines
Few bytes of state, events and context per machine. A tiny
footprint can spin up thousands of them
Built for high density × high frequency.
One machine.
Rendered on any JS runner.
The machine is a pure kernel with no environment assumptions. Plug it into any JS UI. If JS runs it, the machine drives it.
| machine | state | context |
|---|---|---|
| pacman | … | |
| ghost | … | |
| board | … |