Africa's agritech ecosystem: From Seed to Sale. Connecting farmers to loans, insurance, and fair prices via web, mobile, and USSD.
# π± Shamba β From Seed to Sale
> Africa's premier agritech ecosystem. Empowering smallholder farmers across East Africa with credit, insurance, marketplace access, and AI-driven insights.
---
## Why Shamba wins
| Problem | Shamba solution | Revenue stream |
|---|---|---|
| Farmers can't access credit | AI credit scoring β input loans | 12β18% interest + 1.5% origination fee |
| Crops lost to weather | Parametric insurance, auto-payout | 12% commission on 4% premium |
| Produce sold at exploitative prices | B2B marketplace with escrow | 7% transaction commission |
| No market data | Live prices across 15+ counties | Premium SaaS tier |
| Post-harvest loss | Verified cold storage directory | Lead-gen fees |
| Feature phone farmers excluded | Full USSD interface | Africa's Talking |
**Target market:** 5.4M smallholder farmers in Kenya alone. East Africa (KE/UG/TZ) = 15M+ farmers.
---
## Tech stack
| Layer | Technology | Deploy |
|---|---|---|
| API | Node.js Β· Express Β· Prisma Β· PostgreSQL | Railway |
| Web | React 18 Β· Vite Β· Tailwind CSS Β· shadcn/ui Β· React Query | Vercel |
| Mobile | Expo SDK 51 Β· React Native Β· Expo Router | EAS |
| Database | Supabase PostgreSQL | Supabase |
| Shared | TypeScript Β· Zod Β· pnpm workspaces | β |
---
## Project structure
```
shamba/
βββ apps/
β βββ api/ # Express REST API
β β βββ prisma/
β β β βββ schema.prisma # 25 models, 8 domains
β β β βββ seed.ts # Realistic EA data
β β βββ src/
β β βββ controllers/v1/ # 11 controllers
β β βββ routes/v1/ # 11 route files
β β βββ services/ # credit, weather, mpesa, predict, sms, jwt
β β βββ jobs/ # node-cron insurance checker + reminders
β β βββ middleware/ # JWT auth, Zod validation, error handler
β βββ web/ # React SPA
β β βββ src/
β β βββ pages/ # 11 pages (dashboard β admin)
β β βββ components/ # AppLayou β¦