How nacer-eddine05/aerlynk works
AerLynk is a Tauri desktop app for encrypted, bidirectional file transfer between a PC and a phone browser on the same LAN. The user starts a send or receive session, shares its QR code, and the phone downloads or uploads files; received uploads are authenticated before release. The graph separates the desktop UI, transfer/session serving, and LAN/security support. README documents the mobile-page/WASM flow and major safeguards; some backend and settings wiring is not visible in the sampled excerpts, so only documented or indexed relationships are shown.
Main entry points: commands.rs Session commands · mod.rs Phone HTTP routes · App.tsx App navigation · useTransfer.ts Transfer state
Components 23
Desktop experience
- App navigation
src/App.tsx - Send view
src/views/SendView.tsx - Receive view
src/views/ReceiveView.tsx - QR pairing card
src/components/QrCard.tsx - Transfer history
src/views/HistoryView.tsx - Settings view
src/views/SettingsView.tsx - Transfer state
src/hooks/useTransfer.ts - Tauri IPC
src/lib/ipc.ts
Transfer runtime
- Session commands
src-tauri/src/commands.rs - Session registry
src-tauri/src/session.rs - Server lifecycle
src-tauri/src/server_manager.rs - Phone HTTP routes
src-tauri/src/server/mod.rs - Encrypted download
src-tauri/src/server/download.rs - Upload verification
src-tauri/src/server/upload.rs - Mobile page assets
src-tauri/src/server/assets.rs
LAN and security
- LAN discovery
src-tauri/src/net.rs - Reachability checks
src-tauri/src/reachability.rs - Firewall repair
src-tauri/src/firewall.rs - File safety
src-tauri/src/safety.rs - QR generation
src-tauri/src/qr.rs
Encryption
- AES-GCM cipher
crates/aerlynk-crypto/src/lib.rs
Other components
- Desktop user
- Phone browser
Connections 32
- Desktop user → App navigation: uses
src/App.tsx - App navigation → Send view: shows
src/App.tsx - App navigation → Receive view: shows
src/App.tsx - App navigation → Transfer history: shows
src/App.tsx - App navigation → Settings view: shows
src/App.tsx - Send view → Transfer state: starts transfer
src/views/SendView.tsx - Receive view → Transfer state: starts transfer
src/views/ReceiveView.tsx - Transfer state → Tauri IPC: invokes
src/hooks/useTransfer.ts - Tauri IPC → Session commands: invokes commands
src/lib/ipc.ts - Session commands → Session registry: creates sessions
src-tauri/src/commands.rs - Session commands → Server lifecycle: manages server
src-tauri/src/commands.rs - Server lifecycle → Phone HTTP routes: serves routes
src-tauri/src/server_manager.rs - Phone HTTP routes → Session registry: looks up sessions
src-tauri/src/server/mod.rs - Phone HTTP routes → Encrypted download: routes downloads
src-tauri/src/server/mod.rs - Phone HTTP routes → Upload verification: routes uploads
src-tauri/src/server/mod.rs - Phone HTTP routes → Mobile page assets: serves page
src-tauri/src/server/mod.rs - Phone browser → Phone HTTP routes: requests files
README.md - Phone HTTP routes → Phone browser: returns transfer data
README.md - Upload verification → File safety: validates files
src-tauri/src/server/upload.rs - Server lifecycle → LAN discovery: binds LAN address
src-tauri/src/server_manager.rs - Session commands → LAN discovery: discovers network
src-tauri/src/commands.rs - Session commands → Reachability checks: checks reachability
src-tauri/src/commands.rs - Session commands → Firewall repair: checks and repairs
src-tauri/src/commands.rs - Session commands → QR generation: creates QR
src-tauri/src/commands.rs - Send view → QR pairing card: shows pairing
src/views/SendView.tsx - Receive view → QR pairing card: shows pairing
src/views/ReceiveView.tsx - QR pairing card → Phone browser: shares session link
README.md - Mobile page assets → AES-GCM cipher: loads WASM cipher
README.md - Encrypted download → AES-GCM cipher: encrypts chunks
README.md - Upload verification → AES-GCM cipher: authenticates chunks
README.md - Transfer state → Transfer history: records outcome
- Settings view → Tauri IPC: configures backend
src/views/SettingsView.tsx