backend: real-time collaboration service #20

Open
opened 2026-11-15 22:24:08 -05:00 by forgejo_admin · 0 comments
Owner

dongba-collab: Yjs sync over WebSocket with yrs.

  • wss://.../collab/{fileId}, token as first message, role check (viewers read-only)
  • awareness (cursors, names, colors)
  • cross-replica fan-out over NATS so any pod serves any document
  • debounced snapshots: files.crdt_state + new blob, never losing acknowledged edits
  • render-status events pushed to open editors

Conventions — CLAUDE.md and PLAN.md at the repo root.

`dongba-collab`: Yjs sync over WebSocket with `yrs`. - [ ] `wss://.../collab/{fileId}`, token as first message, role check (viewers read-only) - [ ] awareness (cursors, names, colors) - [ ] cross-replica fan-out over NATS so any pod serves any document - [ ] debounced snapshots: `files.crdt_state` + new blob, never losing acknowledged edits - [ ] render-status events pushed to open editors **Conventions** — CLAUDE.md and PLAN.md at the repo root.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
k8s-services/dongba#20
No description provided.