ARCHOS 525 BLUEPRINT · /d/dgm_collaborative-editor
Real-Time Collaborative Document Editor (CRDT / Yjs & WebSockets)
7 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_collaborative-editor) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_collaborative-editor)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_collaborative-editor" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Real-Time Collaborative Document Editor (CRDT / Yjs & WebSockets) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0["Browser Clients"]
ws_1["WebSocket Edge GW"]
room_2[("Doc Sync Room")]
red_3[("Redis Pub/Sub")]
opl_4[("Append Op-Log Store")]
s3_5[("Compacted Snapshots")]
downstream_6["Downstream & OTel"]
client_0 -->|"1. Binary · WSS"| ws_1
ws_1 -->|"2. Route by · gRPC"| room_2
room_2 -.->|"3a. Broadcast · PubSub"| red_3
room_2 -.->|"3b. Batch · SQL"| opl_4
s3_5 -->|"Compact · S3 API"| opl_4
opl_4 -.->|"4. Emit / · OTLP/API"| downstream_6COMPONENT STACK (7)
- Browser ClientsSTATELESSLocal Yjs CRDT + IndexedDB
- WebSocket Edge GWSTATELESSConsistent-hashes by doc_id
- Doc Sync RoomSTATEFULMerges CRDT ops + presence
- Redis Pub/SubSTATEFULCross-pod presence & cursors
- Append Op-Log StoreSTATEFULDurable binary CRDT deltas
- Compacted SnapshotsSTATEFULPeriodic merged doc state
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Browser Clients → WebSocket Edge GW (Binary)[WSS]
- WebSocket Edge GW → Doc Sync Room (Route by)[gRPC]
- Doc Sync Room → Redis Pub/Sub (Broadcast)[PubSub]
- Doc Sync Room → Append Op-Log Store (Batch)[SQL]
- Compacted Snapshots → Append Op-Log Store (Compact)[S3 API]
- Append Op-Log Store → Downstream & OTel (Emit /)[OTLP/API]