How ankit123-burman/connecthub works
ConnectHub lets users authenticate, create or join password-protected rooms, and then call, chat, and record in a small mesh video session. The browser captures media and handles WebRTC; the Express/Socket.IO backend manages identity, room membership, and signaling rather than carrying media. The README documents additional in-call controls and quality indicators. The graph follows shown imports and calls plus explicit README behavior; some routes, socket handlers, and UI components were not sampled, so their internal links are omitted.
Main entry points: Room.jsx Room session · App.jsx App routing · app.js HTTP API · roomRoute.js Room routes
Components 22
Web client
- App routing
frontend/src/App.jsx - Sign-in UI
frontend/src/pages/LoginPage.jsx - Auth session
frontend/src/context/AuthContext.jsx - Room lobby
frontend/src/pages/Homepage.jsx
Backend services
- HTTP API
backend/app.js - Auth routes
backend/src/route/authRoute.js - Room routes
backend/src/route/roomRoute.js - JWT guard
backend/src/middleware/authMiddleware.js - Socket signaling
backend/socket/roomScoket.js - MongoDB connection
backend/src/config/db.js
Call experience
- Room session
frontend/src/pages/Room.jsx - Socket client
frontend/src/provider/Socket.jsx - WebRTC mesh
frontend/src/provider/Peer.jsx - Video tiles
frontend/src/components/VideoTile.jsx - In-call chat
frontend/src/components/ChatPanel.jsx - Call controls
frontend/src/components/Controls.jsx - Composite recorder
frontend/src/utils/recorder.js
Room and identity
- Auth operations
backend/src/controller/authController.js - User records
backend/src/model/authModel.js - Room operations
backend/src/controller/roomController.js - Room membership
backend/services/roomServices.js
Other components
- Participant
Connections 26
- Participant → App routing: opens
README.md - App routing → Sign-in UI: routes to
frontend/src/App.jsx - App routing → Room lobby: routes to
frontend/src/App.jsx - App routing → Room session: routes to
frontend/src/App.jsx - Sign-in UI → Auth session: signs in
frontend/src/pages/LoginPage.jsx - Auth session → Auth operations: requests auth
frontend/src/context/AuthContext.jsx - Auth routes → Auth operations: routes to
backend/src/route/authRoute.js - Auth routes → JWT guard: guards profile
backend/src/route/authRoute.js - Auth operations → User records: reads and writes
backend/src/controller/authController.js - HTTP API → Auth routes: mounts
backend/app.js - HTTP API → Room routes: mounts
backend/app.js - Room lobby → HTTP API: creates or checks room
- Room routes → JWT guard: guards room API
backend/src/route/roomRoute.js - Room routes → Room operations: routes to
backend/src/route/roomRoute.js - Room operations → Room membership: delegates room actions
backend/src/controller/roomController.js - Room session → Socket client: emits signaling and chat
frontend/src/pages/Room.jsx - Room session → WebRTC mesh: negotiates peers
frontend/src/pages/Room.jsx - Room session → Video tiles: renders streams
frontend/src/pages/Room.jsx - Room session → In-call chat: renders chat
frontend/src/pages/Room.jsx - Room session → Call controls: renders controls
frontend/src/pages/Room.jsx - Room session → Composite recorder: records and downloads
frontend/src/pages/Room.jsx - WebRTC mesh → Participant: exchanges media
README.md - Socket client → Socket signaling: connects
- Socket signaling → Room membership: manages room membership
backend/socket/roomScoket.js - Room membership → Participant: tracks participants
backend/services/roomServices.js - HTTP API → MongoDB connection: initializes connection