Get started
Get started quickly with XState and Stately Studio.
- Install XState- You can install XState using your favorite package manager or embed the `` directly from a CDN. 
- Quick start- Want to jump straight into XState and Stately Studio? Start here! 
- Migrate to XState v5- Following our guide below, migrating from XState version 4 to version 5 should be straightforward. If you get stuck or have any questions, please reach out to the Stately team on our Discord. 
- Examples- XState v5 beta examples are also available in the /examples directory. Many of the examples have a CodeSandbox link where you can run the example in your browser. 
- Templates- XState runs anywhere you can run JavaScript and is framework-agnostic. But you can get started with or without your framework of choice using the templates below. 
- Cheatsheet- Use this cheatsheet to quickly look up the syntax for XState v5 beta.