Skip to content
HomePagesHomePages template kit

COLLECTIONS

The registry of fact array fields a slot may be collection-bound to (a slot is collection-bound iff `source.kind === "direct"` and `source.field` is a key here).

The registry of fact array fields a slot may be collection-bound to (a slot is collection-bound iff source.kind === "direct" and source.field is a key here).

Import from @homepages/template-kit.

const COLLECTIONS: {
readonly units: {
readonly idKey: "unit_id";
readonly ownership: "property";
};
readonly contacts: {
readonly idKey: "id";
readonly cap: 12;
readonly min: 1;
readonly ownership: "library";
};
readonly comparables: {
readonly idKey: "id";
readonly ownership: "property";
};
}
  • The single home for per-kind mechanics; other layers implement their operations keyed by these entries rather than restating them. idKey names the stable canonical row id (used for merge, markers, and editor identity). cap/min, when present, are the API-enforced membership ceiling/floor. ownership is the property-owned vs. library-shared discriminator that gates writeback/fan-out strategy per layer — never a shared physical table.