Codocs is a real-time collaborative code editor built with React, Yjs, WebSockets, and MongoDB. Users can create or join rooms, code together in real time, and have their work persisted in a database.
- Multi-Room Support → Join or create rooms via
/room/:roomId - Room List → See available rooms and enter them
- Live Collaborative Editing → Multiple users edit the same file in real-time
- Persistence → State is stored in MongoDB and restored on reconnect
- WebSocket Sync → Efficient CRDT-based synchronization using Yjs
- Connection Logs → Debug connection status in dev console
- Frontend: React, Vite, Monaco Editor, React Router
- Collaboration: Yjs, y-monaco, y-websocket
- Backend: Express, WebSocket (ws), Socket.IO (future events)
- Database: MongoDB + Mongoose