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
[](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_5COMPONENT STACK (6)
- Multiplayer EditorsSTATELESSDocs, whiteboards & canvases
- Sync Room GatewaySTATELESSSticky WS room routing
- CRDT Room ActorSTATEFULIn-memory Yjs/RGA merge
- Awareness ChannelSTATELESSEphemeral cursors & selection
- Compacted Doc StoreSTATEFULOp log + periodic GC snapshot
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Multiplayer Editors → Sync Room Gateway (Sync ops)[WSS]
- Sync Room Gateway → CRDT Room Actor (Merge CRDT)[RAM]
- Sync Room Gateway → Awareness Channel (Broadcast)[PubSub]
- CRDT Room Actor → Compacted Doc Store (Flush snap)[SQL/S3]
- Awareness Channel → Compacted Doc Store (Apply)[Async]
- Compacted Doc Store → Downstream & OTel (Emit /)[OTLP/API]