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.
npm install @mixbened/simple-state-machineA lightweight, class-based JavaScript/TypeScript state machine implementation. Ideal for modeling workflows, business processes, or lifecycle states with full control and no external dependencies.
- 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.)
```bash
npm install @mixbened/simple-state-machine