How adithiyaks/glucosense works
GlucoSense combines a Flutter app scaffold, a live Next.js monitoring dashboard, and FastAPI services for WebSocket broadcasting and persisted telemetry. The primary path is hardware-to-browser live streaming; a separate REST path ingests and retrieves patient telemetry through MongoDB. The README documents the frontend’s intended API and WebSocket connections, but the sampled dashboard source does not show those calls. The backend also includes a serial bridge and model-training code; their integration with the runtime flow is not established by the available evidence.
Main entry points: page.tsx Dashboard page · app.py WebSocket broadcaster · main.py Telemetry REST API · SensorDashboard.tsx Sensor dashboard
Components 13
Client applications
- Flutter app scaffold
app - Dashboard page
frontend/src/app/page.tsx - Sensor dashboard
frontend/src/components/dashboard/SensorDashboard.tsx - Dashboard visualizations
frontend/src/components/dashboard
Live streaming
- WebSocket broadcaster
backend/app.py
Telemetry API and storage
- Telemetry REST API
backend/main.py - Telemetry collection
- Interactive DB injector
backend/check.py
Model development
- Glucose model training
backend/ml_engine/train_model.py
Hardware integration
- Serial bridge
backend/serial_bridge.py
Other components
- Patient or clinician
- Edge device
- Browser client
Connections 11
- Patient or clinician → Flutter app scaffold: uses
README.md - Patient or clinician → Dashboard page: views
README.md - Dashboard page → Sensor dashboard: renders
frontend/src/app/page.tsx - Sensor dashboard → Dashboard visualizations: presents
- Edge device → WebSocket broadcaster: streams telemetry
README.md - WebSocket broadcaster → Browser client: broadcasts messages
backend/app.py - Browser client → WebSocket broadcaster: connects
README.md - Edge device → Telemetry REST API: posts telemetry
README.md - Telemetry REST API → Telemetry collection: inserts and queries
backend/main.py - Dashboard page → Telemetry REST API: fetches latest
README.md - Interactive DB injector → Telemetry collection: inserts test data
README.md