Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_crdt-collaboration

CRDT Collaboration Platform (Yjs/Automerge, Cursors & Compaction)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![CRDT Collaboration Platform (Yjs/Automerge, Cursors & Compaction) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_crdt-collaboration/opengraph-image)](https://archos.sageideas.dev/d/dgm_crdt-collaboration)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_crdt-collaboration)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_crdt-collaboration" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="CRDT Collaboration Platform (Yjs/Automerge, Cursors & Compaction) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Multiplayer Editors"]
  n1_1["Sync Room Gateway"]
  n2a_2[("CRDT Room Actor")]
  n2b_3["Awareness Channel"]
  n3_4[("Compacted Doc Store")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Sync ops · WSS"| n1_1
  n1_1 -->|"2a. Merge CRDT · RAM"| n2a_2
  n1_1 -.->|"2b. Broadcast · PubSub"| n2b_3
  n2a_2 -->|"3a. Flush snap · SQL/S3"| n3_4
  n2b_3 -->|"3b. Apply · Async"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Multiplayer EditorsSTATELESS
    Docs, whiteboards & canvases
  • Sync Room GatewaySTATELESS
    Sticky WS room routing
  • CRDT Room ActorSTATEFUL
    In-memory Yjs/RGA merge
  • Awareness ChannelSTATELESS
    Ephemeral cursors & selection
  • Compacted Doc StoreSTATEFUL
    Op log + periodic GC snapshot
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Multiplayer Editors → Sync Room Gateway (Sync ops)[WSS]
  2. Sync Room Gateway → CRDT Room Actor (Merge CRDT)[RAM]
  3. Sync Room Gateway → Awareness Channel (Broadcast)[PubSub]
  4. CRDT Room Actor → Compacted Doc Store (Flush snap)[SQL/S3]
  5. Awareness Channel → Compacted Doc Store (Apply)[Async]
  6. Compacted Doc Store → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →