Machina and its use case with Server Driven UI
summary
Shows how Machina (a JavaScript FSM framework) runs server driven UI for cross‑country KYC flows, with a single FDD unique identifier selecting the flow and reusable React components to avoid bundle bloat. Designs a parent/child FSMs structure where the parent controls transitions and children run field validations (e.g., Denmark national ID must be 13 digits) via executors and handlers. Child executors return completed or incomplete so states can be skipped, repeated, or persisted from the server.
AI-written summary · about
