Code Together
Code Together is a collaborative code editor for pair programming, interviews, and learning. Share a file, see every change live, and run it in your browser

Problem
Developers who pair program, prepare for interviews, or learn together keep switching tools. They share snippets over chat, take turns on a screen share, and run code separately on their own machines. Nobody sees the same code at the same time, feedback is slow, and setting up a shared environment takes longer than the session itself.
Solution
Code Together is a browser-based collaborative code editor. Users create a file, invite teammates by email, and edit together in real time, with every change synced instantly. They can run JavaScript, Python and C++ next to the editor and see the output, and ask a built-in AI assistant for explanations or debugging help. There's nothing to install: sign up, create a file and start coding.
My contribution
- Designed and built the full-stack application end to end as the sole developer.
- Built the React front end with Redux Toolkit, React Router and the Monaco editor, the editor behind VS Code.
- Built the Node.js and Express REST API with MongoDB and Mongoose.
- Implemented real-time collaboration with Socket.IO, using a room per file and debounced saves.
- Secured socket connections with JWT authentication and checked file ownership and collaborator access on every event.
- Implemented signup with email verification codes, login with JWT, and password hashing with bcrypt.
- Built an invitation system with email and real-time in-app notifications.
- Built code execution for JavaScript, Python and C++, streaming output back to the browser.
- Integrated Google Gemini as an in-editor AI assistant with per-file chat history.
- Added Redis-based rate limiting to keep AI usage within API quotas.
- Sent transactional emails with Nodemailer: verification codes, invitations and feedback replies.
- Migrated the client from Create React App to Vite 8, React 19 and Tailwind CSS 4, and redesigned the whole UI.
- Reduced the client's known dependency vulnerabilities from 111 to 0.
- Built a wake-up screen that keeps users informed while the free-tier server starts.
- Deployed the client on Vercel and the server on Render.
Features
- Real-time collaborative editing
- JavaScript, Python and C++ support
- Run code in the browser with live output
- AI coding assistant powered by Google Gemini
- Invite collaborators by email
- Accept or decline invitations from an in-app inbox
- Real-time notifications when someone joins or leaves a file
- Email verification at signup, with resend code
- Secure login with JSON Web Tokens
- Owner and collaborator access control per file
- Save status and offline indicator in the editor
- Light and dark editor themes with adjustable font size
- Searchable dashboard of your files and shared files
- User feedback wall on the landing page
- Responsive design for desktop and mobile
Architecture
Code Together is a single-page React application backed by a Node.js API and a WebSocket server.
The client is built with React 19 and Vite and hosted on Vercel. Redux Toolkit holds the login session and file lists. The Monaco editor is loaded only when a file is opened, which keeps the landing page fast.
The server is an Express application on Render. It exposes REST endpoints for accounts, files, invitations, feedback and the AI assistant. It also runs a Socket.IO server on the same HTTP server.
Every socket connection is authenticated with the same JSON Web Token (JWT) used by the REST API. Each file has its own Socket.IO room. When a user edits, the client debounces changes and sends them to the server. The server checks that the user owns or collaborates on the file, saves the content to MongoDB, and broadcasts the update to everyone else in the room.
MongoDB Atlas stores users, files, invitations, AI chat history and feedback. Redis tracks AI request counts so the app stays within Google Gemini's rate limits. Nodemailer sends verification codes and invitation emails through SMTP. Code runs in child processes on the server, and the output streams back to the browser over the socket.
Screenshots
Related projects
FeaturedFull StackPersonalReview Pulse AI
Review Pulse AI turns thousands of App Store and Google Play reviews into a scheduled, AI-written action report, delivered to your own Google Doc and Gmail.
- Next.js
- React
- TypeScript
- JavaScript
FeaturedFull StackPersonalFitGen - AI Smart Workout & Macro Diet Generator
An AI fitness planner where the model is structurally incapable of inventing an exercise, a food, or a calorie.
- JavaScript
- TypeScript
- React Query
- Node.js