How aritranexx/airdiary works
AirDiary is a local-first Flutter app for pairing offline devices and recording their proximity-based location history. Its main workflow is: register a peer by QR or manual ID, discover its BLE beacon, match it against local registrations, throttle and resolve location, then save and display logs with map deep-links. The README documents these capabilities, but the Dart implementation was not excerpted; relationships among those components are therefore shown as documented rather than source-verified. Native runner code is platform hosting, not product logic.
Main entry points: scanner_service.dart BLE scanner · pair_view.dart QR and ID pairing · dashboard_view.dart Status dashboard · storage_service.dart Hive storage
Components 16
Peer pairing
- QR and ID pairing
lib/views/pair_view.dart
Beacon tracking
- BLE broadcaster
lib/services/broadcaster_service.dart - BLE scanner
lib/services/scanner_service.dart - Location resolution
lib/services/scanner_service.dart
Local diary
- Tracked devices
lib/models/tracked_device.dart - Location logs
lib/models/location_log.dart - Hive storage
lib/services/storage_service.dart
Diary dashboard
- Status dashboard
lib/views/dashboard_view.dart - Native map app
Platform hosting
- Flutter app bootstrap
lib/main.dart - iOS Flutter host
ios/Runner/AppDelegate.swift - macOS Flutter host
macos/Runner/MainFlutterWindow.swift - Windows Flutter host
windows/runner/flutter_window.cpp - Win32 window
windows/runner/win32_window.cpp
Other components
- Device owner
- Tracked peer
Connections 16
- Device owner → QR and ID pairing: pairs peer
README.md - QR and ID pairing → Tracked devices: registers peer
README.md - Tracked peer → BLE broadcaster: broadcasts identity
README.md - BLE broadcaster → BLE scanner: advertises beacon
README.md - BLE scanner → Tracked devices: matches identity
README.md - BLE scanner → Location resolution: resolves position
README.md - BLE scanner → Location logs: records location
README.md - QR and ID pairing → Hive storage: saves registration
README.md - BLE scanner → Hive storage: commits logs
README.md - Status dashboard → Hive storage: reads diary
README.md - Device owner → Status dashboard: views status
README.md - Status dashboard → Native map app: opens location
README.md - iOS Flutter host → Flutter app bootstrap: hosts Flutter
ios/Runner/AppDelegate.swift - macOS Flutter host → Flutter app bootstrap: hosts Flutter
macos/Runner/MainFlutterWindow.swift - Windows Flutter host → Win32 window: extends window
windows/runner/flutter_window.cpp - Windows Flutter host → Flutter app bootstrap: hosts Flutter
windows/runner/flutter_window.cpp