Skip to main content

Yjs Internals

Table of Contents

Yjs Internals #

An AI-generated, source-grounded tutorial for understanding how Yjs synchronizes shared objects across concurrent editors.

Architecture Map #

flowchart TD A0["Doc"] --> A1["YType"] A1 --> A2["Transaction"] A2 --> A3["StructStore"] A3 --> A4["Item / AbstractStruct"] A4 --> A5["ID"] A2 --> A6["Update Encoding / Decoding"] A3 --> A7["Snapshot"]

Chapters #

  1. Doc
  2. YType
  3. Transaction
  4. Update Encoding / Decoding
  5. Snapshot
  6. StructStore
  7. Item / AbstractStruct
  8. ID