How varadanikhil0-commits/iphone- works
Bridge is a local iPhone-to-computer transfer product: users pair a device, select files, upload them in resumable chunks, and manage verified transfers and media. The web interface also exposes device status, companion pairing, backups/exports, and settings. The server routes coordinate persistence and filesystem operations. The tree includes a Flutter mobile client, but its runtime wiring was not sampled, so it is represented as a distinct client with no asserted connections. Relationships below are limited to excerpted code and SOURCE INDEX references.
Main entry points: App.tsx Web application · api.ts HTTP client · routes.ts API routes · server.ts Server entry
Components 21
Web experience
- Web application
src/App.tsx - Dashboard
src/components/DashboardView.tsx - Device connection
src/components/ConnectDeviceView.tsx - Transfer manager
src/components/TransfersView.tsx - Media library
src/components/MediaLibraryView.tsx - Backup and export
src/components/BackupsExportView.tsx - Settings and audit
src/components/SettingsAuditView.tsx
Pairing and transfer
- iPhone companion
src/components/IPhoneCompanionView.tsx - Transfer protocol
src/shared/protocol.ts - Chunked uploader
src/lib/uploader.ts - HTTP client
src/lib/api.ts - Battery status
src/lib/battery.ts
Receiver services
- Server entry
server.ts - API routes
server/routes.ts - SQLite persistence
server/db.ts - File storage
server/storage.ts
Mobile client
- Mobile application
mobile/lib/src/app.dart - Mobile API client
mobile/lib/src/services/bridge_api_client.dart - Mobile transfer queue
mobile/lib/src/services/transfer_queue_controller.dart
Other components
- User
- iPhone user
Connections 30
- User → Web application: uses
src/App.tsx - Web application → Dashboard: renders
src/App.tsx - Web application → Device connection: renders
src/App.tsx - Web application → Transfer manager: renders
src/App.tsx - Web application → Media library: renders
src/App.tsx - Web application → Backup and export: renders
src/App.tsx - Web application → Settings and audit: renders
src/App.tsx - Web application → iPhone companion: renders
src/App.tsx - Web application → Chunked uploader: starts upload
src/App.tsx - Web application → HTTP client: loads data
src/App.tsx - Device connection → HTTP client: calls
src/components/ConnectDeviceView.tsx - Dashboard → HTTP client: loads data
src/components/DashboardView.tsx - Dashboard → Battery status: formats status
src/components/DashboardView.tsx - Transfer manager → HTTP client: calls
src/components/TransfersView.tsx - Media library → HTTP client: calls
src/components/MediaLibraryView.tsx - Backup and export → HTTP client: calls
src/components/BackupsExportView.tsx - Settings and audit → HTTP client: calls
src/components/SettingsAuditView.tsx - iPhone companion → HTTP client: calls
src/components/IPhoneCompanionView.tsx - iPhone companion → Transfer protocol: parses pairing
src/components/IPhoneCompanionView.tsx - Chunked uploader → HTTP client: uploads chunks
src/lib/uploader.ts - Server entry → API routes: registers routes
server.ts - Server entry → SQLite persistence: configures
server.ts - Server entry → File storage: configures
server.ts - API routes → SQLite persistence: reads and writes
server/routes.ts - API routes → File storage: uses
server/routes.ts - API routes → Transfer protocol: validates transfers
server/routes.ts - File storage → Transfer protocol: checks archive paths
server/storage.ts - iPhone user → Mobile application: uses
- Mobile application → Mobile API client: calls
- Mobile application → Mobile transfer queue: manages queue