# XState workshop & statecharts training for teams

Canonical: https://davidk.dev/workshops/

Private, creator-led workshops by David Khourshid, the creator of XState. Available worldwide: on-site anywhere or remote; travel and lodging billed on top of fees. Prices in USD, excluding VAT; listed prices are minimums; travel billed on top.

## Curricula
### XState & statecharts, from the creator (Intermediate)
Model complex features as state machines and actors, then ship them with XState v5 in React, Vue, Svelte or plain TypeScript.
- States, events and transitions
- Hierarchical and parallel states
- Guards, actions and delayed events
- Actors: spawning, messaging, persistence
- XState + TypeScript inference
- Visualizing and simulating with Stately Studio

### React state management at scale (Intermediate to advanced)
Cut useState/useEffect sprawl, normalize data, choose the right store and make React and Next.js apps easier to change.
- Derived vs. stored state
- Goodbye, useEffect: event-driven effects
- Stores: XState Store, Zustand, Redux, context
- Normalization and caching
- Server state and Next.js
- Refactoring a real feature, step by step

### State-machine-powered AI agents (Intermediate)
Build agents that are predictable, testable and observable: explicit states, human approval steps and LLMs only where flexibility pays off.
- Why prompts alone produce slop
- Agent loops as graphs
- Human-in-the-loop approval states
- Tools, guards and recovery paths
- Observability and evaluation
- Using @statelyai/agent and XState

### Visual modeling & model-based testing (All levels)
Get product, design and engineering on one diagram, then generate tests from the model instead of writing them all by hand.
- Event storming to statecharts
- Diagrams that are executable
- Finding impossible states and edge cases
- Generating test paths from models
- Keeping models and code in sync
- Team workflows with Stately Studio

## Formats and starting prices
- **Remote half day**: from $9,500 (up to 4 hours). Up to 20 engineers; Additional seats $300/person; Live, hands-on, on Zoom/Teams/Meet.
- **Remote full day**: from $15,000 (1 day or 2 half days). Up to 20 engineers; Additional seats $600/person/day; Exercises, starter repo and solutions.
- **On-site, 1 day**: from $20,000 (+ travel). Up to 25 engineers; Additional seats $600/person; At your office, anywhere in the world.
- **On-site, 2 days**: from $36,000 (+ travel). Up to 25 engineers; Additional seats $600/person/day; Fundamentals to advanced patterns.
- **On-site, 3 days**: from $50,000 (+ travel). Up to 25 engineers; Includes a full day on your own codebase; Additional seats $600/person/day.
- **Leadership & architecture briefing**: from $10,000 (remote half day). Up to 20 leaders and staff+ engineers; “Should we adopt state machines, and how?”; Architecture options, risks and a rollout plan.

## Add-ons
- **Pre-workshop codebase review**: $5,000. David reviews your real code before the workshop; Exercises are built around your problems.
- **30-day follow-up**: $4,000. Async Q&A for 30 days after the workshop; Two 1-hour office-hour sessions.
- **Teaching assistant (30+ attendees)**: $2,500 (per day). Required above ~30 hands-on attendees; Or switch to a lecture format.

Book: https://davidk.dev/contact/?type=workshop · Terms: https://davidk.dev/terms/
