@pokapali/subdocs
v0.1.0-alpha.3
Published
```sh npm install @pokapali/subdocs ```
Readme
@pokapali/subdocs
npm install @pokapali/subdocsYjs subdocument manager with namespace isolation. Creates
and manages one Y.Doc per namespace, tracks dirty state
(whether local changes exist since the last snapshot), and
handles snapshot application with origin markers so
snapshot-sourced updates can be distinguished from local
edits.
Key Exports
createSubdocManager(namespaces)— factory that initializes aY.Docper namespace with IndexedDB persistence and dirty trackingSubdocManager— interface withsubdoc(ns),encodeAll(),applySnapshot(),dirty,destroy()SNAPSHOT_ORIGIN— transaction origin marker for snapshot-applied updates
