~/projects / collabdocs
test case 03accepted
CollabDocs
Conflict-free real-time collaborative text editing
April 2025 · Personal ProjectSolo
// the problem
Concurrent edits from multiple users can overwrite each other or leave a document in an inconsistent state, especially when clients disconnect mid-edit or real-time traffic is spread across several server instances.
// how it works
Operational Transformation resolves concurrent changes before a Node.js WebSocket server broadcasts document deltas. PostgreSQL stores periodic checkpoints, while Redis pub/sub synchronizes edits across multiple server instances and keeps presence updates responsive.
// key features
- ✓Conflict-free concurrent editing with Operational Transformation
- ✓Real-time document delta broadcasting
- ✓Live cursor tracking for connected users
- ✓Periodic PostgreSQL checkpoints
- ✓Redis pub/sub synchronization across server instances
- ✓Reliable persistence through mid-edit disconnections
// working / preview
no media yet — add images to /public/project/collabdocs/ and update lib/projects.ts