How calebgesami/agrimax2 works
AgriMax is a farmer-facing companion for farm profiles, financial planning, irrigation advice, and agricultural insights. A farmer creates or restores a profile, then uses the dashboard to reach finance, irrigation, and AI tools; the finance view calculates farm returns and retrieves scheme information, while irrigation requests weather-based recommendations. The README also describes market prices and AI crop, disease, yield, and chat features. Those unsampled feature modules are represented from the tree and documentation; their internal wiring is not inferred. The backend excerpt supports scheme and weather routes, including an OpenWeatherMap call.
Main entry points: App.jsx App coordinator · FinanceDashboard.jsx Finance helper · AIDashboard.jsx AI assistant hub · server.js Weather advice route
Components 22
Farmer experience
- App coordinator
frontend/src/App.jsx - Farmer profile
frontend/src/components/FarmerProfile.jsx - Farm dashboard
frontend/src/components/Dashboard.jsx - Navigation
frontend/src/components/Navigation.jsx - Market prices
frontend/src/components/MarketPrices.jsx
Farm tools
- Finance helper
frontend/src/components/FinanceDashboard.jsx - Profit and ROI
frontend/src/components/FinanceDashboard.jsx - Scheme matching
frontend/src/components/FinanceDashboard.jsx - Scheme documents
frontend/src/components/FinanceDashboard.jsx - Irrigation scheduler
frontend/src/components/IrrigationScheduler.jsx
AI insights
- AI assistant hub
frontend/src/components/AIDashboard.jsx - Crop advisor
frontend/src/components/AICropAdvisor.jsx - Disease detector
frontend/src/components/AIDiseaseDetector.jsx - Yield predictor
frontend/src/components/AIYieldPredictor.jsx - Farming chatbot
frontend/src/components/AIFarmerAssistant.jsx
Backend services
- Schemes endpoint
backend/server.js - Scheme catalog
backend/schemes.json - Weather advice route
backend/server.js - Irrigation rules
backend/server.js
Other components
- Farmer
- OpenWeatherMap
- Browser local storage
Connections 21
- Farmer → App coordinator: uses
- App coordinator → Navigation: renders
- App coordinator → Farmer profile: renders
- App coordinator → Farm dashboard: renders
- App coordinator → Finance helper: opens
- App coordinator → Irrigation scheduler: opens
- App coordinator → AI assistant hub: opens
- App coordinator → Browser local storage: reads and writes profile
- Farm dashboard → Market prices: renders
- Finance helper → Profit and ROI: calculates
- Finance helper → Scheme matching: checks eligibility
- Finance helper → Schemes endpoint: fetches schemes
- Finance helper → Scheme documents: shows details
- Schemes endpoint → Scheme catalog: reads
- Irrigation scheduler → Weather advice route: requests advice
- Weather advice route → OpenWeatherMap: fetches forecast
- Weather advice route → Irrigation rules: generates advice
- AI assistant hub → Crop advisor: offers
- AI assistant hub → Disease detector: offers
- AI assistant hub → Yield predictor: offers
- AI assistant hub → Farming chatbot: offers