A collaborative coding platform with real-time synchronization, multi-language support, and AI assistance.
- Real-time Collaboration - Multiple users can code together with live cursor tracking
- Multi-language Support - Python, JavaScript, Java, C/C++, Go, Rust, and more
- Code Execution - Run code directly in the browser
- AI Assistant - Get help with debugging and code optimization (Gemini, OpenAI, Claude, Groq)
- Built-in Terminal - Execute commands in a sandboxed environment
- File Management - Create, edit, delete files in organized rooms
- Live Chat - Communicate with teammates in real-time
- Python 3.8+
- Node.js (for JavaScript execution)
# Clone the repository
git clone https://github.com/yourusername/codesync.git
cd codesync
# Install dependencies
pip install flask flask-socketio python-socketio
# Run the application
python app.pyVisit http://localhost:5000 to start coding!
- Enter a room name on the landing page
- Share the room URL with teammates
- Start coding together in real-time
- Use the AI assistant for help (API key required)
- Execute code and see output instantly
Backend:
- Flask + Flask-SocketIO
- Python 3.8+
Frontend:
- Ace Editor
- Socket.IO
- Vanilla JavaScript
AI Integration:
- Google Gemini
- OpenAI GPT
- Anthropic Claude
- Groq
Python • JavaScript • TypeScript • Java • C • C++ • Go • Rust • Ruby • PHP • Bash • SQL • HTML • CSS
GET /api/files/<room_id>- List filesPOST /api/file/<room_id>/<filename>- Save filePOST /api/execute- Execute codePOST /api/ai_assist- AI assistance
- Add user authentication
- Use HTTPS/WSS
- Implement rate limiting
- Validate all inputs
- Add proper session management
Contributions are welcome! Feel free to:
- Report bugs
- Suggest features
- Submit pull requests
MIT License - feel free to use this project for learning and development.
Made with ❤️ by Rugved Chandekar
⭐ Star this repo if you find it helpful!