# ajstarks117/edi architecture

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

- Interactive diagram: https://gitdiagram.com/ajstarks117/edi
- Repository: https://github.com/ajstarks117/edi

## Overview

1. **Overall shape**
   TravelTrek is a multi-client safety platform split into three main runtimes: a **Flutter tourist app**, a **Node/Express authority backend**, and one or more **React authority dashboards**. The backend is the central integration layer; the mobile app is the field device; the dashboards are the control-room views.

2. **Tourist mobile app boundary**
   `tourist/` is a Flutter offline-first app. Its feature structure separates **auth**, **tourist profile/trip data**, **map/tracking**, **geofence monitoring**, **SOS**, **AI safety assistant**, and **blockchain digital ID**. It uses local state/providers and local persistence (`Hive`) so core safety features still work when connectivity is weak or absent.

3. **Tourist-side safety flows**
   The mobile app generates and consumes location and safety events locally through `gps_service`, `background_tracking`, `geofence_checker`, and SOS services. These events can be shown in-app, cached locally, and then synchronized outward when a network path is available. The app also contains multiple fallback channels for SOS communication, reflecting the project’s fail-safe design.

4. **Authority backend as system hub**
   `authority/backend/` is the core server. It is organized in a classic **routes → controllers → services → models** layout, with middleware around auth, validation, sanitization, rate limiting, audit logging, and error handling. This is the main boundary where tourist and authority clients meet shared business rules.

5. **Backend data and persistence layer**
   The backend uses **PostgreSQL** for operational data (`schema.sql`, `db.js`, models for tourists, GPS, geofences, SOS, blockchain, authority). There is also Firebase integration (`firebase.js`), likely for identity/notification-related services. The `uploads/` directory suggests file-backed artifacts such as media or documents are also handled by the API.

6. **Real-time tracking and alert dissemination**
   The backend includes a dedicated **WebSocket server** (`src/websocket/wsServer.js`, `wsEvents.js`) alongside REST endpoints. This is the real-time path for tracking updates, alerts, and incident state changes from the backend to authority UIs, and likely for pushing urgent state transitions faster than polling.

7. **Geofence and tracking subsystem**
   Geofencing and location tracking are first-class server domains in both clients and backend. The backend has separate controllers, services, and models for geofences and tracking, indicating that geofence rules are enforced centrally while the mobile app also performs local checks for responsiveness and offline behavior.

8. **SOS escalation pipeline**
   The SOS path is its own subsystem on both sides: the tourist app can initiate alerts through multiple local mechanisms, while the backend coordinates escalation through `sosController`, `sosService`, and `escalationService`. This suggests a layered incident-response model: detect locally, transmit to backend, fan out to authority consumers, and optionally escalate further based on severity or failure of a channel.

9. **Blockchain identity layer**
   `authority/blockchain/` contains Hardhat/Solidity contracts and deploy scripts for a tamper-resistant digital ID layer. The backend has blockchain-specific controllers, services, and models, and the tourist app has a blockchain feature with a digital ID screen. Architecturally, blockchain is used as a trust anchor for tourist identity rather than as the primary transactional store.

10. **AI assistance subsystem**
   Both the backend and tourist app include AI-related modules. The backend exposes AI routes/controllers/services and ships an `emergency_knowledge_base.json`, while the mobile app has an AI intent classifier, prompt builder, Ollama client, and notifier state. This implies an assistant-style experience for safety guidance, with local/edge inference or prompting on the client and backend coordination for richer responses.

11. **Authority dashboards**
   There are two React dashboard surfaces in the repo: `authority/dashboard/` and `travelsure-dashboard/`. Both consume backend data, but `travelsure-dashboard` is the more feature-rich control room with alerts, analytics, geofences, tourists, maps, RBAC, and WebSocket hooks. These dashboards are the operational view over the same backend event stream.

12. **Contracts and integration boundaries**
   The presence of `api-contract.json`, `authority/api-contract.json`, and `tourist/api-contract-tourist.json` indicates the API surface is explicitly documented for different clients. That separation matters: the tourist app and authority dashboards likely consume different slices of the backend contract, even though they share the same core services.

13. **Operational/deployment layer**
   `docker-compose.yml` is the local environment orchestrator for shared services such as the database and likely other infrastructure dependencies. The backend also has Railway deployment metadata, while the dashboards include Vite/Vercel configuration. So the repo is designed for independent deployment of clients and backend, with shared contracts keeping them aligned.

