How hatimc/p2p-call works
This is a browser-based peer-to-peer video-calling application. Users establish a session, exchange call setup messages through the server’s authenticated signaling API, then communicate directly over WebRTC; the server also maintains user presence in SQLite. The browser client includes chat, file transfer, screen sharing, whiteboard, and collaborative-document features. The README is empty, and the source excerpts are partial, so the graph includes only relationships visible in those excerpts; some detailed call setup and UI wiring are not shown.
Main entry points: app.js Peer connection · server.js HTTP API · database.js User registry operations
Components 12
Browser client
- Calling client
public/js/app.js - Peer connection
public/js/app.js - Media and screen share
public/js/app.js - Peer chat
public/js/app.js - Peer whiteboard
public/js/app.js - Peer documents
public/js/app.js - Peer file transfer
public/js/app.js
Call coordination
- HTTP API
server.js - Signal queue and waiters
server.js
User persistence
- User registry operations
db/database.js - SQLite user store
db/database.js
Other components
- Caller or callee
Connections 13
- Caller or callee → Calling client: uses
- Calling client → HTTP API: posts signals
public/js/app.js - Calling client → HTTP API: polls signals
public/js/app.js - HTTP API → Signal queue and waiters: queues signals
server.js - Signal queue and waiters → HTTP API: returns signals
server.js - HTTP API → User registry operations: reads and updates
server.js - User registry operations → SQLite user store: queries and writes
db/database.js - Calling client → Peer connection: sets up calls
public/js/app.js - Peer connection → Media and screen share: carries media
public/js/app.js - Peer connection → Peer chat: opens data channel
public/js/app.js - Peer connection → Peer whiteboard: opens data channel
public/js/app.js - Peer connection → Peer documents: opens data channel
public/js/app.js - Peer connection → Peer file transfer: opens data channel
public/js/app.js