Loading
Loading
A real-time collaborative text editor using Yjs CRDTs and WebSockets (Hocuspocus) to enable conflict-free concurrent editing across multiple users. Built with a scalable document synchronization service, secure JWT authentication, and MongoDB persistence for seamless session recovery.
Synchronizing concurrent document edits across multiple users without conflicts or server lag
Architecting a scalable document sync service with robust JWT authentication
Ensuring MongoDB persistence handles quick session recovery during socket reconnects
Demonstrating real-time capability with low-latency updates under heavy concurrency
Implemented Yjs CRDTs (Conflict-free Replicated Data Types) and WebSockets via Hocuspocus for sub-100ms real-time sync
Designed a custom authentication provider inside Hocuspocus to validate JWTs on connection establishment
Created a debounced document persistence pipeline to save editor states to MongoDB without overwhelming the database
Built a highly optimized collaborative interface with visible user carets to verify low-latency synchronization
Conflict-Free Real-Time Collaborative Editing (Yjs CRDTs)
WebSocket-based communication via Hocuspocus
Secure JWT Authentication on Socket Handshake
MongoDB Persistence for Document State Storage
Instant Connection Recovery & Session Persistence
Sleek collaborative workspace user interface





