# Shamba-MedCare
> **AI-Powered Plant Health Analysis System**
> Analyze leaves, branches, roots, bark, fruits, and stems to diagnose diseases, pests, and nutrient deficiencies.
*"See the whole picture. Heal the whole plant."*
- Frontend -
shamba-medcare.vercel.app
- API -
shamba-medcare-api.vercel.a…
## Features
- **Whole-plant analysis**: Analyze leaves, branches, bark, roots, fruits, flowers, and stems
- **Visual disease mapping**: Heatmap overlays showing affected areas with percentage coverage
- **Budget-aware treatments**: From FREE traditional remedies to commercial solutions
- **Progression tracking**: Track plant health over time with before/after comparisons
- **Voice mode**: Text-to-speech for accessibility and low-literacy users
- **Mobile-first**: Designed for field use on smartphones
- **Offline-tolerant**: Graceful handling of poor connectivity
## Tech Stack
**Frontend:**
- Next.js 14 (App Router)
- TypeScript
- Tailwind CSS
- Lucide React icons
**Backend:**
- Python 3.11+
- FastAPI
- Anthropic Claude API (Vision)
- Pydantic
---
## Architecture
### System Overview
```mermaid
flowchart TB
subgraph User["👤 USER"]
MB[Mobile Browser]
end
subgraph Frontend["🖥️ FRONTEND - Next.js 14 on Vercel Edge"]
subgraph Pages["Pages"]
Scan["/scan"]
Results["/results"]
History["/history"]
Settings["/settings"]
end
subgraph Hooks["Custom Hooks"]
useAnalysis
useHistory
usePlants
useVoice
end
subgraph Lib["Utilities"]
api["api.ts"]
storage["storage.ts"]
export["export.ts"]
imageUtils["imageUtils.ts"]
end
LS[(localStorage)]
end
subgraph Backend["⚙️ BACKEND - FastAPI on Vercel Serverless"]
Router["API Router\nPOST /api/v1/analyze"]
Service["Analysis Service\n• Image validation\n• Prompt engineering\n• Response parsing"]
end
subgraph Claude["🤖 ANTHROPIC CLAUDE API"]
Vision["Claude Sonnet 4 Vision\n• Multi-image analysis\n• Disease identification\n• Treatment recommendations"]
end
MB --> Pages
Pages --> Hooks
Hooks --> Lib
Lib --> LS …