How riteshmaurya07/code_x_live works
CodeXLive is a collaborative coding workspace with a developer social hub. Users authenticate, open or create projects, then edit files collaboratively; project capabilities include room governance, messaging, meetings, compilation, AI assistance, version history, and social networking. The graph combines README-documented capabilities with relationships visible in sampled frontend and backend sources. Some feature internals were not sampled, so those documented links cite the README rather than implying source inspection.
Main entry points: EditorPage.jsx Collaborative editor · App.jsx App routing · yjsHandlers.js Yjs collaboration · fileController.js File and version API
Components 24
Client experience
- App routing
client/src/App.jsx - Authentication
client/src/hooks/useAuth.jsx - Project dashboard
client/src/pages/Dashboard.jsx - Collaborative editor
client/src/components/EditorPage.jsx - File tree
client/src/hooks/editor/useFileTree.js - Editor socket sync
client/src/hooks/editor/useRoomSocket.js - Video and audio calls
client/src/hooks/useWebRTC.js
Collaborative workspace
- Yjs collaboration
server/sockets/handlers/yjsHandlers.js - Room permissions
server/sockets/roomState.js - Code compilation
server/controllers/compileController.js - AI assistance
server/controllers/aiController.js
Backend services
- Project and sharing
server/controllers/projectController.js - File and version API
server/controllers/fileController.js - File routes and RBAC
server/routes/fileRoutes.js - Socket dispatch
server/sockets/socketHandler.js - MongoDB
server/config/db.js
Social and communication
- Meeting scheduler
server/controllers/meetingController.js - Chat and messaging
server/sockets/handlers/chatHandlers.js - Developer social
server/controllers/userController.js - Activity history
server/controllers/activityController.js
External integrations
- JDoodle compiler
- Google Gemini
Other components
- Developer
- Other call participants
Connections 23
- Developer → App routing: opens
client/src/App.jsx - App routing → Authentication: provides auth
client/src/App.jsx - App routing → Project dashboard: routes to
client/src/App.jsx - App routing → Collaborative editor: routes to
client/src/App.jsx - Project dashboard → Project and sharing: manages projects
README.md - Collaborative editor → File tree: manages files
README.md - Collaborative editor → Editor socket sync: syncs room
client/src/hooks/editor/useRoomSocket.js - Editor socket sync → Socket dispatch: connects events
client/src/hooks/editor/useRoomSocket.js - Socket dispatch → Yjs collaboration: registers handler
server/sockets/socketHandler.js - Yjs collaboration → Room permissions: checks permissions
server/sockets/handlers/yjsHandlers.js - Yjs collaboration → MongoDB: persists updates
server/sockets/handlers/yjsHandlers.js - File routes and RBAC → File and version API: routes requests
server/routes/fileRoutes.js - File and version API → MongoDB: stores files and versions
server/controllers/fileController.js - Collaborative editor → File and version API: reads and saves
README.md - Collaborative editor → Code compilation: submits code
README.md - Code compilation → JDoodle compiler: compiles with
README.md - Collaborative editor → AI assistance: requests assistance
README.md - AI assistance → Google Gemini: prompts
README.md - Collaborative editor → Meeting scheduler: schedules meetings
README.md - Collaborative editor → Chat and messaging: exchanges messages
README.md - Developer → Developer social: builds network
README.md - Developer social → Activity history: views activity
README.md - Video and audio calls → Other call participants: streams peer-to-peer
README.md