{"id":18144822,"url":"https://github.com/mhistiak3/real-time-code-editor","last_synced_at":"2026-01-29T12:38:08.188Z","repository":{"id":257873622,"uuid":"872438030","full_name":"mhistiak3/real-time-code-editor","owner":"mhistiak3","description":"A collaborative real-time code editor using React, Monaco Editor, Socket.io, and Node.js. This project enables multiple users to edit the same document simultaneously, with changes updated live.","archived":false,"fork":false,"pushed_at":"2024-11-21T13:32:25.000Z","size":416,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T10:03:14.467Z","etag":null,"topics":["expressjs","nodejs","reactjs","socket-io"],"latest_commit_sha":null,"homepage":"https://real-time-code-editor-pg85.onrender.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhistiak3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-14T12:44:26.000Z","updated_at":"2024-11-21T13:32:28.000Z","dependencies_parsed_at":"2024-10-16T20:56:22.640Z","dependency_job_id":"7202ef03-60ab-4a69-9a27-c4db72c879bc","html_url":"https://github.com/mhistiak3/real-time-code-editor","commit_stats":null,"previous_names":["mhistiak3/real-time-code-editor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mhistiak3/real-time-code-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhistiak3%2Freal-time-code-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhistiak3%2Freal-time-code-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhistiak3%2Freal-time-code-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhistiak3%2Freal-time-code-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhistiak3","download_url":"https://codeload.github.com/mhistiak3/real-time-code-editor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhistiak3%2Freal-time-code-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28877876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expressjs","nodejs","reactjs","socket-io"],"created_at":"2024-11-01T20:06:20.727Z","updated_at":"2026-01-29T12:38:08.171Z","avatar_url":"https://github.com/mhistiak3.png","language":"JavaScript","readme":"\n\n# Real-Time Code Editor\n\nA collaborative real-time code editor using **React**, **Monaco Editor**, **Socket.io**, and **Node.js**. This project enables multiple users to edit the same document simultaneously, with changes updated live.\n\n![Preview](1.png)\n![Preview](2.png)\n\n## Features\n\n- **Collaborative Editing**: Multiple users can work on the same document in real time.\n- **Monaco Editor**: The same code editor that powers Visual Studio Code, providing a rich editing experience with syntax highlighting, autocompletion, and more.\n- **User Authentication**: Join a session and collaborate by sharing a unique session ID.\n- **Real-time Updates**: Powered by Socket.io for seamless and low-latency communication between users.\n- **Responsive UI**: Built with **React** for smooth and efficient interaction.\n\n## Tech Stack\n\n- **Frontend**: React.js, Monaco Editor\n- **Backend**: Node.js, Express.js, Socket.io\n- **Build Tool**: Vite\n- **Real-Time Communication**: Socket.io\n- **Version Control**: Git, GitHub\n\n## Installation\n\n### Prerequisites\n\nMake sure you have the following installed:\n\n- **Node.js** (v14 or higher)\n- **NPM** or **Yarn**\n\n### Steps\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/mhistiak3/real-time-code-editor.git\n   cd real-time-code-editor\n   ```\n\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n3. Start both the frontend and backend development servers:\n   ```bash\n   npm run dev\n   ```\n\n4. To run the backend server separately (with hot reloading for the backend):\n   ```bash\n   npm run server:dev\n   ```\n\n5. Open your browser and navigate to:\n   ```\n   http://localhost:5173/\n   ```\n\n### Build for Production\n\nTo build the frontend for production:\n\n```bash\nnpm run build\n```\n\nTo preview the production build locally:\n\n```bash\nnpm run preview\n```\n\n## Scripts\n\n- `npm run dev`: Starts the Vite development server.\n- `npm run build`: Installs dependencies and builds the frontend.\n- `npm run server:dev`: Starts the Node.js backend server with **Nodemon** for hot-reloading.\n- `npm run start`: Starts the backend server without hot-reloading.\n- `npm run preview`: Previews the built frontend using Vite.\n\n## Dependencies\n\n- **@monaco-editor/react**: Integration of Monaco editor into React for a powerful code-editing experience.\n- **axios**: Promise-based HTTP client for making requests.\n- **express**: Backend framework for handling routes and server logic.\n- **lodash**: Utility library for easier manipulation of arrays, objects, etc.\n- **react**, **react-dom**: React libraries for building the frontend.\n- **react-router-dom**: Client-side routing for React.\n- **react-hot-toast**: Notifications for the UI.\n- **socket.io**: WebSocket library for real-time communication.\n- **uuid**: Library for generating unique session IDs.\n\n### Dev Dependencies\n\n- **eslint**: Linting tool for maintaining code quality.\n- **@vitejs/plugin-react**: Plugin for integrating React with Vite.\n- **vite**: Fast build tool and development server.\n\n\n## Usage\n\n1. Open the app in your browser.\n2. Share the Room ID with other collaborators.\n3. Edit the code in real time and see updates across all connected users.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhistiak3%2Freal-time-code-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhistiak3%2Freal-time-code-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhistiak3%2Freal-time-code-editor/lists"}