docs(chord): introduce delta operations upfront

This commit is contained in:
Mario Zechner 2026-08-31 03:55:12 +02:00
parent 9af45be821
commit b99964b246

View file

@ -3,6 +3,10 @@
Chord Delta synchronizes one mutable JSON value from an authoritative producer
to an ordered replica. It is available from `@earendil-works/chord/delta`.
A change is represented by an `Op`: a small JSON tuple that replaces the root,
sets or deletes a value, updates a string, or splices an array. `flush()` returns
`Op[]`; `apply()` replays those operations on a replica.
```ts
import { apply, track } from "@earendil-works/chord/delta";