@evryg/effect-op-graph
v0.0.1
Published
Graph mutations as data for Effect: vertex and edge upserts, declaration checks, a materializer port and its contract laws
Downloads
5,825
Readme
@evryg/effect-op-graph
Graph mutations as data for Effect. A GraphOp is a vertex or edge upsert keyed by a MERGE identity, so every op stream is append-only and idempotent. The package checks ops against vertex and edge declarations, keys vertices by partition, tallies edge outcomes, and defines the GraphOpMaterializer port that writes an op stream to a store.
Entry points
@evryg/effect-op-graph: theGraphOpterms, declaration checks, partition and attribution enrichers,SetMap,EdgeTally, theGraphOpMaterializerport and its combinators.@evryg/effect-op-graph/contract: the deterministic contract everyGraphOpMaterializerimplementation must pass, as an@effect/vitestsuite.@evryg/effect-op-graph/contract/laws: the property-based laws of the same contract.
The two contract entry points need @effect/vitest, an optional peer dependency.
