mandi-connect
Direct Farm-to-Retail Marketplace — Farmer sets th
Created on 15th March 2026
•
mandi-connect
Direct Farm-to-Retail Marketplace — Farmer sets th
The problem mandi-connect solves
MandiConnect solves one of India's biggest agricultural problems —
the middleman exploitation of small farmers.
🌾 For Farmers:
- Small-scale farmers in regions like Nipani, Karnataka are forced
to sell produce to local middlemen at 30-50% below market price - They have zero bargaining power and no direct access to buyers
- Existing platforms are too complex and require high-speed internet
💡 MandiConnect fixes this by:
- Letting farmers LIST their own crops and SET their own price
- Connecting them DIRECTLY to retailers — zero middlemen, zero commission
- Working OFFLINE FIRST — built for low-connectivity rural areas
- Sending real-time mandi price alerts via SMS to basic phones
- Providing AI-powered crop advisory, disease detection, and demand prediction
- Integrating UPI payments (PhonePe, GPay, Paytm) directly to farmer's account
📊 Impact:
- Farmers earn 30-50% more per kg
- Retailers save 20-30% vs buying through middlemen
- Platform fee = ₹0 always (hardcoded, never changes)
- Works on 2G internet and offline via Progressive Web App (PWA)
Challenges I ran into
1. Offline-First Architecture
Building a marketplace that works without internet was the hardest
challenge. We solved it using PWA Service Workers and localStorage
as a local database, with background sync when connection returns.
2. Real-Time Price Updates
Implementing live mandi price updates across 500+ mandis required
Socket.IO with efficient room-based broadcasting. We used crop-specific
rooms so farmers only receive relevant price updates.
3. Bulk Order Splitting
When a retailer places a 500kg order but no single farmer has that
quantity, the system needed to auto-split across multiple farmers by
distance, price, and availability simultaneously.
4. Low-Bandwidth SMS Integration
Many farmers in rural areas don't have smartphones. We integrated
Twilio and MSG91 so all critical alerts (new orders, price changes,
weather warnings) are delivered as plain SMS to any basic phone.
5. Farmer-Set Pricing
The core feature — ensuring the platform NEVER changes a farmer's
price — required careful backend validation. We hardcoded platformFee = 0
at the database schema level, making it impossible to override.
6. Time Constraint
Built the complete frontend + backend in 24 hours at the hackathon.
We prioritized core features first, used localStorage as a mock backend
initially, then connected the real Node.js + MongoDB backend.