🌾 MandiIntel Dashboard
Next-Generation AI-Powered Agricultural Intelligence for Indian Farmers
## 📖 Overview
MandiIntel is a premium, glassmorphism-themed agricultural analytics dashboard specifically engineered to empower Indian farmers. It dynamically visualizes nationwide `Agmarknet` crop pricing data, predicts 7-day market trajectories utilizing mathematical algorithms, and injects **deep artificial intelligence** from OpenRouter LLMs to provide real-time, actionable selling strategies in both **English and native Hindi**.
---
## ✨ Features
- **🌐 Dual-Language Support (English/Hindi):** Seamlessly shifts the entire UI, dynamic API responses, and AI prompts into native Hindi on the fly.
- **🧠 OpenRouter AI Integration:** Dynamically interfaces with state-of-the-art LLMs (`Gemini 2.0`, `Llama 3.1`, `Mistral 7B`) to provide concise, farmer-focused bullet points on whether to hold or sell.
- **📊 Trading-Grade Data Visualization:** Leverages robust Chart.js implementations featuring dynamic zero-bound slicing to drastically highlight microscopic daily price variations.
- **📱 Fully Responsive Drawer Layout:** Intelligent mobile-first breakpoints flawlessly snap the platform into an off-canvas hamburger drawer orientation on smartphones.
- **🧮 Profit Calculator:** A dynamic side-panel calculator extracting real-time APMC data to model post-transportation profit limits.
- **⚡️ Dummy Data Generator Engine:** A highly robust fallback simulator ensuring the dashboard renders flawlessly (with volatility parameters) even in low-bandwidth zones when APIs time out.
---
## 🔌 API Integrations & Core Systems
### 1. Indian Government Data Server (Data.gov.in)
MandiIntel retrieves live national market data via the official `Agmarknet` Open Data API endpoints.
- **Role:** Fetches daily APMC (Agriculture Produce Market Committee) selling prices parsing deep parameters like Crop IDs and District nodes.
- **Resilience:** If network barriers occur, a background `generate30Day …