About
## The problem it solves
Smallholder farmers **lose** an estimated **₹92,651 crore** annually due to localized post-harvest supply chain mismatches and a massive informational blackout regarding wholesale market shifts and government subsidies. Existing tech-driven solutions try to **force complex mobile** applications onto farmers, failing due to digital literacy barriers and low smartphone penetration in rural communities. This gap is heavily exploited by predatory middlemen who control local farm-gate pricing and take an unfair cut of the profits.
AgriRelay solves this by fundamentally shifting the* technical burden away* from the farmer. Instead of forcing advanced software onto smallholders, we create high-value, dignified employment for underutilized B.Sc. Agriculture graduates who act as local Extension Officers. These young professionals operate our command console to monitor market trends, track contamination threats, and manage local subsidy feeds. The farmer doesn't need a smartphone or advanced digital skills—they simply receive and follow standard SMS instructions on basic feature phones. By empowering educated youth to act as trusted intermediaries, we cut out exploitative middlemen, streamline transport logistics, and maximize household profits directly at the grass-roots level.
## Challenges we ran into
**The CORS/Preflight 403 Block**: During development, our frontend Vite app and Express backend frequently clashed over Cross-Origin security rules, dropping data streams and throwing 403 Forbidden errors during preflight browser checks. We systematically overcame this by replacing generic middleware declarations with an explicit, strictly-typed cors origin configuration block on the backend and deploying custom global app.options('*') catchers to satisfy browser preflight handshakes permanently.
**The API/Context Hydration Race Condition**: Our application screens originally loaded with blank cells or stuck on "Loading Zone..." because components were firing lifecycle fetch queries before our global context states could fully hydrate. To ensure our hackathon demo was absolutely bulletproof, we refactored the data architecture to use high-fidelity, synchronous hardcoded fallback states mapped exactly to our target region (Kolar Zone, Karnataka), delivering instant, zero-latency renders across charts, maps, and tables.
**Leaflet Popup Design Limits**: Leaflet's native map popups were clipping data rows, disrupting map panning, and feeling clunky. We completely stripped out native Leaflet popups and built a customized, absolute-positioned floating CSS card overlaid on the bottom-left of the viewport grid. This preserved map usability and allowed us to build an elegant UI featuring real-time price comparisons, progress bars, and inter-page redirection hooks.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.






