# himamshus06/auxilium architecture

> Architecture diagram of the GitHub repository himamshus06/auxilium, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/himamshus06/auxilium
- Repository: https://github.com/himamshus06/auxilium

## Overview

AUXILIUM is an accessibility-aware pedestrian routing application backed by a local evidence-ingestion and review pipeline. Users select route endpoints and a mobility profile on the map; the frontend requests alternatives from the routing API, which builds routes from pedestrian paths and treats unverified evidence as warnings. Separately, Mapillary/Gemini evidence can be collected, checked, matched to OSM paths, and queued for human review. The README documents the API and pipeline workflows; some frontend and pipeline wiring is therefore shown from documentation where source excerpts do not expose the call.

Main entry points: [`data-pipeline/output/mangalore_mapillary_accessibility.geojson`](https://github.com/himamshus06/auxilium/blob/main/data-pipeline/output/mangalore_mapillary_accessibility.geojson) (Accessibility evidence), [`frontend/src/components/MapView.jsx`](https://github.com/himamshus06/auxilium/blob/main/frontend/src/components/MapView.jsx) (Map and routes), [`backend/server.py`](https://github.com/himamshus06/auxilium/blob/main/backend/server.py) (Routing API), [`data-pipeline/accessibility_quality.py`](https://github.com/himamshus06/auxilium/blob/main/data-pipeline/accessibility_quality.py) (Evidence quality tools)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Map application"]
  node_app["Application shell<br/>[App.jsx]"]
  node_map["Map and routes<br/>[MapView.jsx]"]
  node_frontend_data["Published map data"]
end

subgraph group_route["Routing service"]
  node_route_api["Routing API<br/>[server.py]"]
  node_routing["Pedestrian graph<br/>[routing.py]"]
end

subgraph group_pipeline["Evidence pipeline"]
  node_osm_extract["OSM extraction<br/>[extract_osm.py]"]
  node_paths["Pedestrian paths"]
  node_mapillary["Mapillary ingestion"]
  node_ai_workflow["Image analysis workflow"]
  node_evidence["Accessibility evidence"]
  node_quality["Evidence quality tools"]
  node_review_queue["Review queue and reports"]
end

subgraph group_review["Profiles and review"]
  node_auth["Authentication and profile<br/>[auth.js]"]
  node_firebase["Firebase setup<br/>[firebase.js]"]
  node_reviews["Review decisions<br/>[reviews.js]"]
  node_firestore[("Firestore")]
end

node_user(("Traveler"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_map
node_map -->|"requests routes"| node_route_api
node_route_api -->|"dispatches routing"| node_routing
node_route_api -->|"loads paths"| node_paths
node_route_api -->|"loads evidence"| node_evidence
node_osm_extract -->|"exports paths"| node_paths
node_mapillary -->|"writes findings"| node_evidence
node_ai_workflow -->|"updates evidence"| node_evidence
node_ai_workflow -->|"uses ingestion logic"| node_mapillary
node_quality -->|"validates and matches"| node_evidence
node_quality -->|"matches paths"| node_paths
node_quality -->|"generates review artifacts"| node_review_queue
node_evidence -->|"publishes copy"| node_frontend_data
node_map -->|"loads markers"| node_frontend_data
node_app -->|"manages session and profile"| node_auth
node_auth -->|"uses Firebase clients"| node_firebase
node_map -->|"loads and saves decisions"| node_reviews
node_reviews -->|"uses Firestore client"| node_firebase
node_firebase -->|"connects"| node_firestore
node_auth -->|"reads and writes profiles"| node_firestore
node_reviews -->|"stores decisions"| node_firestore

click node_app "https://github.com/himamshus06/auxilium/blob/main/frontend/src/App.jsx"
click node_map "https://github.com/himamshus06/auxilium/blob/main/frontend/src/components/MapView.jsx"
click node_route_api "https://github.com/himamshus06/auxilium/blob/main/backend/server.py"
click node_routing "https://github.com/himamshus06/auxilium/blob/main/backend/routing.py"
click node_osm_extract "https://github.com/himamshus06/auxilium/blob/main/data-pipeline/extract_osm.py"
click node_paths "https://github.com/himamshus06/auxilium/blob/main/data-pipeline/output/pedestrian_paths.geojson"
click node_mapillary "https://github.com/himamshus06/auxilium/blob/main/data-pipeline/ingest_mapillary.py"
click node_ai_workflow "https://github.com/himamshus06/auxilium/blob/main/data-pipeline/mangalore_ai_pipeline.py"
click node_evidence "https://github.com/himamshus06/auxilium/blob/main/data-pipeline/output/mangalore_mapillary_accessibility.geojson"
click node_quality "https://github.com/himamshus06/auxilium/blob/main/data-pipeline/accessibility_quality.py"
click node_review_queue "https://github.com/himamshus06/auxilium/blob/main/data-pipeline/output/accessibility_review_queue.csv"
click node_frontend_data "https://github.com/himamshus06/auxilium/blob/main/frontend/public/data/mangalore_mapillary_accessibility.geojson"
click node_auth "https://github.com/himamshus06/auxilium/blob/main/frontend/src/services/auth.js"
click node_firebase "https://github.com/himamshus06/auxilium/blob/main/frontend/src/lib/firebase.js"
click node_reviews "https://github.com/himamshus06/auxilium/blob/main/frontend/src/services/reviews.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_map,node_frontend_data toneBlue
class node_route_api,node_routing toneAmber
class node_osm_extract,node_paths,node_mapillary,node_ai_workflow,node_evidence,node_quality,node_review_queue toneMint
class node_auth,node_firebase,node_reviews,node_firestore toneRose
class node_user toneIndigo
```

## Components

### Map application

- [Application shell](https://github.com/himamshus06/auxilium/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Map and routes](https://github.com/himamshus06/auxilium/blob/main/frontend/src/components/MapView.jsx): `frontend/src/components/MapView.jsx`
- [Published map data](https://github.com/himamshus06/auxilium/blob/main/frontend/public/data/mangalore_mapillary_accessibility.geojson): `frontend/public/data/mangalore_mapillary_accessibility.geojson`

### Routing service

- [Routing API](https://github.com/himamshus06/auxilium/blob/main/backend/server.py): `backend/server.py`
- [Pedestrian graph](https://github.com/himamshus06/auxilium/blob/main/backend/routing.py): `backend/routing.py`

### Evidence pipeline

- [OSM extraction](https://github.com/himamshus06/auxilium/blob/main/data-pipeline/extract_osm.py): `data-pipeline/extract_osm.py`
- [Pedestrian paths](https://github.com/himamshus06/auxilium/blob/main/data-pipeline/output/pedestrian_paths.geojson): `data-pipeline/output/pedestrian_paths.geojson`
- [Mapillary ingestion](https://github.com/himamshus06/auxilium/blob/main/data-pipeline/ingest_mapillary.py): `data-pipeline/ingest_mapillary.py`
- [Image analysis workflow](https://github.com/himamshus06/auxilium/blob/main/data-pipeline/mangalore_ai_pipeline.py): `data-pipeline/mangalore_ai_pipeline.py`
- [Accessibility evidence](https://github.com/himamshus06/auxilium/blob/main/data-pipeline/output/mangalore_mapillary_accessibility.geojson): `data-pipeline/output/mangalore_mapillary_accessibility.geojson`
- [Evidence quality tools](https://github.com/himamshus06/auxilium/blob/main/data-pipeline/accessibility_quality.py): `data-pipeline/accessibility_quality.py`
- [Review queue and reports](https://github.com/himamshus06/auxilium/blob/main/data-pipeline/output/accessibility_review_queue.csv): `data-pipeline/output/accessibility_review_queue.csv`

### Profiles and review

- [Authentication and profile](https://github.com/himamshus06/auxilium/blob/main/frontend/src/services/auth.js): `frontend/src/services/auth.js`
- [Firebase setup](https://github.com/himamshus06/auxilium/blob/main/frontend/src/lib/firebase.js): `frontend/src/lib/firebase.js`
- [Review decisions](https://github.com/himamshus06/auxilium/blob/main/frontend/src/services/reviews.js): `frontend/src/services/reviews.js`
- **Firestore**

### Other components

- **Traveler**

## Connections

- Traveler → Application shell: uses (evidence: `README.md`)
- Application shell → Map and routes: renders (evidence: `frontend/src/App.jsx`)
- Map and routes → Routing API: requests routes (evidence: `README.md`)
- Routing API → Pedestrian graph: dispatches routing (evidence: `backend/server.py`)
- Routing API → Pedestrian paths: loads paths (evidence: `backend/server.py`)
- Routing API → Accessibility evidence: loads evidence (evidence: `backend/server.py`)
- OSM extraction → Pedestrian paths: exports paths (evidence: `README.md`)
- Mapillary ingestion → Accessibility evidence: writes findings (evidence: `README.md`)
- Image analysis workflow → Accessibility evidence: updates evidence (evidence: `data-pipeline/mangalore_ai_pipeline.py`)
- Image analysis workflow → Mapillary ingestion: uses ingestion logic (evidence: `data-pipeline/mangalore_ai_pipeline.py`)
- Evidence quality tools → Accessibility evidence: validates and matches (evidence: `README.md`)
- Evidence quality tools → Pedestrian paths: matches paths (evidence: `README.md`)
- Evidence quality tools → Review queue and reports: generates review artifacts (evidence: `data-pipeline/accessibility_quality.py`)
- Accessibility evidence → Published map data: publishes copy (evidence: `README.md`)
- Map and routes → Published map data: loads markers (evidence: `frontend/src/components/MapView.jsx`)
- Application shell → Authentication and profile: manages session and profile (evidence: `frontend/src/App.jsx`)
- Authentication and profile → Firebase setup: uses Firebase clients (evidence: `frontend/src/services/auth.js`)
- Map and routes → Review decisions: loads and saves decisions (evidence: `frontend/src/components/MapView.jsx`)
- Review decisions → Firebase setup: uses Firestore client (evidence: `frontend/src/services/reviews.js`)
- Firebase setup → Firestore: connects (evidence: `frontend/src/lib/firebase.js`)
- Authentication and profile → Firestore: reads and writes profiles (evidence: `frontend/src/services/auth.js`)
- Review decisions → Firestore: stores decisions (evidence: `frontend/src/services/reviews.js`)
