How mugilarasu041-dotcom/ai-uzhavan works
Uzhavan is a Tamil Nadu agriculture and weather dashboard with Tamil/English support. Users select or search a district to view weather, forecasts, alerts and a map, then access agricultural advice and specialist tools for crop disease, dams, market prices and government schemes. The frontend is coordinated by App; a server provides API routes, including weather fallback handling and scheme data. Edges reflect the supplied excerpts and SOURCE INDEX references; some UI-to-feature connections are shown at the App level because implementation details were not sampled.
Main entry points: App.tsx Dashboard App · server.ts API Server · weather.ts Weather Types · weatherService.ts Weather Service
Components 22
Dashboard Experience
- Dashboard App
src/App.tsx - Weather Card
src/components/WeatherCard.tsx - Forecast Strip
src/components/ForecastStrip.tsx - District Map
src/components/TamilNaduMap.tsx - Weather Alerts
src/components/AlertsSection.tsx - Weather Analytics
src/components/YearlyRealTimeAnalytics.tsx
Weather & Advisory
- Weather Service
src/services/weatherService.ts - Agri Weather Bulletin
src/components/AgriWeatherBulletin.tsx - AI Weather Assistant
src/components/AiWeatherAssistant.tsx
Farmer Tools
- Crop Disease Scanner
src/components/CropDiseaseScanner.tsx - Dam Water Monitor
src/components/DamWaterMonitor.tsx - Market Price Board
src/components/MarketPriceBoard.tsx - Schemes Portal
src/components/TnAgriSchemesPortal.tsx
API & Domain Data
- API Server
server.ts - Weather Types
src/types/weather.ts - District & Soil Data
src/data/districts.ts - Alert Data
src/data/alerts.ts - Disease & Remedy Data
src/data/cropDiseases.ts - Dam Records
src/data/damData.ts - Market Prices
src/data/marketPrices.ts - Agriculture Schemes
src/data/agriSchemes.ts
Other components
- Farmer
Connections 36
- Farmer → Dashboard App: uses
- Dashboard App → Weather Card: renders
src/App.tsx - Dashboard App → Forecast Strip: renders
src/App.tsx - Dashboard App → District Map: renders
src/App.tsx - Dashboard App → Weather Alerts: renders
src/App.tsx - Dashboard App → Weather Analytics: renders
src/App.tsx - Dashboard App → Agri Weather Bulletin: renders
src/App.tsx - Dashboard App → AI Weather Assistant: renders
src/App.tsx - Dashboard App → Crop Disease Scanner: renders
src/App.tsx - Dashboard App → Dam Water Monitor: renders
src/App.tsx - Dashboard App → Market Price Board: renders
src/App.tsx - Dashboard App → Schemes Portal: renders
src/App.tsx - Dashboard App → Weather Service: gets weather
src/App.tsx - Weather Service → API Server: requests weather
src/services/weatherService.ts - API Server → Weather Service: fetches weather
server.ts - API Server → District & Soil Data: reads
server.ts - API Server → Dam Records: reads
server.ts - API Server → Market Prices: reads
server.ts - API Server → Agriculture Schemes: serves schemes
server.ts - API Server → Disease & Remedy Data: uses
server.ts - Weather Service → Weather Types: uses types
src/services/weatherService.ts - Weather Card → Weather Types: uses types
src/components/WeatherCard.tsx - Forecast Strip → Weather Types: uses types
src/components/ForecastStrip.tsx - District Map → District & Soil Data: filters districts
src/components/TamilNaduMap.tsx - District Map → Weather Types: uses types
src/components/TamilNaduMap.tsx - Weather Alerts → Alert Data: uses alerts
src/components/AlertsSection.tsx - Weather Alerts → Weather Types: uses types
src/components/AlertsSection.tsx - Agri Weather Bulletin → District & Soil Data: uses soil data
src/components/AgriWeatherBulletin.tsx - Agri Weather Bulletin → Weather Types: uses types
src/components/AgriWeatherBulletin.tsx - AI Weather Assistant → District & Soil Data: uses district data
src/components/AiWeatherAssistant.tsx - AI Weather Assistant → Weather Types: uses types
src/components/AiWeatherAssistant.tsx - Crop Disease Scanner → Disease & Remedy Data: uses remedies
src/components/CropDiseaseScanner.tsx - Dam Water Monitor → Dam Records: uses records
src/components/DamWaterMonitor.tsx - Market Price Board → Market Prices: uses prices
src/components/MarketPriceBoard.tsx - Schemes Portal → Agriculture Schemes: uses schemes
src/components/TnAgriSchemesPortal.tsx - Weather Analytics → Weather Types: uses types
src/components/YearlyRealTimeAnalytics.tsx