A USSD + mobile market price intelligence system improving farmer price visibility and optimizing market-to-farm logistics in Nigeria.
# MarketLens πΎπ
**MarketLens** is an open-source market price intelligence platform designed for
smallholder farmers in emerging markets.
It provides **real-time crop price visibility via USSD** for feature phones,
and a **web dashboard** for analysts, NGOs, and aggregatorsβusing the same
trusted data pipeline.
---
## π― Problem
Smallholder farmers often sell crops without knowing:
- current prices in nearby markets
- price trends over time
- whether transport to another market is worth it
This information gap reduces income, increases post-harvest losses, and
reinforces dependence on middlemen.
---
## π‘ Solution
MarketLens delivers **the same price intelligence through two channels**:
- **USSD** β for farmers using basic phones
- **Web dashboard** β for analysts, NGOs, cooperatives, and planners
Data is validated, aggregated, and scored for confidence before publication.
---
## π§± System Overview
```
Market Enumerators / APIs
β
Data Ingestion API
β
Price Validation & Aggregation
β
Central Price Database
β
ββββββββββββββββ¬βββββββββββββββ
| USSD Gateway | Web Dashboard|
ββββββββββββββββ΄βββββββββββββββ
```
---
## π± USSD Features (Farmer-Facing)
- Check crop prices by market
- View daily price trend (β β β)
- Confidence indicator (low / medium / high)
- Last update timestamp
**Example**
```
347800#
1. Check Crop Price
2. Nearby Markets
3. Weather Alert
β Tomato (Mile 12): β¦18,500
β Trend: β Rising
β Confidence: High
```
---
## π Web Dashboard Features
- Market price tables and trends
- Outlier and anomaly detection
- Manual admin review & overrides
- Confidence score visibility
- Exportable datasets
---
## π Tech Stack
**Backend**
- Go (REST API)
- PostgreSQL (data storage)
- Redis (USSD session handling)
**Frontend**
- React (admin dashboard)
**Infrastructure**
- Docker & Docker Compose
- GitHub Actions (CI)
---
## π Repository Structure
```
marketlens/
apps/ # Web applications
services/ # Backend services (Go)
docs/ # Archi β¦