statelyai/xstate ? reverse-engineered prompt
Reverse engineered prompt
I want a TypeScript library for JavaScript apps that makes messy app logic feel predictable. Build a zero dependency state management tool where people can model flows as state machines and actors, send events, keep context, run side effects, and coordinate more complex workflows for both frontend and backend use. It should also include a much smaller event based store option for simpler cases, so someone can start lightweight and move up to full machines when they need more power.
Please make the API feel clean and modern, with a quick start that shows creating a machine, creating an actor from it, subscribing to state changes, and sending events. Add solid docs and examples, including simple vanilla TypeScript usage and examples for React, Vue, and Svelte if that matches the project. I want it to feel robust and visual, inspired by statecharts, not just another basic store. Look up current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit