⚠️ CodeSync is currently in beta. APIs and features may change.
CodeSync is a real-time collaborative code editor that allows multiple users to edit the same file simultaneously, similar to Google Docs but for code.
Built with Next.js, Express, and WebSockets (ws), it focuses on correctness, low latency, and real-time synchronization.
- Real-time code collaboration
- Versioned updates to prevent desync
- Cursor & selection presence (live)
- Room-based collaboration
- Automatic reconnection & resync
- Server-authoritative document state
- Next.js (App Router)
- React
- Monaco Editor (
@monaco-editor/react) - Native WebSocket API
- Node.js
- Express.js
ws(WebSocket library)
codesync/
├── client/ # Next.js frontend
├── server/ # Express + WebSocket backend
├── README.mdMIT License