Learn / Wiring

What a Wiring brings and who provides one

Each integration builds its own wiring from your declaration. Every wiring carries a unique key, the Message tags it handles, optional shared tags that multiple wirings may observe, and optional hooks (route, init, onUrl, subscriptions, resources, and contract).

IntegrationCallWhat it brings
Remote dataData.wiring(active, options?)route for Data.reduce, fetch subscriptions, RemoteClient
Remote cache persistencepersistence(Data, { key, ... })Cache restore/save hooks, restore init, KeyValueStore
Remote durable outboxoutbox(Data, { key, ... })Outbox restore/send hooks, restore init, KeyValueStore
URL mirrorFilters.wiring(tag)Routes the URL Message, onUrl, subscriptions, contract
Key-value mirrorPrefs.wiring()Routes MirrorRestored, restore init, subscriptions
SyncTodoSync.wiring()Module ownership contract for validation
AgentAppAgent.wiring()Module ownership contract for validation

A wiring holds data and pure functions; the Effect services needed by commands and streams (such as RemoteClient or KeyValueStore) flow through the R type parameter into the final runtime config.