How nikhilxkumarr/codesync works
CodeSync is a React and Socket.IO collaborative coding application. Users create or enter a room ID and username, then the editor page joins that room, displays connected participants, and synchronizes code edits through the server. The server tracks socket usernames and room membership and broadcasts join, edit, synchronization, and disconnect events. The README also identifies syntax highlighting, editor customization, room-ID copying, and leaving a room. Relationships below are limited to those visible in the excerpts or README; the backend URL/configuration and unsampled implementation details are not inferred.
Main entry points: EditorPage.js Room session UI · index.js Socket.IO server · App.js Route shell · Home.js Room entry form
Components 8
Room entry
- Route shell
client/src/App.js - Room entry form
client/src/component/Home.js
Live collaboration
- Room session UI
client/src/component/EditorPage.js - Participant display
client/src/component/client.js - Code editor
client/src/component/Editor.js - Socket connection
client/src/socket.js
Realtime server
- Socket.IO server
server/index.js
Other components
- Collaborator
Connections 13
- Collaborator → Route shell: opens app
README.md - Route shell → Room entry form: routes home
client/src/App.js - Route shell → Room session UI: routes room
client/src/App.js - Collaborator → Room entry form: enters room details
client/src/component/Home.js - Room entry form → Room session UI: navigates with identity
client/src/component/Home.js - Room session UI → Socket connection: initializes connection
client/src/component/EditorPage.js - Room session UI → Socket.IO server: joins room; handles events
server/index.js - Room session UI → Participant display: renders participants
client/src/component/EditorPage.js - Room session UI → Code editor: renders editor
client/src/component/EditorPage.js - Code editor → Socket.IO server: emits edits; receives updates
client/src/component/Editor.js - Socket.IO server → Room session UI: broadcasts room events
server/index.js - Socket.IO server → Code editor: sends code updates
server/index.js - Collaborator → Room session UI: copies ID or leaves
client/src/component/EditorPage.js