An AI-powered farming assistant designed to support smallholder and new farmers in Ghana.
# πΏ NkΙsoΙ AI
### AI-Powered Farming Assistant for Ghana & West Africa
**NkΙsoΙ** means *growth* in Twi β and that is exactly what this tool is built for.
NkΙsoΙ AI helps smallholder farmers in Ghana make better decisions about weather, crop prices, pest management, and farming practices β powered by Claude AI (Anthropic) and built with Python and Flask.
---
## Features
| Feature | Description |
|---|---|
| π€ Live weather | Real-time 7-day forecasts for all 16 Ghana regions via Open-Meteo |
| π Market prices | Current GHS prices for maize, cassava, tomatoes, plantain, cocoa and more |
| π Pest alerts | Active pest and disease alerts with affordable local treatment tips |
| π· Photo diagnosis | Upload a photo of a sick crop β AI identifies the disease instantly |
| π€ AI farming chat | Ask any farming question in English or Twi β expert answers in seconds |
| π 16 Ghana regions | Weather tailored to every region from Accra to Bolgatanga to Wa |
| π¬π Twi language | Full interface and AI responses available in Twi |
| π³ Paystack payments | GHS 30/month Pro plan via MTN MoMo, Telecel Cash, or card |
| π Usage limits | Free users get 5 questions/day β Pro users get unlimited access |
| π Admin dashboard | Private dashboard at /admin showing users, revenue, and top questions |
---
## Tech Stack
| Layer | Technology |
|---|---|
| Backend | Python 3.12, Flask |
| AI | Anthropic Claude (claude-sonnet-4) |
| Weather | Open-Meteo API (free, no key needed) |
| Payments | Paystack (Ghana Mobile Money + card) |
| Database | SQLite (built into Python, zero config) |
| Deployment | Render.com |
| Frontend | HTML, CSS, Vanilla JavaScript |
---
## Project Structure
```
nkosoo-ai/
βββ app.py # Main Flask app β all routes, AI, payments, admin
βββ requirements.txt # Python dependencies
βββ Procfile # Render start command
βββ README.md # This file
βββ templates/
βββ index.html # Main farmer-facing UI
βββ admin.html β¦