How shyamnakka/video-chat-app works
CartickMeet lets a user create or enter a room, then join a four-person video call with peer-to-peer media and in-room chat. The room page coordinates socket signaling, local media capture, WebRTC peer connections, chat, controls, and video tiles; the server maintains in-memory membership and relays signaling/chat. README capabilities are represented, including status, capacity handling, and health check. Evidence comes from the excerpts and README; internal WebRTC details are represented together because the hook is one implementation module.
Main entry points: [roomId]/page.tsx Room interface · useWebRTC.ts Peer calls and chat · server.ts Room signaling server · app/page.tsx Create or join
Components 10
Room entry
- Create or join
app/page.tsx
Call experience
- Room interface
app/room/[roomId]/page.tsx - Local media capture
hooks/useUserMedia.ts - Socket connection
hooks/useSocket.ts - Peer calls and chat
hooks/useWebRTC.ts - Video tiles
components/media-video.tsx
Realtime services
- Room signaling server
server.ts - Room membership
server.ts
Service status
- Health endpoint
app/api/health/route.ts
Other components
- Participant
Connections 13
- Participant → Create or join: creates or joins
app/page.tsx - Create or join → Room interface: navigates to
app/page.tsx - Participant → Room interface: opens link
README.md - Room interface → Socket connection: uses
app/room/[roomId]/page.tsx - Room interface → Local media capture: requests
app/room/[roomId]/page.tsx - Room interface → Peer calls and chat: coordinates
app/room/[roomId]/page.tsx - Room interface → Video tiles: renders
app/room/[roomId]/page.tsx - Socket connection → Room signaling server: connects
README.md - Peer calls and chat → Room signaling server: signals and chats
README.md - Room signaling server → Room membership: tracks members
server.ts - Room signaling server → Peer calls and chat: forwards events
README.md - Peer calls and chat → Participant: streams peer media
README.md - Participant → Health endpoint: checks service
README.md