Note: The server-side WebSocket protocol for collaborative editing in this project was inspired by the Yjs community discussion on syncing servers and horizontal scaling and the implementation in yjs-scalable-ws-backend.
Collaborative document editor with AI-powered spell check.
- Node.js (v18+ recommended)
- Yarn or npm
cd backend
npm install
cd ../frontend
npm install
cd backend
npm run dev
cd frontend
npm run dev
Visit http://localhost:5173 in your browser.
- Backend runs on Cloudflare Workers (local dev via Wrangler)
- Frontend is a Vite React app
- Collaborative editing powered by Yjs and WebSocket
- AI spell check via OpenAI/Meta Llama (see backend config)
- yjs-scalable-ws-backend: Horizontally scalable Yjs WebSocket backend with persistence and Redis pub/sub.