Getting Started
Create your first state machine in seconds:Open Stately Studio
Start creating state machines visually at state.new
Key Features
Visual Editor
Stately Studio provides an intuitive drag-and-drop interface for building state machines:- State creation - Add states, transitions, and events visually
- Nested states - Build hierarchical state machines with ease
- Parallel states - Design concurrent workflows
- Actions and guards - Configure entry/exit actions and transition guards
- Context and events - Define machine data and event types
Live Simulation
Test your machines interactively:- Event simulation - Send events and watch state transitions
- State inspection - View current state and context values
- Time travel - Step backward and forward through state changes
- Path exploration - Visualize all possible paths through your machine
Export to XState
Generate clean, production-ready XState v5 code:Collaboration Features
Work together with your team:- Real-time collaboration - Edit machines with teammates simultaneously
- Comments - Leave feedback and discuss design decisions
- Version history - Track changes and restore previous versions
- Sharing - Share machines with view or edit access
- Teams - Organize machines within team workspaces
AI-Powered Generation
Stately AI helps you build machines faster:- Generate state machines from natural language descriptions
- Modify existing machines with AI assistance
- Get suggestions for common patterns
- Accelerate initial machine design
Stately Studio Features by Plan
Free Plan
- Unlimited public machines
- Export to XState v5, Mermaid, and JSON
- Live simulation and testing
- Community support
- Access to examples and templates
Pro Plan
Additional features:- Private machines - Keep your work confidential
- Version history - Access full change history
- Priority support - Faster response times
- Advanced exports - Additional export formats
- Stately AI access - Generate and modify with AI
Team Plan
Everything in Pro, plus:- Team workspaces - Organize team machines
- Role-based access - Control permissions
- Team collaboration - Real-time co-editing
- Admin controls - Manage team members
- Usage analytics - Track team activity
Using Stately Studio with XState
Import Existing Machines
Import XState code into Stately Studio:- Open Stately Studio
- Click “Import” and paste your XState code
- Edit visually and re-export
Export Formats
Stately Studio can export to:- XState v5 - Production-ready TypeScript/JavaScript
- JSON - Machine configuration as JSON
- Mermaid - State diagrams for documentation
- Image - PNG or SVG for presentations
Workflow Integration
Integrate Stately Studio into your development workflow:- Design - Create and iterate on machine logic visually
- Export - Generate XState v5 code
- Implement - Add implementation details in your codebase
- Test - Test with XState’s testing utilities
- Deploy - Ship your state machines to production
- Maintain - Update in Studio and re-export as needed
Templates and Examples
Start from proven patterns:Authentication Flow
Login, signup, and password reset flows
Form Validation
Multi-step forms with validation
Data Fetching
Loading, error, and success states
Shopping Cart
E-commerce cart management
Documentation Generation
Stately Studio automatically generates:- State documentation - Descriptions of each state
- Transition tables - All events and transitions
- Path coverage - Test paths through the machine
- Sequence diagrams - Event flow visualizations
- Team communication
- Requirements documentation
- Test planning
- Architecture reviews
Stately Sky
Deploy and run your state machines in the cloud:- Hosted workflows - Run machines without infrastructure
- Event ingestion - Send events via API
- State persistence - Automatically persist machine state
- Monitoring - Track machine execution
- Webhooks - React to state changes
VS Code Extension
The Stately VS Code extension brings Stately Studio into your editor:- Visualize machines directly in VS Code
- Edit machines and sync changes to code
- Navigate between states and code
- Autocomplete for state names and events
Stately Inspect
Debug running state machines:- Current state and context
- Event history
- Transition logs
- Spawned actors
Learning Resources
Video Tutorials
Stately YouTube
Tutorials, tips, and feature walkthroughs
Getting Started
Quick start videos for beginners
Documentation
- Stately Studio Docs - Complete Studio guide
- Stately Blog - Tips, patterns, and case studies
- Example Machines - Browse the public registry
Best Practices
Keep Machines Focused
- Design single-responsibility machines
- Use actor composition for complex workflows
- Avoid deeply nested state hierarchies
Use Descriptive Names
- Name states clearly (e.g., “loadingUser” not “loading”)
- Use semantic event names (e.g., “SUBMIT_FORM” not “CLICK”)
- Document intent with state descriptions
Test Paths Visually
- Use simulation to test happy and error paths
- Verify all states are reachable
- Check for impossible states
Version Control
- Export machines to version control
- Use Studio’s version history for iterations
- Tag releases with meaningful versions
Document Decisions
- Add comments explaining complex logic
- Use descriptions for states and transitions
- Share context with your team
Getting Help
Discord #stately-studio
Get help from the community
Support Email
Contact support for Pro/Team issues
GitHub Issues
Report bugs and request features
Tutorials
Learn with step-by-step guides
Pricing
Stately Studio offers plans for individuals and teams:- Free - Perfect for learning and public projects
- Pro - For professional developers ($19/month)
- Team - For teams and organizations (Custom pricing)
Try It Now
Create Your First Machine
Start building state machines visually at state.new
Stately Studio makes state machines accessible, visual, and collaborative. Whether you’re learning state machines or building production applications, Stately Studio helps you design better application logic. 🎨