How moturumonishpvt-byte/studentapp_sc works
Academic Monitor is a React Native student app for offline face authentication and BLE classroom attendance. A student can enroll a face profile, have embeddings synchronized from Supabase to local MMKV storage, authenticate against that cache using camera frames and native TFLite processing, then scan and join a nearby faculty session, pass RSSI proximity checks, and confirm with an OTP. The graph preserves documented capabilities, but some links—especially native inference internals and OTP policy—are based on README statements because their implementation excerpts were not provided.
Main entry points: App.js App navigation · StudentBLEModule.js BLE session flow · faceService.ts Face matching · FaceScanScreen.tsx Face scan screen
Components 22
App flow
- App navigation
App.js - Auth state
src/auth/AuthContext.js
Identity and enrollment
- Face scan screen
src/screens/FaceScanScreen.tsx - Recognition loop
src/hooks/useFaceRecognition.ts - TFLite inference
android/app/src/main/java/com/am_student_app/tflite/TFLiteModule.kt - Liveness checks
android/app/src/main/java/com/am_student_app/tflite/LivenessDetector.kt - Image enhancement
android/app/src/main/java/com/am_student_app/tflite/ImageEnhancer.kt - Embedding model
src/facerecg/faceEmbedding.ts - Face matching
src/services/faceService.ts - Similarity utilities
src/facerecg/faceCompare.ts - Student registration
src/screens/RegisterScreen.tsx
Student data
- Profile sync
src/services/studentService.ts - Local MMKV cache
src/services/storageService.ts - Supabase client
src/services/supabaseClient.ts - Supabase database
BLE attendance
- Attendance screen
src/screens/AttendanceScreen.js - BLE session flow
src/ble/StudentBLEModule.js - BLE transport
src/ble/BLEService.js - Join security
src/ble/SecurityUtils.js - BLE protocol
src/ble/BLEConstants.js
Other components
- Student
- Faculty BLE device
Connections 26
- Student → App navigation: uses
README.md - App navigation → Auth state: provides
App.js - App navigation → Face scan screen: routes to
App.js - App navigation → Student registration: routes to
App.js - App navigation → Attendance screen: routes to
App.js - App navigation → Profile sync: syncs on launch
App.js - Face scan screen → Recognition loop: uses
src/screens/FaceScanScreen.tsx - Recognition loop → TFLite inference: invokes inference
src/hooks/useFaceRecognition.ts - TFLite inference → Liveness checks: checks liveness
- TFLite inference → Image enhancement: enhances image
- Recognition loop → Face matching: matches embedding
src/hooks/useFaceRecognition.ts - Face matching → Embedding model: loads model
src/services/faceService.ts - Face matching → Similarity utilities: compares vectors
src/services/faceService.ts - Face matching → Local MMKV cache: reads embeddings
src/services/faceService.ts - Student registration → Supabase client: upserts profile
src/screens/RegisterScreen.tsx - Student registration → Similarity utilities: averages vectors
src/screens/RegisterScreen.tsx - Profile sync → Supabase client: fetches profiles
src/services/studentService.ts - Profile sync → Local MMKV cache: caches embeddings
src/services/studentService.ts - Supabase client → Supabase database: queries
- Face scan screen → Auth state: sets verified user
- Attendance screen → BLE session flow: starts session flow
src/screens/AttendanceScreen.js - BLE session flow → BLE transport: scans and connects
src/ble/StudentBLEModule.js - BLE session flow → Join security: checks proximity
src/ble/StudentBLEModule.js - BLE session flow → BLE protocol: uses protocol
src/ble/StudentBLEModule.js - BLE session flow → Faculty BLE device: joins and verifies OTP
README.md - BLE transport → Faculty BLE device: exchanges BLE data