About
## The problem it solves
### 🏥 The Problem Mamora Solves
Pregnant women in remote or low-resource areas face a dangerous gap in healthcare: they only see a doctor once a month, leaving weeks of critical health fluctuations completely unmonitored. This lack of daily tracking often delays the detection of life-threatening conditions like gestational diabetes, anemia, and preeclampsia. Furthermore, language barriers and low literacy levels make accessing digital health tools difficult for regional mothers, while poor rural internet connectivity makes online platforms unreliable.
Mamora solves these challenges by acting as a **24/7 clinical companion** that expecting mothers can use to make pregnancy monitoring safer, easier, and accessible:
#### 1. Daily Health Tracking & Early Risk Detection * **What it replaces:** Manual notes, guess-work, or waiting until the next monthly clinic visit. * **How it helps:** Mothers can input basic vitals (blood pressure, blood glucose, hemoglobin). The deterministic backend instantly analyzes these numbers and flags high-risk readings, urging them to seek clinical care immediately before issues escalate.
#### 2. Safe, Instant Health Guidance
* **What it replaces:** Searching the internet or asking unverified sources, which often leads to dangerous medical misinformation. * **How it helps:** Mothers can ask health questions via the conversational chatbot. By pairing Google Gemini AI with a strict, rule-based clinical engine on the backend, Mamora ensures that responses are safe, reliable, and completely free from AI hallucinations.
#### 3. Overcoming Literacy and Language Barriers * **What it replaces:** Complex, English-only health portals. * **How it helps:** The application features complete **multilingual support** and a hands-free **voice assistant** (text-to-speech and speech-to-text). Mothers who cannot read or write fluently can simply speak to the app in their native tongue and hear guidance read aloud.
#### 4. Continuous Care in Offline Environments * **What it replaces:** Systems that crash or lose data when the user loses internet connection. * **How it helps:** Mamora's **offline sync queue** logs vitals locally even with zero connection. Once the mother reaches an area with signal, the data automatically batch-syncs to the cloud.
#### 5. Rapid Emergency Response
* **What it replaces:** Panic during a crisis, not knowing local hospital numbers, or struggling to share location coordinates. * **How it helps:** In an emergency, a single tap on the SOS button locates the nearest maternity hospitals on an interactive map and dispatches an alert containing the mother's precise GPS coordinates and clinical details.
## Challenges we ran into
### 🛠️ Challenges We Ran Into
Building a multi-lingual, offline-first, and production-grade application presented several interesting technical hurdles:
#### 1. Overcoming ERESOLVE Dependency Failures on Vercel * **The Hurdle:** While the project built successfully on our local development machines, clean production builds on Vercel consistently failed during the dependency installation step. We discovered a peer dependency conflict: our template had configured TypeScript `^6.0.2` under `devDependencies`, but `react-scripts 5.x` strictly required TypeScript `^3.x || ^4.x`. * **The Solution:** We downgraded the TypeScript package to a stable, compatible version (`^4.9.5`), cleared the node caches, regenerated `package-lock.json`, and pushed the clean package updates. This immediately resolved the installer loop and enabled clean builds on Vercel.
#### 2. Resolving Python Version and Library Compilation issues on Render * **The Hurdle:** When deploying our FastAPI backend to Render, the build process failed during the compilation of the image processing library (`pillow`). We realized Render defaulted to Python 3.14 (a pre-release/experimental version) which lacked pre-built binary wheels for older libraries, forcing the server to try and compile C-extensions from scratch. * **The Solution:** We created a `.python-version` file in our root and backend folders, pinning the Render environment's runtime to a stable Python **`3.11.8`** environment. Once the cache was cleared and redeployed, the packages installed smoothly in seconds.
#### 3. Preventing AI Key Exposure in Git Repositories * **The Hurdle:** GitHub's secret scanning features blocked one of our earlier git commits due to an exposed Google Gemini API key. This blocked our push and put the repository's security at risk. * **The Solution:** We scrubbed the hardcoded keys out of the source code and rewrote the repository’s commit history using a Git filter sweep to remove any trace of the exposed keys. We then safely loaded all secrets locally using `.env` files and configured Vercel's environment variables dashboard for production.
#### 4. Fixing Double-Voice Speech Duplication * **The Hurdle:** Our local text-to-speech assistant read chatbot replies twice in a row. This was due to React's rendering lifecycle, where state changes triggered the voice synthesis engine to fire multiple times on the same text. * **The Solution:** We implemented a `speechBaselineRef` inside the voice assistant component. This ref registers the string values of the spoken text and compares it before starting any new audio synthesis, ensuring each bot reply is spoken exactly once.
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.




