How utkarshkumar5257/moving_road_inspectors works
Drishti is a civic road-and-water incident monitoring product. Users view mapped incidents and fleet activity, while operators can submit reports, run video/GPS simulations, and inspect datasets and service capabilities. The backend processes capture jobs into detections and clustered incidents, then exposes operational data and live updates to the web application. The source index and excerpts support the primary API, frontend, and inference relationships; several listed pages and the parallel services/services backend tree were not sampled, so their internal wiring is not inferred.
Main entry points: pipeline.py Capture job pipeline · main.py API application · App.tsx Web app shell · Dashboard.tsx Incident dashboard
Components 20
Web application
- Web app shell
sih_project introduction/apps/web/src/App.tsx - Incident dashboard
sih_project introduction/apps/web/src/pages/Dashboard.tsx - Web API client
sih_project introduction/apps/web/src/api.ts - City definitions
sih_project introduction/apps/web/src/cities.ts - Incident hotspots
sih_project introduction/apps/web/src/hotspots.ts - Supabase auth
sih_project introduction/apps/web/src/services/supabase/auth.ts - Supabase web client
sih_project introduction/apps/web/src/lib/supabase.ts
API and operations
- API application
sih_project introduction/services/api/app/main.py - API route handlers
sih_project introduction/services/api/app/routers - Weather routes
sih_project introduction/services/api/app/routers/weather.py - Parallel API tree
sih_project introduction/services/services/api/app
Detection processing
- Capture job pipeline
sih_project introduction/services/api/app/pipeline.py - Model inference
sih_project introduction/services/detect/inference/orchestrator.py - Severity scoring
sih_project introduction/services/detect/severity.py - Weather gating
sih_project introduction/services/detect/weather_gate.py - Incident clustering
sih_project introduction/services/api/app/clustering.py
Persistence and integrations
- API database
sih_project introduction/services/api/app/db.py - API data models
sih_project introduction/services/api/app/models.py - Supabase ingest
sih_project introduction/services/api/app/supabase_ingest.py
Other components
- Public and operators
Connections 18
- Public and operators → Web app shell: uses
sih_project introduction/apps/web/src/App.tsx - Web app shell → Incident dashboard: routes to
sih_project introduction/apps/web/src/App.tsx - Web app shell → Web API client: loads session
sih_project introduction/apps/web/src/App.tsx - Web app shell → City definitions: selects city
sih_project introduction/apps/web/src/App.tsx - Incident dashboard → City definitions: filters by city
sih_project introduction/apps/web/src/pages/Dashboard.tsx - Incident dashboard → Incident hotspots: builds hotspots
sih_project introduction/apps/web/src/pages/Dashboard.tsx - API application → API route handlers: registers routes
sih_project introduction/services/api/app/main.py - API application → Weather routes: registers routes
sih_project introduction/services/api/app/main.py - Capture job pipeline → Model inference: runs detection
sih_project introduction/services/api/app/pipeline.py - Capture job pipeline → Severity scoring: scores severity
sih_project introduction/services/api/app/pipeline.py - Capture job pipeline → Weather gating: applies weather gate
sih_project introduction/services/api/app/pipeline.py - Capture job pipeline → Incident clustering: clusters detections
sih_project introduction/services/api/app/pipeline.py - Capture job pipeline → API database: updates job state
sih_project introduction/services/api/app/pipeline.py - Capture job pipeline → API data models: writes incidents
sih_project introduction/services/api/app/pipeline.py - API application → API database: initializes database
sih_project introduction/services/api/app/main.py - API application → Public and operators: serves API and feed
- Supabase auth → Supabase web client: uses auth client
sih_project introduction/apps/web/src/services/supabase/auth.ts - Capture job pipeline → Supabase ingest: optional persistence
sih_project introduction/services/api/app/pipeline.py