Skip to content

XMachines Guides

User-facing guides for the XMachines Play architecture.

Start Here

  • Getting Started — Installation, first actor, routing, router adapters, and view renderers

Concepts

Background reading that explains the why behind XMachines design decisions.

  • State Machines — What finite state machines are, how meta.route and meta.view extend them, and why they replace boolean flags and component-level routing logic
  • The Actor Model — The actor/infrastructure split, why the machine has zero framework imports, and how the reset invariant works
  • Routing — The URLPattern grammar that a meta.route path declares, the prefix rule that decides every optional route, and the three invariants that every router adapter follows
  • Views — Which state supplies the view, the read-only /context projection, the viewKey that decides when a renderer keeps the UI, and the four invariants that every renderer follows
  • Atoms — The atom primitives (createAtom, createWritableAtom, watchAtom), why XMachines uses them instead of observables, and the architectural invariants they enforce

Tooling

Working with a running actor.

  • Inspecting a Running Actor — Attaching the Stately inspector via PlayerOptions.inspect, reading inspection events, enabling an inspector after startup, and inspecting without a browser