How hotcometgames/ecoloco works
EcoLoco is a mobile schoolyard biodiversity tool: users identify plants by photo and ZIP code, audit a site’s plants, then review a biodiversity score, local planting recommendations, and a draft advocacy letter. The graph follows the shown app navigation, screen-to-API requests, Flask routes, and service calls. External AI, iNaturalist, and geocoding interactions are represented where excerpts support them; recommendation and letter generation internals are only partly sampled.
Main entry points: geminiService.js API client · AppNavigator.js Screen navigation · gemini_service.py Plant AI services · AuditResultsScreen.js Audit results
Components 16
Mobile app
- App shell
App.js - Screen navigation
frontend/navigation/AppNavigator.js - Home
frontend/screens/HomeScreen.js - Plant identification
frontend/screens/IdentificationScreen.js - Plant audit
frontend/screens/AuditScreen.js - Audit results
frontend/screens/AuditResultsScreen.js - Plant recommendations
frontend/screens/RecommendationScreen.js - API client
frontend/services/geminiService.js
Backend API
- HTTP API
backend/app.py
Plant analysis
- Plant AI services
backend/services/gemini_service.py - Observation lookup
backend/services/inat_service.py - Biodiversity scoring
backend/services/score_service.py
Other components
- Student or school
- AI model provider
- iNaturalist
- ZIP geocoder
Connections 21
- Student or school → App shell: uses
App.js - App shell → Screen navigation: renders
App.js - Screen navigation → Home: routes
frontend/navigation/AppNavigator.js - Screen navigation → Plant identification: routes
frontend/navigation/AppNavigator.js - Screen navigation → Plant audit: routes
frontend/navigation/AppNavigator.js - Screen navigation → Plant recommendations: routes
frontend/navigation/AppNavigator.js - Screen 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 - Audit results → API client: requests score
frontend/screens/AuditResultsScreen.js - Audit results → API client: requests recommendations
frontend/screens/AuditResultsScreen.js - Audit results → API client: requests letter
frontend/screens/AuditResultsScreen.js - Plant recommendations → API client: requests recommendations
frontend/screens/RecommendationScreen.js - API client → HTTP API: posts requests
frontend/services/geminiService.js - HTTP API → Plant AI services: calls
backend/app.py - HTTP API → Observation lookup: imports service
backend/app.py - HTTP API → Biodiversity scoring: calls
backend/app.py - Plant AI services → AI model provider: queries
backend/services/gemini_service.py - Plant AI services → Observation lookup: calls
backend/services/gemini_service.py - Plant AI services → iNaturalist: checks observations
- Plant AI services → ZIP geocoder: geocodes ZIP
backend/services/gemini_service.py