AI-powered agricultural marketplace for Kenya & Africa β connects farmers, buyers, transporters & agri-services. Next.js 15, real-time market prices, AI agronomist. Demo runs without keys.
# π FarmLink β Africa's AI Agricultural Marketplace
> Connecting farmers, buyers, transporters and agri-service providers into one seamless, AI-powered ecosystem. Built mobile-first for low-bandwidth African networks.
FarmLink eliminates exploitative middlemen, improves farmer profits, digitises agricultural trade, optimises logistics, and modernises Africa's agricultural supply chain β starting in Kenya and scaling across the continent.
---
## β¨ This demo
A fully interactive, **production-shaped front end** that runs with **zero API keys** in demo mode:
| Page | What it shows |
|------|---------------|
| `/` | Animated landing β hero, interactive Kenya price map, live ticker, AI demo, testimonials |
| `/marketplace` | Buyer marketplace with live search/filter by crop, county, grade, price, verification |
| `/prices` | **Real-time** global commodity prices (live CBOT/ICE futures + live FX β KES/kg), 14-day history charts, AI forecasts, auto-refresh every 60s |
| `/assistant` | Conversational AI agronomist (price prediction, disease, fertilizer, planting) β EN/SW |
| `/dashboard` | Farmer dashboard β wallet, escrow, credit score, sales analytics, inventory, orders |
| `/logistics` | Transport marketplace + cold-chain warehouse booking |
Highlights: glassmorphism, Framer Motion microinteractions, dark/light mode, animated dashboards, mobile-first responsive layouts, and a low-bandwidth GPU-cheap visual system.
## π Run it
```bash
npm install
npm run dev # β
localhost
```
No keys needed. To go live, copy `.env.example` β `.env` and fill in M-Pesa, AI, and maps keys.
### Live market-price feed
`/prices` and the homepage ticker pull **real-time data** from `GET /api/prices` β no API key required:
- **Commodity futures** (Maize/Corn, Coffee, Wheat, Soybeans, Rice, Sugar, Cocoa, Cotton) from Yahoo Finance, converted to KES/kg using a **live USDβKES FX rate**, with real 14-day history and today's % change. Tagged `LIVE`.
- **Kenyan hortic β¦