How darshan0001-top/smartglove works
SmartGlove combines wearable gesture communication with a caregiver healthcare platform. The main path is glove sensor readings over Bluetooth to the browser, where gestures become text and speech; alerts and vitals can also reach the server for caregiver escalation. The backend additionally supports authentication, AI assistance, prescription analysis, and medicine adherence. Browser and server excerpts support the principal communication and alert flow; some feature wiring is documented in the README but its client implementation was not sampled.
Main entry points: server.js Express server · notificationService.js Alert delivery · medicineRoutes.js Medicine adherence · preview.jsx Care dashboard
Components 23
Wearable communication
- ESP32 glove
arduino_glove_code_UPDATED.ino
Browser experience
- Care dashboard
preview.jsx - Speech synthesis
API and services
- Express server
server.js - Gesture alerts
server.js - Authentication
routes/authRoutes.js - AI assistant
routes/aiRoutes.js - Prescription analysis
routes/prescriptionAnalyzerRoutes.js - Medicine adherence
routes/medicineRoutes.js - Administration
routes/adminRoutes.js - Alert delivery
services/notificationService.js - Email delivery
services/emailService.js
Care data
- MongoDB
config/db.js - Alert records
models/Alert.js - User records
models/User.js - Patient records
models/Patient.js - Medicine records
models/Medicine.js - Dose schedules
models/MedicineSchedule.js - Notifications
models/Notification.js
Other components
- Patient
- Gemini API
- SMTP email
- Care team
Connections 27
- Patient → ESP32 glove: performs gestures
- ESP32 glove → Care dashboard: sends BLE data
- Care dashboard → Speech synthesis: speaks text
- Care dashboard → Express server: REST and sockets
- Express server → Gesture alerts: handles gesture
- Gesture alerts → Alert records: creates alert
- Gesture alerts → Alert delivery: dispatches alert
- Alert delivery → Patient records: resolves care team
- Alert delivery → User records: finds recipients
- Alert delivery → Notifications: writes notices
- Alert delivery → Care team: sends live alerts
- Alert delivery → Email delivery: requests email
- Email delivery → SMTP email: sends email
- Authentication → User records: reads and updates
- Authentication → Patient records: uses patient data
- Express server → Authentication: mounts routes
- Express server → AI assistant: mounts routes
- Express server → Prescription analysis: mounts routes
- Express server → Medicine adherence: mounts routes
- Express server → Administration: mounts routes
- AI assistant → Gemini API: generates responses
- Prescription analysis → Gemini API: analyzes images
- Medicine adherence → Medicine records: reads and writes
- Medicine adherence → Dose schedules: manages doses
- Medicine adherence → Notifications: records reminders
- Administration → User records: manages accounts
- Express server → MongoDB: connects database