How yaswanthkumarmallela01/filedrop works
FileDrop is a local-network file-transfer application: users receive files through a laptop-hosted browser interface, send files to discovered peers, share selected files through expiring links, or synchronize folders. Its Rust CLI coordinates transfer, security, discovery, hotspot setup, and terminal UI components. The graph includes README-documented capabilities whose internals were not sampled; those relationships are documented rather than inferred from module names.
Main entry points: main.rs CLI commands · server.rs Receive server · client.rs Send client · app.rs Terminal UI
Components 18
User entry
- CLI commands
src/main.rs - Terminal UI
src/tui/app.rs - Configuration
src/config.rs
File transfer
- Receive server
src/transfer/server.rs - Browser interface
src/web/mod.rs - Send client
src/transfer/client.rs - Transfer protocol
src/transfer/protocol.rs - Chunking and checksums
src/transfer/chunker.rs
Connectivity
- Peer discovery
src/discovery/mod.rs - Hotspot setup
src/hotspot/mod.rs
Security
- Device certificates
src/security/certs.rs - Device pairing
src/security/pairing.rs - Encryption
src/security/encryption.rs
Sharing and sync
- Ephemeral file sharing
src/share/server.rs - Folder sync
src/sync/server.rs - Change watcher
src/sync/watcher.rs
Other components
- User
- Phone browser
Connections 25
- User → CLI commands: runs commands
README.md - CLI commands → Configuration: loads settings
src/main.rs - CLI commands → Terminal UI: opens interface
src/main.rs - CLI commands → Receive server: starts receiver
README.md - CLI commands → Send client: starts send
README.md - CLI commands → Ephemeral file sharing: starts sharing
README.md - CLI commands → Folder sync: starts sync
README.md - CLI commands → Device pairing: pairs devices
README.md - CLI commands → Hotspot setup: sets up hotspot
src/main.rs - Receive server → Browser interface: serves UI
src/transfer/server.rs - Phone browser → Browser interface: opens transfer page
README.md - Browser interface → Receive server: connects by WebSocket
src/web/mod.rs - Send client → Transfer protocol: encodes messages
src/transfer/client.rs - Send client → Chunking and checksums: hashes and streams
src/transfer/client.rs - Send client → Peer discovery: discovers peer
src/transfer/client.rs - Receive server → Transfer protocol: parses messages
src/transfer/server.rs - Receive server → Chunking and checksums: writes and verifies
src/transfer/server.rs - Device pairing → Device certificates: exchanges certificates
src/security/pairing.rs - Device certificates → Configuration: uses config paths
src/security/certs.rs - Terminal UI → Receive server: runs receive mode
src/tui/app.rs - Terminal UI → Send client: queues file sends
src/tui/app.rs - Terminal UI → Hotspot setup: creates hotspot
src/tui/app.rs - Folder sync → Change watcher: watches folder
src/sync/server.rs - User → Phone browser: scans QR code
README.md - Receive server → Encryption: uses encryption