Main entry points: [`authority/backend/src/index.ts`](https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/index.ts) (API server), [`tourist/lib/features/tourist/presentation/screens/dashboard_shell_screen.dart`](https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/tourist/presentation/screens/dashboard_shell_screen.dart) (Tourist shell), [`travelsure-dashboard/src/hooks/useWebSocket.ts`](https://github.com/ajstarks117/edi/blob/ajinkya/travelsure-dashboard/src/hooks/useWebSocket.ts) (Live feed), [`authority/dashboard/src/App.tsx`](https://github.com/ajstarks117/edi/blob/ajinkya/authority/dashboard/src/App.tsx) (Dashboard shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tourist["Tourist app"]
  node_tourist_main["TravelTrek app<br/>Flutter entry<br/>[main.dart]"]
  node_tourist_router["App router<br/>Navigation<br/>[app_router.dart]"]
  node_tourist_cache[("Local store<br/>Offline persistence<br/>[hive_service.dart]")]
  node_tourist_auth["Login flow<br/>Auth UI<br/>[login_screen.dart]"]
  node_tourist_shell["Tourist shell<br/>Home navigation"]
  node_tourist_tracking["Background track<br/>Location service"]
  node_tourist_geofence["Geofence watch<br/>Safety rule engine"]
  node_tourist_sos["SOS service<br/>Fail-safe alerting<br/>[sos_service.dart]"]
  node_tourist_ai["Safety AI<br/>Assistant UI<br/>[ai_notifier.dart]"]
  node_tourist_id["Digital ID<br/>Blockchain UI"]
end

subgraph group_backend["Authority backend"]
  node_backend_entry["API server<br/>Express entry<br/>[index.ts]"]
  node_backend_auth["Auth API<br/>Routes<br/>[auth.routes.js]"]
  node_backend_geo["Geofence API<br/>Routes<br/>[geofence.routes.js]"]
  node_backend_sos["SOS API<br/>Routes<br/>[sos.routes.js]"]
  node_backend_track["Tracking API<br/>Routes<br/>[tracking.routes.js]"]
  node_backend_ai["AI API<br/>Routes<br/>[ai.routes.js]"]
  node_backend_sosctl["SOS controller<br/>[sosController.js]"]
  node_backend_escalation["Escalation"]
  node_backend_ws(("WebSocket hub<br/>Realtime server<br/>[wsServer.js]"))
  node_backend_db[("Postgres<br/>Persistence<br/>[db.js]")]
  node_backend_firebase["Firebase<br/>Integration<br/>[firebase.js]"]
  node_backend_blockchain["Blockchain API<br/>Controller"]
end

subgraph group_dash["Authority dashboards"]
  node_dash_app["Authority UI<br/>React entry<br/>[main.tsx]"]
  node_dash_layout["Dashboard shell<br/>Layout<br/>[App.tsx]"]
  node_dash_ws["Live feed<br/>WebSocket client<br/>[useWebSocket.ts]"]
  node_dash_alerts["Alerts<br/>Ops page<br/>[Alerts.tsx]"]
  node_dash_map["Map view<br/>Ops page<br/>[Map.tsx]"]
  node_dash_analytics["Analytics<br/>Ops page<br/>[Analytics.tsx]"]
  node_dash_tourists["Tourists<br/>Ops page<br/>[Tourists.tsx]"]
end

subgraph group_chain["Blockchain"]
end

node_tourist_main -->|"bootstraps"| node_tourist_router
node_tourist_router -->|"navigates"| node_tourist_shell
node_tourist_auth -->|"stores"| node_tourist_cache
node_tourist_shell -->|"uses"| node_tourist_tracking
node_tourist_shell -->|"monitors"| node_tourist_geofence
node_tourist_shell -->|"raises"| node_tourist_sos
node_tourist_shell -->|"assists"| node_tourist_ai
node_tourist_shell -->|"shows"| node_tourist_id
node_tourist_tracking -->|"buffers"| node_tourist_cache
node_tourist_geofence -->|"records"| node_tourist_cache
node_tourist_sos -->|"falls back"| node_tourist_cache
node_backend_entry -->|"serves"| node_backend_auth
node_backend_entry -->|"serves"| node_backend_geo
node_backend_entry -->|"serves"| node_backend_sos
node_backend_entry -->|"serves"| node_backend_track
node_backend_entry -->|"serves"| node_backend_ai
node_backend_sos -->|"delegates"| node_backend_sosctl
node_backend_sosctl -->|"escalates"| node_backend_escalation
node_backend_sosctl -->|"persists"| node_backend_db
node_backend_track -->|"reads/writes"| node_backend_db
node_backend_geo -->|"reads/writes"| node_backend_db
node_backend_ai -->|"reads/writes"| node_backend_db
node_backend_entry -->|"publishes"| node_backend_ws
node_backend_entry -->|"integrates"| node_backend_firebase
node_backend_entry -->|"serves"| node_backend_blockchain
node_backend_sos -->|"streams"| node_dash_ws
node_backend_track -->|"streams"| node_dash_ws
node_backend_ws -->|"consumed by"| node_dash_ws
node_dash_app -->|"composes"| node_dash_layout
node_dash_layout -->|"routes"| node_dash_alerts
node_dash_layout -->|"routes"| node_dash_map
node_dash_layout -->|"routes"| node_dash_analytics
node_dash_layout -->|"routes"| node_dash_tourists
node_dash_ws -->|"feeds"| node_dash_alerts
node_dash_ws -->|"feeds"| node_dash_map
node_dash_ws -->|"feeds"| node_dash_tourists
node_backend_blockchain -->|"verifies"| node_tourist_id

click node_tourist_main "https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/main.dart"
click node_tourist_router "https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/router/app_router.dart"
click node_tourist_cache "https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/core/services/hive_service.dart"
click node_tourist_auth "https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/auth/presentation/screens/login_screen.dart"
click node_tourist_shell "https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/tourist/presentation/screens/dashboard_shell_screen.dart"
click node_tourist_tracking "https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/safety/services/background_tracking.dart"
click node_tourist_geofence "https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/geofence/geofence_checker.dart"
click node_tourist_sos "https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/sos/sos_service.dart"
click node_tourist_ai "https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/ai/ai_notifier.dart"
click node_tourist_id "https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/blockchain/presentation/screens/my_digital_id_screen.dart"
click node_backend_entry "https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/index.ts"
click node_backend_auth "https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/routes/auth.routes.js"
click node_backend_geo "https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/routes/geofence.routes.js"
click node_backend_sos "https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/routes/sos.routes.js"
click node_backend_track "https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/routes/tracking.routes.js"
click node_backend_ai "https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/routes/ai.routes.js"
click node_backend_sosctl "https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/controllers/sosController.js"
click node_backend_escalation "https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/services/escalationService.js"
click node_backend_ws "https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/websocket/wsServer.js"
click node_backend_db "https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/config/db.js"
click node_backend_firebase "https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/config/firebase.js"
click node_backend_blockchain "https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/controllers/blockchainController.js"
click node_dash_app "https://github.com/ajstarks117/edi/blob/ajinkya/authority/dashboard/src/main.tsx"
click node_dash_layout "https://github.com/ajstarks117/edi/blob/ajinkya/authority/dashboard/src/App.tsx"
click node_dash_ws "https://github.com/ajstarks117/edi/blob/ajinkya/travelsure-dashboard/src/hooks/useWebSocket.ts"
click node_dash_alerts "https://github.com/ajstarks117/edi/blob/ajinkya/travelsure-dashboard/src/pages/Alerts.tsx"
click node_dash_map "https://github.com/ajstarks117/edi/blob/ajinkya/travelsure-dashboard/src/pages/Map.tsx"
click node_dash_analytics "https://github.com/ajstarks117/edi/blob/ajinkya/travelsure-dashboard/src/pages/Analytics.tsx"
click node_dash_tourists "https://github.com/ajstarks117/edi/blob/ajinkya/travelsure-dashboard/src/pages/Tourists.tsx"

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_tourist_main,node_tourist_router,node_tourist_cache,node_tourist_auth,node_tourist_shell,node_tourist_tracking,node_tourist_geofence,node_tourist_sos,node_tourist_ai,node_tourist_id toneBlue
class node_backend_entry,node_backend_auth,node_backend_geo,node_backend_sos,node_backend_track,node_backend_ai,node_backend_sosctl,node_backend_escalation,node_backend_ws,node_backend_db,node_backend_firebase,node_backend_blockchain toneAmber
class node_dash_app,node_dash_layout,node_dash_ws,node_dash_alerts,node_dash_map,node_dash_analytics,node_dash_tourists toneMint
```

## Components

### Tourist app

Flutter offline-first safety client

- [TravelTrek app](https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/main.dart): Flutter entry · Mobile shell for the tourist client. · `tourist/lib/main.dart`
- [App router](https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/router/app_router.dart): Navigation · Routes between the app's main tourist and safety screens. · `tourist/lib/router/app_router.dart`
- [Local store](https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/core/services/hive_service.dart): Offline persistence · Hive-backed storage used to keep the app usable offline. · `tourist/lib/core/services/hive_service.dart`
- [Login flow](https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/auth/presentation/screens/login_screen.dart): Auth UI · Tourist login, OTP, and profile setup entry point. · `tourist/lib/features/auth/presentation/screens/login_screen.dart`
- [Tourist shell](https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/tourist/presentation/screens/dashboard_shell_screen.dart): Home navigation · Main in-app hub for trip, map, SOS, and settings screens. · `tourist/lib/features/tourist/presentation/screens/dashboard_shell_screen.dart`
- [Background track](https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/safety/services/background_tracking.dart): Location service · Collects and maintains location events while the app is active or backgrounded. · `tourist/lib/features/safety/services/background_tracking.dart`
- [Geofence watch](https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/geofence/geofence_checker.dart): Safety rule engine · Runs local geofence checks and alert handling for responsiveness offline. · `tourist/lib/features/geofence/geofence_checker.dart`
- [SOS service](https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/sos/sos_service.dart): Fail-safe alerting · Coordinates SOS initiation across the app's fallback communication paths. · `tourist/lib/features/sos/sos_service.dart`
- [Safety AI](https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/ai/ai_notifier.dart): Assistant UI · Client-side AI notifier and prompt flow for safety guidance. · `tourist/lib/features/ai/ai_notifier.dart`
- [Digital ID](https://github.com/ajstarks117/edi/blob/ajinkya/tourist/lib/features/blockchain/presentation/screens/my_digital_id_screen.dart): Blockchain UI · Tourist-facing digital identity and blockchain record view. · `tourist/lib/features/blockchain/presentation/screens/my_digital_id_screen.dart`

### Authority backend

Node/Express integration and business rules

- [API server](https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/index.ts): Express entry · Backend composition root and HTTP bootstrap. · `authority/backend/src/index.ts`
- [Auth API](https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/routes/auth.routes.js): Routes · Authentication endpoints for tourists and authorities. · `authority/backend/src/routes/auth.routes.js`
- [Geofence API](https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/routes/geofence.routes.js): Routes · Central geofence rule and area management endpoints. · `authority/backend/src/routes/geofence.routes.js`
- [SOS API](https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/routes/sos.routes.js): Routes · Incident intake and escalation endpoints. · `authority/backend/src/routes/sos.routes.js`
- [Tracking API](https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/routes/tracking.routes.js): Routes · Location ingestion and tracking endpoints. · `authority/backend/src/routes/tracking.routes.js`
- [AI API](https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/routes/ai.routes.js): Routes · Safety assistant endpoints backed by the emergency knowledge base. · `authority/backend/src/routes/ai.routes.js`
- [SOS controller](https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/controllers/sosController.js): Controller · Coordinates SOS handling and escalation decisions. · `authority/backend/src/controllers/sosController.js`
- [Escalation](https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/services/escalationService.js): Service · Service layer for incident escalation logic. · `authority/backend/src/services/escalationService.js`
- [WebSocket hub](https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/websocket/wsServer.js): Realtime server · Pushes alerts, tracking updates, and incident state changes to dashboards. · `authority/backend/src/websocket/wsServer.js`
- [Postgres](https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/config/db.js): Persistence · Operational database and schema-backed storage. · `authority/backend/src/config/db.js`
- [Firebase](https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/config/firebase.js): Integration · External identity or notification integration. · `authority/backend/src/config/firebase.js`
- [Blockchain API](https://github.com/ajstarks117/edi/blob/ajinkya/authority/backend/src/controllers/blockchainController.js): Controller · Backend side of digital ID and trust-anchor operations. · `authority/backend/src/controllers/blockchainController.js`

### Authority dashboards

React operational control rooms

- [Authority UI](https://github.com/ajstarks117/edi/blob/ajinkya/authority/dashboard/src/main.tsx): React entry · Base authority dashboard application shell. · `authority/dashboard/src/main.tsx`
- [Dashboard shell](https://github.com/ajstarks117/edi/blob/ajinkya/authority/dashboard/src/App.tsx): Layout · Top-level React composition for authority views. · `authority/dashboard/src/App.tsx`
- [Live feed](https://github.com/ajstarks117/edi/blob/ajinkya/travelsure-dashboard/src/hooks/useWebSocket.ts): WebSocket client · Consumes live backend events for the control room. · `travelsure-dashboard/src/hooks/useWebSocket.ts`
- [Alerts](https://github.com/ajstarks117/edi/blob/ajinkya/travelsure-dashboard/src/pages/Alerts.tsx): Ops page · Incident and alert management view. · `travelsure-dashboard/src/pages/Alerts.tsx`
- [Map view](https://github.com/ajstarks117/edi/blob/ajinkya/travelsure-dashboard/src/pages/Map.tsx): Ops page · Live map and tracking view for authorities. · `travelsure-dashboard/src/pages/Map.tsx`
- [Analytics](https://github.com/ajstarks117/edi/blob/ajinkya/travelsure-dashboard/src/pages/Analytics.tsx): Ops page · Trend and reporting view over safety activity. · `travelsure-dashboard/src/pages/Analytics.tsx`
- [Tourists](https://github.com/ajstarks117/edi/blob/ajinkya/travelsure-dashboard/src/pages/Tourists.tsx): Ops page · Authority roster and tourist oversight view. · `travelsure-dashboard/src/pages/Tourists.tsx`

## Connections

- TravelTrek app → App router: bootstraps · The Flutter app starts by loading its router.
- App router → Tourist shell: navigates · Router sends the user into the main tourist shell.
- Login flow → Local store: stores · Auth and profile state is cached locally for offline use.
- Tourist shell → Background track: uses · Main shell exposes background location tracking.
- Tourist shell → Geofence watch: monitors · The app watches local geofence state for immediate alerts.
- Tourist shell → SOS service: raises · SOS can be triggered from the primary tourist experience.
- Tourist shell → Safety AI: assists · The shell surfaces the safety assistant experience.
- Tourist shell → Digital ID: shows · Digital ID is part of the tourist-facing feature set.
- Background track → Local store: buffers · Location events are cached locally before sync.
- Geofence watch → Local store: records · Geofence alerts and checks are persisted locally.
- SOS service → Local store: falls back · SOS state can be retained when connectivity is poor.
- API server → Auth API: serves · The server exposes auth routes from the main app.
- API server → Geofence API: serves · The server exposes geofence management routes.
- API server → SOS API: serves · The server exposes SOS incident routes.
- API server → Tracking API: serves · The server exposes tracking routes.
- API server → AI API: serves · The server exposes AI assistant routes.
- SOS API → SOS controller: delegates · SOS route handling is implemented by the controller.
- SOS controller → Escalation: escalates · Controller hands off high-severity incidents to escalation logic.
- SOS controller → Postgres: persists · Incident state is stored in the operational database.
- Tracking API → Postgres: reads/writes · Tracking data is persisted and queried from Postgres.
- Geofence API → Postgres: reads/writes · Geofence definitions and rules are stored centrally.
- AI API → Postgres: reads/writes · AI-related state and records use the backend data store.
- API server → WebSocket hub: publishes · The API server exposes realtime event delivery.
- API server → Firebase: integrates · The backend connects to Firebase for external services.
- API server → Blockchain API: serves · Blockchain-related API operations are routed through the server.
- SOS API → Live feed: streams · SOS and incident updates are pushed into authority UIs.
- Tracking API → Live feed: streams · Tracking updates feed the live dashboard event stream.
- WebSocket hub → Live feed: consumed by · Dashboards subscribe to the backend realtime hub.
- Authority UI → Dashboard shell: composes · The React app is organized around a dashboard shell.
- Dashboard shell → Alerts: routes · Layout exposes the alerts page.
- Dashboard shell → Map view: routes · Layout exposes the live map page.
- Dashboard shell → Analytics: routes · Layout exposes analytics views.
- Dashboard shell → Tourists: routes · Layout exposes the tourist oversight page.
- Live feed → Alerts: feeds · Live events update the alert management page.
- Live feed → Map view: feeds · Live events update the map page.
- Live feed → Tourists: feeds · Live events update tourist status views.
- Blockchain API → Digital ID: verifies · Digital ID operations connect backend trust to the tourist UI.
