How zenithreddyp/p2p_file_sharing_platform works
Velosync is a browser-based peer-to-peer file-sharing application. A sender creates a temporary session and shares its link or QR code; a receiver joins through the signaling server, peers negotiate WebRTC and exchange ECDH public keys, then transfer encrypted file data directly over a data channel. The server handles signaling, rate limiting, and audit events, not file storage. The graph also preserves the informational pages and network visualization. Some session and transfer details are documented in the README; only the shown source excerpts and index references were used for implementation relationships.
Main entry points: App.jsx Routes · webrtc.js WebRTC and socket client · SessionCreate.jsx Create and share session · websocket.js Signaling and rooms
Components 18
Web application
- React entry
frontend/src/main.jsx - Routes
frontend/src/App.jsx - Network visualization
frontend/src/pages/P2PNetwork.jsx - Navigation header
frontend/src/components/Header.jsx
Session and connection
- Create and share session
frontend/src/pages/SessionCreate.jsx - Join and handshake
frontend/src/pages/LoadingPage.jsx - WebRTC and socket client
frontend/src/webrtc.js
Secure transfer
- ECDH key exchange
frontend/src/Encryption.js - File transfer
frontend/src/pages/FileTransfer.jsx
Signaling services
- Signaling and rooms
backend/routes/websocket.js - HTTP server
backend/server.js - Audit logging
backend/utils/auditlogger.js
Information pages
- About page
frontend/src/pages/About.jsx - How it works page
frontend/src/pages/HowItWorks.jsx - Privacy page
frontend/src/pages/Privacy.jsx
Other components
- User
- Receiving peer
- STUN and TURN
Connections 27
- User → React entry: opens app
frontend/src/main.jsx - React entry → Routes: renders
frontend/src/main.jsx - Routes → Create and share session: routes to
frontend/src/App.jsx - Routes → File transfer: routes to
frontend/src/App.jsx - Routes → Join and handshake: routes to
frontend/src/App.jsx - Routes → Network visualization: renders
frontend/src/App.jsx - Routes → About page: routes to
frontend/src/App.jsx - Routes → How it works page: routes to
frontend/src/App.jsx - Routes → Privacy page: routes to
frontend/src/App.jsx - Create and share session → WebRTC and socket client: uses signaling
frontend/src/pages/SessionCreate.jsx - Join and handshake → WebRTC and socket client: uses signaling
frontend/src/pages/LoadingPage.jsx - Create and share session → ECDH key exchange: exchanges keys
frontend/src/pages/SessionCreate.jsx - Join and handshake → ECDH key exchange: derives key
frontend/src/pages/LoadingPage.jsx - File transfer → WebRTC and socket client: transfers over
frontend/src/pages/FileTransfer.jsx - File transfer → ECDH key exchange: uses session key
frontend/src/pages/FileTransfer.jsx - HTTP server → Signaling and rooms: starts
backend/server.js - Signaling and rooms → Audit logging: records events
backend/routes/websocket.js - Create and share session → Signaling and rooms: creates room
README.md - Join and handshake → Signaling and rooms: joins room
README.md - Signaling and rooms → WebRTC and socket client: relays negotiation
backend/routes/websocket.js - WebRTC and socket client → Receiving peer: negotiates connection
README.md - WebRTC and socket client → STUN and TURN: uses traversal
frontend/src/webrtc.js - File transfer → Receiving peer: sends encrypted data
README.md - Create and share session → User: shares link or QR
README.md - About page → Navigation header: renders
frontend/src/pages/About.jsx - How it works page → Navigation header: renders
frontend/src/pages/HowItWorks.jsx - Privacy page → Navigation header: renders
frontend/src/pages/Privacy.jsx