@mixbened/simple-state-machine
v0.0.6
Published
A lightweight, class-based JavaScript/TypeScript state machine implementation. Ideal for modeling workflows, business processes, or lifecycle states with full control and no external dependencies.
Downloads
237
Readme
🧠 SimpleStateMachine
A lightweight, class-based JavaScript/TypeScript state machine implementation. Ideal for modeling workflows, business processes, or lifecycle states with full control and no external dependencies.
✨ Features
- Simple and intuitive API
- Deterministic state transitions
- Serializable and restoreable
- Written in TypeScript, usable in JS and TS
- Framework-agnostic (e.g. usable with NestJS, Express, etc.)
📦 Installation
npm install @mixbened/simple-state-machine