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
successanderrorpayloads. - Flows are ordered step sequences that
Relayexecutes one by one. - Stores live per
createRelaykey and exposeselectorsandhelpers. - 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.