How kimmynonawa0-0/offline-first-qr-attendance works
EdgeSync is an offline-first QR attendance product: staff scan event attendees against a locally available roster, persist attendance on the device, then reconcile pending records with a central server when connectivity returns. The repository also provides a manager console for accounts, events, students, rosters, and attendance. Mobile call relationships are based on the source index; reconciliation and server persistence details are described by the README, while unsampled server routes are not expanded.
Main entry points: AppScreen.jsx Scanner App · server.mjs Attendance API · storage.mjs Local Repository · App.jsx Manager Console
Components 20
Edge Scanner
- Scanner App
mobile/src/AppScreen.jsx - QR Scanner
mobile/src/Scanner.jsx - Roster Import
mobile/src/RosterImport.jsx - Attendance Model
mobile/src/model.mjs - Sync Client
mobile/src/remote-sync.mjs
Attendance Server
- Attendance API
server/src/server.mjs - Sync Service
server/src/sync.mjs - Roster Service
server/src/roster.mjs - PostgreSQL
server/src/server.mjs - Authentication
server/src/auth.mjs
Manager Console
- Manager Console
server/manager/App.jsx - Console API Client
server/manager/api.js - Event Management
server/manager/components/Events.jsx - Student Management
server/manager/components/Students.jsx - Admin Features
server/manager/components
Local Persistence
- Local Repository
mobile/src/storage.mjs - SQLite Store
mobile/src/sqlite-storage.mjs - IndexedDB Store
mobile/src/indexeddb-storage.mjs - Platform Repository
mobile/src/local-repository.web.js
Other components
- Event Staff
Connections 24
- Event Staff → Scanner App: uses
- Scanner App → QR Scanner: invokes
mobile/src/AppScreen.jsx - Scanner App → Roster Import: invokes
mobile/src/AppScreen.jsx - Scanner App → Attendance Model: uses
mobile/src/AppScreen.jsx - Scanner App → Sync Client: invokes
mobile/src/AppScreen.jsx - Scanner App → Local Repository: persists through
- Platform Repository → IndexedDB Store: selects for web
mobile/src/local-repository.web.js - Platform Repository → Local Repository: uses
mobile/src/local-repository.web.js - Local Repository → Attendance Model: migrates
mobile/src/storage.mjs - SQLite Store → Attendance Model: initializes from
mobile/src/sqlite-storage.mjs - SQLite Store → Local Repository: migrates with
mobile/src/sqlite-storage.mjs - Local Repository → SQLite Store: uses on device
mobile/src/sqlite-storage.mjs - Sync Client → Attendance API: sends pending batches
- Attendance API → Sync Service: delegates sync
server/src/server.mjs - Attendance API → Roster Service: delegates roster
server/src/server.mjs - Attendance API → PostgreSQL: reads and writes
server/src/server.mjs - Manager Console → Console API Client: calls
server/manager/App.jsx - Manager Console → Event Management: renders
server/manager/App.jsx - Manager Console → Student Management: renders
server/manager/App.jsx - Manager Console → Admin Features: renders
server/manager/App.jsx - Event Management → Console API Client: requests events
server/manager/components/Events.jsx - Student Management → Console API Client: requests students
server/manager/components/Students.jsx - Console API Client → Attendance API: sends HTTP requests
- Attendance API → Authentication: uses session auth
server/src/server.mjs