# Uganda VHT Co-Pilot πΊπ¬
> **AI-Enabled Community Health Tool** β Simplifying diagnostics, detecting malnutrition via computer vision, and delivering real-time outbreak alerts across Uganda's districts.
---
## π Quick Start
```bash
# Install dev server
npm install
# Run locally (opens at
localhost)
npm run dev
```
## π Setup (First Time)
1. **Get a free Groq API Key** β console.groq.com
2. Open the app β enter your key in the popup modal
3. Or click **"Use Demo Mode"** to explore without a key
---
## π Project Structure
```
VHTcopilot/
βββ public/
β βββ index.html β Main PWA app
β βββ style.css β Blue/white design system
β βββ app.js β All JS logic (Groq, CV, Map, Alerts)
β βββ sw.js β Service worker (offline)
β βββ manifest.json β PWA installable manifest
βββ firebase.json β Firebase Hosting config
βββ firestore.rules β Firestore security rules
βββ .firebaserc β Firebase project alias
βββ package.json
```
---
## π§ AI Features
| Feature | Technology | Status |
|---------|-----------|--------|
| Symptom Diagnostics | Groq API Β· LLaMA 3.3 70B | β
Live |
| Malnutrition Vision | TF.js + Vision API (CV Pipeline) | π¬ Prototype |
| Outbreak Alerts | Firebase + Groq summaries | β
Demo |
| District Map | Leaflet.js + OpenStreetMap | β
Live |
| Offline Mode | Service Worker PWA | β
Live |
---
## π₯οΈ Deploy to Firebase Hosting
```bash
# Install Firebase CLI
npm install -g firebase-tools
# Login
firebase login
# Initialize (first time only)
firebase init
# Deploy
npm run deploy
# β Live at:
vht-copilot-uganda.web.app
```
---
## π» Computer Vision Pipeline
```
Camera/Photo β MediaPipe Body Detection β MobileNetV2 Classification
β Google Vision API Validation β Groq AI Recommendation
```
**MUAC Thresholds (WHO):**
- π΄ 12.5 cm β Normal β Monthly monitoring
---
## π¨ Outbreak Alert Thresholds
| Disease | Alert Trigger |
|---------|--------------|
| Malaria | 15+ cases / β¦