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).
| Integration | Call | What it brings |
|---|---|---|
| Remote data | Data.wiring(active, options?) | route for Data.reduce, fetch subscriptions, RemoteClient |
| Remote cache persistence | persistence(Data, { key, ... }) | Cache restore/save hooks, restore init, KeyValueStore |
| Remote durable outbox | outbox(Data, { key, ... }) | Outbox restore/send hooks, restore init, KeyValueStore |
| URL mirror | Filters.wiring(tag) | Routes the URL Message, onUrl, subscriptions, contract |
| Key-value mirror | Prefs.wiring() | Routes MirrorRestored, restore init, subscriptions |
| Sync | TodoSync.wiring() | Module ownership contract for validation |
| Agent | AppAgent.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.