How anvation-2026/anv26-sc-04--ecocity-ai works
EcoCity AI is a municipal solid-waste command center. The user workflow runs from the React dashboard and operational screens, through the API client to FastAPI endpoints, then to forecasting, risk, routing, and segregation logic; results support monitoring and operational decisions. The frontend also includes local intelligence and fallback data. Major screens and backend domains are represented, but the README contains no usable capability detail, and some screen-to-backend relationships are not evidenced in the excerpts.
Main entry points: App.jsx Dashboard App · main.py FastAPI Application · agent.py Agent API · api.js REST API Client
Components 29
Command Center UI
- Dashboard App
src/App.jsx - Command Center
src/screens/CommandCenterScreen.jsx - Waste Zones
src/screens/WasteZonesScreen.jsx - Historical Analytics
src/screens/HistoricalAnalyticsScreen.jsx - Landfill Intelligence
src/screens/LandfillIntelligenceScreen.jsx - Collection Reliability
src/screens/CollectionReliabilityScreen.jsx - Source Segregation
src/screens/SourceSegregationScreen.jsx - Data and AI
src/screens/DataAndAIScreen.jsx - Route Optimization
src/screens/RouteOptimizationScreen.jsx - EcoAgent Drawer
src/components/EcoAgentDrawer.jsx
Client Intelligence
- REST API Client
src/services/api.js - Browser AI Models
src/services/aiIntelligenceEngine.js - Route Simulator
src/services/routeOptimizationEngine.js - Agent Tools
src/services/ecoAgentTools.js - Fallback Data
src/data/mockData.js
Operations API
- FastAPI Application
backend/main.py - Dashboard API
backend/api/dashboard.py - Zones API
backend/api/zones.py - Vehicles API
backend/api/vehicles.py - Forecast API
backend/api/forecast.py - Landfill API
backend/api/landfill.py - Collection API
backend/api/collection.py - Segregation API
backend/api/segregation.py - Agent API
backend/api/agent.py
Domain Engines
- Risk Scoring
backend/services/risk_engine.py - Waste Forecasting
backend/services/forecast_engine.py - Vehicle Routing
backend/services/route_optimizer.py - Segregation Analysis
backend/services/segregation.py
Other components
- Municipal Operator
Connections 38
- Municipal Operator → Dashboard App: uses
src/App.jsx - Dashboard App → Command Center: renders
src/App.jsx - Dashboard App → Waste Zones: renders
src/App.jsx - Dashboard App → Historical Analytics: renders
src/App.jsx - Dashboard App → Landfill Intelligence: renders
src/App.jsx - Dashboard App → Collection Reliability: renders
src/App.jsx - Dashboard App → Source Segregation: renders
src/App.jsx - Dashboard App → Data and AI: renders
src/App.jsx - Dashboard App → Route Optimization: renders
src/App.jsx - Dashboard App → EcoAgent Drawer: renders
src/App.jsx - Dashboard App → REST API Client: fetches via
src/App.jsx - Dashboard App → Browser AI Models: simulates with
src/App.jsx - Data and AI → Browser AI Models: analyzes with
src/screens/DataAndAIScreen.jsx - Collection Reliability → REST API Client: fetches via
src/screens/CollectionReliabilityScreen.jsx - Source Segregation → REST API Client: fetches via
src/screens/SourceSegregationScreen.jsx - Landfill Intelligence → Fallback Data: reads
src/screens/LandfillIntelligenceScreen.jsx - Route Optimization → Route Simulator: simulates with
src/screens/RouteOptimizationScreen.jsx - EcoAgent Drawer → REST API Client: queries
src/components/EcoAgentDrawer.jsx - EcoAgent Drawer → Agent Tools: runs tools
src/components/EcoAgentDrawer.jsx - REST API Client → FastAPI Application: calls REST
src/services/api.js - FastAPI Application → Dashboard API: registers
backend/main.py - FastAPI Application → Zones API: registers
backend/main.py - FastAPI Application → Vehicles API: registers
backend/main.py - FastAPI Application → Forecast API: registers
backend/main.py - FastAPI Application → Landfill API: registers
backend/main.py - FastAPI Application → Collection API: registers
backend/main.py - FastAPI Application → Segregation API: registers
backend/main.py - FastAPI Application → Agent API: registers
backend/main.py - Forecast API → Waste Forecasting: uses
backend/api/forecast.py - Forecast API → Risk Scoring: uses
backend/api/forecast.py - Landfill API → Waste Forecasting: uses
backend/api/landfill.py - Zones API → Risk Scoring: scores with
backend/api/zones.py - Vehicles API → Vehicle Routing: optimizes with
backend/api/vehicles.py - Segregation API → Segregation Analysis: analyzes with
backend/api/segregation.py - Agent API → Risk Scoring: calls
backend/api/agent.py - Agent API → Waste Forecasting: calls
backend/api/agent.py - Agent API → Vehicle Routing: calls
backend/api/agent.py - Agent API → Segregation Analysis: calls
backend/api/agent.py