How devsambou/kultivia works
KultivIA is a multilingual agricultural crop-diagnosis app, with photo, text, and voice input. Its broader product also includes crop-health views, community reports, marketplace, weather alerts, and user setup/settings. The tree identifies the Flutter feature areas; excerpts confirm the server-side AI proxy and scheduled weather/report notification flows. Flutter-to-backend wiring and most screen-level calls were not shown, so those links are omitted or marked unverified rather than asserted.
Main entry points: weatherAlerts.js Scheduled weather alerts · index.js Function exports · aiProxy.js AI proxy · firebase_diagnosis_repository.dart Diagnosis repository
Components 26
Flutter app
- App entry
lib/main.dart - Welcome gate
lib/screens/gate/gate_screen.dart
Crop assistance
- AI assistant
lib/screens/home_ai/home_ai_screen.dart - AI client
lib/services/ai/rodium_ai_service.dart - Health dashboard
lib/screens/health/health_dashboard_screen.dart - Diagnosis result
lib/screens/health/diagnosis_result_screen.dart - Diagnosis history
lib/screens/history/history_screen.dart - Diagnosis repository
lib/repositories/firebase_diagnosis_repository.dart - Weather alerts
lib/screens/weather/weather_alerts_screen.dart
Community and market
- Community reports
lib/screens/community/community_screen.dart - Marketplace
lib/screens/market/marketplace_screen.dart
Accounts and preferences
- Sign-in
lib/screens/auth/auth_screen.dart - Farm setup
lib/screens/setup/setup_screen.dart - Profile and settings
lib/screens/settings/settings_screen.dart
Cloud services
- Scheduled weather alerts
functions/src/weatherAlerts.js - Risk assessment
functions/src/weatherRules.js - Report notification
functions/src/notifyReport.js - AI proxy
functions/src/aiProxy.js - Speech synthesis
functions/src/aiSpeech.js - Voice transcription
functions/src/aiTranscribe.js - Function exports
functions/index.js
Other components
- Farmer
- Firebase
- RodiumAI
- Open-Meteo
- Firebase messaging
Connections 25
- Farmer → App entry: uses
README.md - App entry → Welcome gate: opens
- Farmer → AI assistant: requests diagnosis
README.md - AI assistant → AI client: uses
- AI client → AI proxy: requests AI
- AI proxy → RodiumAI: forwards request
functions/src/aiProxy.js - Function exports → AI proxy: exports
functions/index.js - Function exports → Scheduled weather alerts: exports
functions/index.js - Scheduled weather alerts → Risk assessment: assesses risk
functions/src/weatherAlerts.js - Scheduled weather alerts → Firebase: reads users
functions/src/weatherAlerts.js - Scheduled weather alerts → Open-Meteo: fetches forecast
functions/src/weatherAlerts.js - Scheduled weather alerts → Firebase messaging: sends alerts
functions/src/weatherAlerts.js - Function exports → Report notification: exports
functions/index.js - Report notification → Firebase messaging: notifies topic
functions/src/notifyReport.js - Speech synthesis → RodiumAI: requests speech
functions/src/aiSpeech.js - Voice transcription → RodiumAI: requests transcription
functions/src/aiTranscribe.js - Farmer → Weather alerts: views alerts
- Farmer → Community reports: posts reports
- Farmer → Marketplace: browses vendors
- Health dashboard → Diagnosis repository: loads diagnoses
- Diagnosis history → Diagnosis repository: loads history
- Diagnosis result → Diagnosis repository: stores diagnosis
- Farmer → Sign-in: signs in
- Farmer → Farm setup: sets up farm
- Farmer → Profile and settings: configures preferences