How ityctota/forasoft works
Video Chat Room is a browser-based group calling app for up to four participants, with chat and invite links. Users enter a display name, create or join a room, then the room-call hook coordinates room membership, local media, WebRTC peer negotiation, participant state, and chat; the server handles room events and relays signaling. The graph preserves the documented client, server, and shared-contract layers. Some source excerpts are partial, so unsampled connections are omitted unless documented or strongly implied.
Main entry points: useRoomCall.js Call coordinator · RoomWorkspace.jsx Room workspace · roomGateway.js Room gateway · RoomPage.jsx Room page
Components 28
React client
- App routing
client/src/app/App.jsx - URL router
client/src/app/router.jsx - Home page
client/src/pages/HomePage.jsx - Room page
client/src/pages/RoomPage.jsx - Name field
client/src/shared/ui/NameField.jsx
Room calling
- Room join form
client/src/features/room/ui/RoomJoinForm.jsx - Call coordinator
client/src/features/room/model/useRoomCall.js - Room session
client/src/features/room/model/roomSession.js - Media controller
client/src/features/room/model/mediaController.js - Peer manager
client/src/features/room/model/peerConnectionManager.js - Negotiation controller
client/src/features/room/model/negotiationController.js - Participant state
client/src/entities/participant/model/participants.js - Chat state
client/src/features/room/model/messages.js - Room workspace
client/src/features/room/ui/RoomWorkspace.jsx - Participant list
client/src/entities/participant/ui/ParticipantList.jsx - Chat panel
client/src/features/room/ui/ChatPanel.jsx - Invite link
client/src/features/room/ui/InviteLink.jsx - Media controls
client/src/features/room/ui/MediaControls.jsx - Video grid
client/src/features/room/ui/VideoGrid.jsx
Room server
- HTTP and Socket server
server/src/app.js - Room gateway
server/src/socket/roomGateway.js - Room registry
server/src/rooms/roomRegistry.js - Message history
server/src/rooms/messageHistory.js - Server observability
server/src/observability.js
Shared contracts
- Event contracts
shared/src/contracts.js - Input validation
shared/src/validation.js
Other components
- Participant
- Browser devices
Connections 37
- Participant → Home page: enters name
README.md - Participant → Room join form: joins room
README.md - App routing → URL router: reads route
client/src/app/App.jsx - App routing → Home page: renders
client/src/app/App.jsx - App routing → Room page: renders
client/src/app/App.jsx - Home page → Name field: uses
client/src/pages/HomePage.jsx - Room page → Call coordinator: coordinates
client/src/pages/RoomPage.jsx - Room page → Room join form: renders
client/src/pages/RoomPage.jsx - Room page → Room workspace: renders
client/src/pages/RoomPage.jsx - Room join form → Name field: uses
client/src/features/room/ui/RoomJoinForm.jsx - Call coordinator → Room session: creates and joins
client/src/features/room/model/useRoomCall.js - Call coordinator → Media controller: acquires media
client/src/features/room/model/useRoomCall.js - Call coordinator → Peer manager: manages peers
client/src/features/room/model/useRoomCall.js - Call coordinator → Negotiation controller: coordinates negotiation
client/src/features/room/model/useRoomCall.js - Call coordinator → Participant state: maps participants
client/src/features/room/model/useRoomCall.js - Call coordinator → Chat state: updates chat
client/src/features/room/model/useRoomCall.js - Media controller → Browser devices: requests devices
client/src/features/room/model/mediaController.js - Peer manager → Browser devices: creates WebRTC peers
client/src/features/room/model/peerConnectionManager.js - Negotiation controller → Peer manager: creates peers
client/src/features/room/model/negotiationController.js - Negotiation controller → Room session: sends signals
client/src/features/room/model/negotiationController.js - Room workspace → Participant list: renders
client/src/features/room/ui/RoomWorkspace.jsx - Room workspace → Chat panel: renders
client/src/features/room/ui/RoomWorkspace.jsx - Room workspace → Invite link: renders
client/src/features/room/ui/RoomWorkspace.jsx - Room workspace → Media controls: renders
client/src/features/room/ui/RoomWorkspace.jsx - Room workspace → Video grid: renders
client/src/features/room/ui/RoomWorkspace.jsx - Chat panel → Chat state: reads chat state
client/src/features/room/ui/ChatPanel.jsx - HTTP and Socket server → Room gateway: configures
server/src/app.js - HTTP and Socket server → Room registry: creates
server/src/app.js - HTTP and Socket server → Server observability: creates
server/src/app.js - Room gateway → Room registry: uses room state
- Room registry → Message history: creates and snapshots messages
server/src/rooms/roomRegistry.js - Room gateway → Event contracts: uses event definitions
server/src/socket/roomGateway.js - Room gateway → Input validation: validates payloads
server/src/socket/roomGateway.js - Call coordinator → Event contracts: uses shared validation
client/src/features/room/model/useRoomCall.js - Participant → HTTP and Socket server: connects to room
README.md - Room session → Room gateway: exchanges room events
- Room gateway → Room session: relays signaling and chat