Skip to content

A real-time Collaborative Code Editor built using React, Node.js, Express, Socket.io, and the Piston API for executing code instantly in multiple languages.

Notifications You must be signed in to change notification settings

Bharath-dev05/peer-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💻 Collaborative Code Editor

  • A real-time Collaborative Code Editor built using React, Node.js, Express, Socket.io, and the Piston API for executing code instantly in multiple languages.
  • Collaborate, code, and compile together — all inside your browser.

🧠 Overview

This project lets multiple users edit and run code together in real-time. It simulates the collaborative experience of platforms like Replit or VS Code Live Share, allowing real-time updates, code execution, and teamwork directly from the web interface.

It’s ideal for:

  • Pair programming
  • Technical interviews
  • Coding practice with friends
  • Collaborative debugging sessions

⚙️ Features

  • Real-Time Collaboration using Socket.io
  • 💬 Multiple Users Editing Simultaneously
  • 🧩 Run Code Instantly via Piston API
  • 🧠 Multi-language Support
  • 🖥️ Clean, Responsive UI with syntax highlighting
  • 🔗 Room-based Collaboration (each session has a unique room ID)

🏗️ Tech Stack

Layer Technology
Frontend React, Tailwind CSS / CSS Modules
Backend Node.js, Express
Real-time Engine Socket.io
Code Execution Piston API
Code Editor Monaco Editor

🖥️ Usage Guide

  • Open the app and create a room or join an existing one.
  • Start typing — your changes appear instantly for everyone in that room.
  • Choose your preferred programming language.
  • Click Run to execute code (powered by the Piston API).
  • Output appears below the editor.
  • Share the room link with your friends to code together.

💡 Future Enhancements

  • 💬 In-editor Chat or Comments for collaboration
  • 💾 Save Code Snippets to database (MongoDB / PostgreSQL)
  • 👥 User Authentication (Clerk / Supabase / Firebase)
  • 🎤 Voice or Video Collaboration
  • 📑 Version History & Undo/Redo Sync

⭐ Support

If you like this project, please give it a ⭐ on GitHub — it helps others discover it.

About

A real-time Collaborative Code Editor built using React, Node.js, Express, Socket.io, and the Piston API for executing code instantly in multiple languages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published