Real-time collaborative code editor built with React and Vite.
- 🚀 Real-time code synchronization
- 👥 Multi-user collaboration
- 💻 Support for C, C++, Java, JavaScript, and Python
▶️ Code execution with stdin support- 🎨 Monaco Editor integration
- 📱 Responsive design
- Node.js 16+ and npm
- Install dependencies:
npm install- Create a
.envfile:
cp .env.example .env- Update
.envwith your backend URL:
VITE_SOCKET_URL=http://localhost:3000Start the development server:
npm run devThe app will be available at http://localhost:5173
npm run buildBuild output will be in the dist directory.
VITE_SOCKET_URL- Socket.IO server URL (default:http://localhost:3000)
src/
├── api/ # API client and constants
├── components/ # React components
│ ├── client-circle/ # User avatar component
│ ├── editor/ # Code editor component
│ └── output/ # Output panel component
├── pages/ # Page components
│ ├── home/ # Landing page
│ └── code-editor/ # Editor page
├── socket/ # Socket.IO configuration
├── App.jsx # Root component
└── main.jsx # Entry point
- React 18.3
- Vite 6.0
- Monaco Editor
- Socket.IO Client
- React Router DOM
- Axios
- React Hot Toast
- SASS
- Large code files (>100KB) may cause performance issues
- Network latency can affect real-time synchronization
MIT