XState v5 statecharts + WebGL visualizer for complex system modeling.
| Path | Contents |
|---|---|
src/charts/business.ts |
Business cybernetic control system — XState v5 machine |
src/visualizer/renderer.ts |
Three.js WebGL renderer |
src/visualizer/layout.ts |
Dagre graph layout |
src/visualizer/types.ts |
Shared types |
src/main.ts |
App entry point |
docs/business.md |
Deep documentation of the business model |
npm install
npm run devOpen http://localhost:5173 to see the interactive WebGL visualizer.
The business.ts statechart models a business as a cybernetic control system —
a self-regulating, goal-seeking entity that maintains structural coupling with its
environment through continuous feedback.
7 lifecycle states:
formation→ Pre-revenue, hypothesis testinggrowth→ PMF found, scalingmaturity→ Stable, optimizing, defendingdecline→ Structural erosiontransformation→ Deliberate reinvention (second-order cybernetics)crisis→ Existential threat, survival modeacquired/public/wind_down→ Terminal states
Theoretical foundations: Stafford Beer's VSM, Norbert Wiener's cybernetics, Ashby's Law of Requisite Variety.
See docs/business.md for the full conceptual model.
Drop a new *.ts file in src/charts/ following the pattern in business.ts.
Each chart exports a createMachine(...) call and optional stateMetadata.