How aydinheugh/ecoloco-fl works
EcoLoco is a climate-action app for identifying plants and assessing schoolyard biodiversity. A user navigates to plant identification or an audit, submits photos and a ZIP code, then reviews identification results; audit results include a biodiversity score, local plant recommendations, action guidance, and a draft letter. The mobile app calls a Flask API, which delegates identification and recommendation work to AI and Florida plant-status services, and score calculation to a separate scoring service. Source excerpts show the main call paths; some screens and backend services are indexed but not excerpted, so their internal behavior is not expanded.
Main entry points: AppNavigator.js Navigation · geminiService.js API client · ai_service.py Plant AI workflows · AuditResultsScreen.js Audit results
Components 17
Mobile app
- App entry
App.js - Navigation
frontend/navigation/AppNavigator.js - Home
frontend/screens/HomeScreen.js - Plant identification
frontend/screens/IdentificationScreen.js - Plant audit
frontend/screens/AuditScreen.js - Recommendations
frontend/screens/RecommendationScreen.js - Audit results
frontend/screens/AuditResultsScreen.js - API client
frontend/services/geminiService.js
API
- HTTP endpoints
backend/app.py
Plant and biodiversity
- Plant AI workflows
backend/services/ai_service.py - Species identification
backend/services/identification_service.py - Florida plant status
backend/services/fl_plants_service.py - Biodiversity scoring
backend/services/score_service.py - iNaturalist service
backend/services/inat_service.py
AI integration
- OpenAI client
backend/services/openai_client.py
Other components
- App user
- OpenAI
Connections 20
- App user → App entry: opens
- App entry → Navigation: renders
App.js - Navigation → Home: routes
frontend/navigation/AppNavigator.js - Navigation → Plant identification: routes
frontend/navigation/AppNavigator.js - Navigation → Plant audit: routes
frontend/navigation/AppNavigator.js - Navigation → Recommendations: routes
frontend/navigation/AppNavigator.js - Navigation → Audit results: routes
frontend/navigation/AppNavigator.js - Plant identification → API client: requests identification
frontend/screens/IdentificationScreen.js - Plant audit → API client: requests identification
frontend/screens/AuditScreen.js - Recommendations → API client: requests recommendations
frontend/screens/RecommendationScreen.js - Audit results → API client: requests score and letter
frontend/screens/AuditResultsScreen.js - Audit results → API client: requests recommendations
frontend/screens/AuditResultsScreen.js - API client → HTTP endpoints: posts API requests
frontend/services/geminiService.js - HTTP endpoints → Plant AI workflows: delegates identify, recommend, letter
backend/app.py - HTTP endpoints → Biodiversity scoring: delegates score
backend/app.py - Plant AI workflows → Species identification: identifies species
backend/services/ai_service.py - Plant AI workflows → Florida plant status: checks plant status
backend/services/ai_service.py - Plant AI workflows → OpenAI client: requests AI responses
backend/services/ai_service.py - Species identification → OpenAI client: requests image analysis
backend/services/identification_service.py - OpenAI client → OpenAI: sends chat requests
backend/services/openai_client.py