Production deployment — live and fully functional
👆 Click to open the live app · Deployed on Vercel · No installation required
Pregnancy is one of the most critical health periods in a person's life. MomSafe AI delivers a real-time intelligence layer for expectant mothers — combining AI risk scoring, clinical vitals monitoring, and IoT wearable hardware into one beautifully designed platform.
| 🏥 Command Center | 💓 Vitals Intelligence | 🤖 AI Guidance |
|---|---|---|
| Proprietary Maternal Risk Index synthesizes all health data into one color-coded score with live AI alerts | Heart rate · blood pressure · SpO₂ · temperature · weight — with trimester-specific safe-zone overlays | Explainable rule-based engine generates "Do This Now" action cards — no black-box AI |
| 📊 Analytics | 🥗 Nutrition & Daily Logs | 📍 Hospital Finder |
|---|---|---|
| Health trend charts for vitals over time — heart rate, BP, SpO₂, weight — powered by Recharts | Meal logging with AI macro analysis · calorie goals · water intake · sleep · mood · symptom tracking | Geolocated Leaflet map surfaces nearby medical facilities · Emergency SOS mode |
🔌 Full IoT Layer — C++/Arduino firmware on ESP32 auto-ingests temperature and step data over Wi-Fi into Supabase Edge Functions, closing the loop from wearable sensor to dashboard in seconds.
Flow: ESP32 → Edge Function (validate + write) → PostgreSQL → TanStack Query → AI risk engine → real-time dashboard update.
![]() |
![]() |
|---|---|
| Command Center · MRI score · live vitals · AI alerts | Vitals Intelligence · heart rate · BP · SpO₂ · trends |
![]() |
![]() |
|---|---|
| AI Guidance Engine · trimester-aware "Do This Now" recommendations | Analytics Overview · multi-factor health correlation charts |
📷 View all screenshots — Nutrition, Medication, Hospital Finder
![]() |
![]() |
|---|---|
| Analytics & Health Trends | Nutrition Tracker |
![]() |
![]() |
|---|---|
| Meal Logging & Food Recommendations | Medication Schedule (UI) |
![]() |
|
|---|---|
| Hospital Finder |
| Layer | Technology |
|---|---|
| Frontend | React 19 · Vite 7 · TypeScript 5 |
| Styling & Motion | Tailwind CSS v4 · Framer Motion |
| Data & Charts | TanStack Query v5 · Recharts |
| UI System | Radix UI · shadcn/ui · Lucide React |
| Backend | Supabase — PostgreSQL · Google OAuth · Realtime |
| Serverless | Supabase Edge Functions (esp32-ingest) |
| IoT | ESP32 · C++/Arduino |
| Hosting | Vercel |
Prerequisites: Node.js 20+, Supabase project, Google OAuth configured.
git clone https://github.com/studycom69-debug/momsafe.git
cd momsafe && npm installCreate .env.local:
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your-anon-key# Apply migrations in Supabase SQL Editor → artifacts/momsafe-ai/supabase/migrations/
npm run dev🔌 Deploy ESP32 edge function:
npx supabase functions deploy esp32-ingest· Full guide inESP32_INTEGRATION.md
- Medication persistence — save schedules and doses to the database
- Fetal kick counter & movement tracking
- Glucose monitoring integration
- Doctor / care-team shared dashboard
- Push notifications on threshold breach
- PWA + offline sync mode
- Bluetooth LE wearable support
git checkout -b feat/your-feature
# make changes
npm run typecheck # must pass
git commit -m "feat: your feature description"
# open PR against mainAll contributions welcome — clinical accuracy, mobile UX, i18n, new sensor types, accessibility.









