Metakit / API
@doeixd/metakit/graph
Static dependency graph, SSR live-frontier pruning, and dependent-query
readiness (@doeixd/metakit/graph).
Browser code that only needs path matching should import @doeixd/metakit/graph/match
(which imports only path.ts and never loads ops/residualize or sqlLowering).
Functions
addressesOverlap | True when two PathAddresses live in the same namespace and overlap by prefix. |
affectedTags | Given a record of transition footprints { [Tag]: { writes } } and a reader's reads (Option.none() when unknown), return the tags whose writes can affect… |
analyze | Thin call over Graph.build for a Machine and a record of named view Expr bindings. |
build | Build the indexed DependencyGraph once from writers, readers, and optional row -> model bridge links. |
formatAddress | Format a PathAddress for diagnostics and explanations. |
knownEdge | Convenience constructor for a known PathEdge. |
minimizePaths | Deduplicate and minimize a list of paths: ['account'] subsumes ['account', 'balance'], and ['todos', '*'] subsumes ['todos', '0', 'title']. A concrete… |
modelPath | The PathAddress of the Model path (Path.forSchema(Model).todos). |
pathsOverlap | True when a and b overlap in either direction (a is a prefix of b or b of a). |
pruneStatic | Partially evaluate every binding against a known staticSlice (e.g. feature flags, tenant config, or server-only constants), separating fully folded… |
rowPath | The PathAddress of path, a field path of the row set entity. |
unknownEdge | Convenience constructor for an unbounded 'unknown' edge. |
writesOverlapReads | Whether a transition's writes can affect a reader with reads. |
Interfaces
DependencyGraph | |
GraphAnalysis | |
PathEdge | A single read or write edge. path: Option.none() with knowledge: 'unknown' is unbounded. |
PrunedBindings | |
ReaderNode | |
RowToModelLink | Bridge edge where a Remote read projects stored-row fields into a Model path (so a write to row transitively affects readers under model). |
WriterNode |
Types
EdgeKnowledge | How a read or write edge was obtained. 'unknown' is never treated as empty. |
OverlapReason | |
PathAddress | Unified address for both Model paths and stored-row fields. |
ReaderKind | |
WriterKind |