Skip to content

Repository files navigation

MomSafe AI

MomSafe AI

Typing animation



Stars Forks Last Commit License

React 19 TypeScript Supabase Tailwind v4 Vercel


IoT Contract




🚀 Live Application

Production deployment — live and fully functional

Open MomSafe AI


👆 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.


✨ Feature Highlights

🏥 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.


🏗️ Architecture

MomSafe AI — Maternal Health AI Ecosystem Architecture Diagram

Flow: ESP32 → Edge Function (validate + write) → PostgreSQL → TanStack Query → AI risk engine → real-time dashboard update.


📸 Screenshots

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

🛠️ Tech Stack

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

🚀 Getting Started

Prerequisites: Node.js 20+, Supabase project, Google OAuth configured.

git clone https://github.com/studycom69-debug/momsafe.git
cd momsafe && npm install

Create .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 in ESP32_INTEGRATION.md


🗺️ Future Roadmap

  • 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

🤝 Contributing

git checkout -b feat/your-feature
# make changes
npm run typecheck   # must pass
git commit -m "feat: your feature description"
# open PR against main

All contributions welcome — clinical accuracy, mobile UX, i18n, new sensor types, accessibility.


Built with 💙 for every mother and child.

MomSafe AI — Because every pregnancy deserves intelligent care.

Live Demo

About

AI-powered maternal healthcare platform with real-time vitals monitoring, maternal risk scoring, AI guidance, nutrition tracking, medication management, hospital discovery, and ESP32 wearable integration.

Topics

Resources

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages