Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Why Relay

React makes building event-driven UIs easy, but coordinating multi-step flows—forms, payments, blockchain transactions or anything async, quickly turns into tangled useEffect chains, manual timers, or duplicated state.

Relay was created to give those flows an explicit structure: each step is a typed operation, Relay keeps status and payload data in a Zustand-backed store, and the UI can drive navigation with helpers instead of ad-hoc callbacks.

Relay at a glance

  • Typed steps declare their success and error payloads.
  • Flows are ordered step sequences that Relay executes one by one.
  • Stores live per createRelay key and expose selectors and helpers.
  • Status tracking surfaces operation states.

Relay is intentionally un-opinionated about how you build your steps while still giving you atomic control over each transition.