← Archive

Fetch lifecycle, made tangible

Transition Trail Explorer

State-machine playground for API fetch flows—valid events, guarded retries, scripted scenarios, and a living history log.

2 weeks1 authorCompleted

Problem

Async fetch flows are taught with diagrams that don't fail—engineers don't feel why guards and retry ceilings matter.

Overview

Teaches the classic fetch lifecycle as an explorable graph: every transition is clickable, invalid moves explain why guards failed.

Scenario scripts auto-play happy path, guarded retry, and exhausted-retry arcs so teams can demo reliability patterns in seconds.

Built for engineers onboarding to XState-style thinking without reading a manual first.

Role

Concept, UI, and state model—built as a teaching surface for interviews and onboarding.

Decisions

  • Events as the primary control

    Bright vs dimmed events show legality at a glance—closer to operating a real app than reading a chart.

  • Guard failures in the history log

    Rejected transitions stay visible with reasons, mirroring production debugging instead of hiding errors.

  • Scenario scripts for narrative

    Happy path, retry, and exhaustion arcs auto-play—useful for demos without live improvisation.

Outcome

A playground where invalid events explain themselves and scripted scenarios demonstrate exhaustion in under a minute.

Capabilities

  • Interactive event panel with enabled/disabled cues
  • Guarded RETRY with retryCount ceiling
  • Scripted scenario runner
  • Transition history with failure reasons

Stack

ReactTypeScriptState MachinesVite