Learn / Wiring
Wiring: join integrations in one list
Adding remote data, URL filters, saved preferences, and sync to a Foldkit application usually means wiring each integration by hand in five places: spreading message variants, branching in update, deriving subscriptions, handling url changes, and dispatching startup commands. Miss one step and the code still compiles while silently dropping server answers, ignoring shared links, or forgetting drafts.
A Wiring packages how one integration joins your application—the Messages it folds, the startup commands it runs, the subscriptions it opens, and the resources it owns—into a single value. Passing a list of wirings to Page.assemble derives update, initial, subscriptions, url, and your module contract in one pass, turning missed plumbing into a type error or a clear startup error.
For package-specific calls, see Remote, Mirror, Replicated state, and Agents.