Metakit / Prune SSR payloads and gate queries

Prune SSR payloads and gate dependent queries

Server-rendered pages often serialize the entire model to the browser even when half the UI is behind a disabled feature flag or never changes after load. And cascading forms (country -> region -> city) often fire broken queries before upstream selections are filled in.

@doeixd/metakit/graph, a subpath of the @doeixd/metakit package (pnpm add @doeixd/metakit effect), works both out from your Machine and Expr definitions before the page runs, so no runtime tracker has to watch what each view reads. A Machine is a named set of transitions over one Schema (see Write a business rule once); an Expr is a rule or a value written as data. This page also shows how to build one machine from the machines of a model's parts.

A binding is a named expression a view reads, such as the balance the screen shows. A path is a field's address in the Model, such as ['balance'].