# naikaayush/employee-emergency architecture

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

- Interactive diagram: https://gitdiagram.com/naikaayush/employee-emergency
- Repository: https://github.com/naikaayush/employee-emergency

## Overview

1. **Overall shape**
   - This repo is a three-part system for emergency evacuation: a client app, a Python computation/API backend, and a Node-based realtime server.
   - The client is the primary product surface; the two servers support map processing, routing, positioning, and realtime coordination.

2. **Client application boundary**
   - `orange-ecc` is an Ionic + Angular app that targets both mobile and web.
   - It is packaged for mobile with Capacitor/Cordova-style mobile configuration and includes an Android APK artifact, Firebase config, and platform resources for Android/iOS.

3. **Role-based client subsystems**
   - The app is split into separate Angular feature areas for **Employee**, **ERT**, and **Command Center**, each with its own module and route tree.
   - This is a strong architectural boundary: each role gets its own login/auth flow, tab shell, and task-specific views.

4. **Employee experience**
   - The Employee area includes auth screens plus tabs for chat, map, SOS, AR, and a chatbot.
   - Supporting client-side services include trilateration, pathfinding, and websocket communication, showing that the device participates in position estimation and navigation rather than just rendering UI.

5. **ERT experience**
   - The ERT area mirrors the employee structure with auth plus tabs for chat, map, status, and AR.
   - It also has auth, trilateration, pathfinding, and websocket services, indicating it consumes the same realtime location and routing backbone but with different operational views.

6. **Command Center experience**
   - The Command Center area is the administrative/control-plane UI.
   - Its main tabs are overview, approve, emergency, map, and setup, plus a dedicated upload-map component, so this area is where maps are onboarded and emergency operations are coordinated.

7. **Simulation subsystem**
   - `command-center-simulation` is a separate client feature used to test scenarios.
   - It has its own map and emergency views, which suggests a self-contained sandbox for exercising the evacuation model without affecting live operations.

8. **Shared client services and models**
   - The client contains shared business logic for authentication, websocket transport, trilateration, and shortest-path navigation.
   - The employee map feature also defines explicit data models such as points, markers, map info, and choice info, which are likely the domain objects passed between map rendering, positioning, and routing.

9. **Python backend: command-center-api**
   - `server/command-center-api` is the computational backend, implemented in Python.
   - Its submodules show the main responsibilities clearly: image/map processing, beacon estimation, pathfinding, simulation, and shared data handling.
   - This backend is the main algorithmic engine for turning uploaded floor plans into navigable graph data and beacon layouts.

10. **Realtime backend: ws-api**
    - `server/ws-api` is a separate Node/Express websocket service.
    - It likely carries live presence/location/chat events between employees, ERT, and the command center, distinct from the Python API that does heavier processing.

11. **Data flow through the system**
    - A typical flow is: command center uploads a map image → Python backend extracts paths and beacon placements → routing and simulation data become available to the client → devices use trilateration and websocket updates to render live positions and navigation.
    - Realtime chat and live map views depend on the websocket layer, while scenario setup and route computation depend on the Python backend.

12. **External services and infrastructure**
    - Firebase Realtime Database is part of the architecture and is used alongside websockets for realtime synchronization.
    - `google-services.json` indicates Android/Firebase integration on the client side.
    - BLE beacons and WiFi APs are physical inputs to the indoor-positioning workflow; they are not just simulated data.

13. **Non-runtime / supporting assets**
    - `analysis` contains offline beacon-data exploration notebooks and JSON data, which are useful for research but not part of the production runtime.
    - `screenshots` is documentation only.

14. **How to draw the diagram**
    - Model the system as one client tier with three role-based frontends, one Python computation service, one Node websocket service, and Firebase as a realtime datastore/sync layer.
    - Show the command center as the source of maps and operational commands, employees/ERT as realtime mobile consumers, and the simulation module as a separate test path that reuses the same backend capabilities.

Main entry points: [`server/command-center-api/app/app.py`](https://github.com/naikaayush/employee-emergency/blob/main/server/command-center-api/app/app.py) (Command API), [`orange-ecc/src/app/app.module.ts`](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/app.module.ts) (App shell), [`server/ws-api/index.js`](https://github.com/naikaayush/employee-emergency/blob/main/server/ws-api/index.js) (WS API), [`orange-ecc/src/app/employee/employee.module.ts`](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/employee/employee.module.ts) (Employee)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client app"]
  node_app_shell["App shell<br/>ionic/angular root<br/>[app.module.ts]"]
  node_home["Home<br/>landing/auth<br/>[home.module.ts]"]
  node_employee["Employee<br/>role app<br/>[employee.module.ts]"]
  node_employee_auth["Emp auth<br/>signin/signup/verify"]
  node_employee_tabs["Emp tabs<br/>tab shell"]
  node_employee_features["Emp features<br/>chat/map/sos/ar/chatbot"]
  node_employee_services["Emp services<br/>trilateration/pathfinding/ws"]
  node_ert["ERT<br/>role app<br/>[ert.module.ts]"]
  node_ert_auth["ERT auth<br/>signin/signup/verify"]
  node_ert_tabs["ERT tabs<br/>tab shell<br/>[ert-tabs.module.ts]"]
  node_ert_features["ERT features<br/>chat/map/status/ar<br/>[ert-chat.page.ts]"]
  node_ert_services["ERT services<br/>auth/trilateration/pathfinding/ws"]
  node_command_center["Command Center<br/>control app"]
  node_cc_auth["CC auth<br/>login"]
  node_cc_tabs["CC tabs<br/>tab shell"]
  node_cc_features["CC features<br/>overview/approve/emergency/map/setup"]
  node_cc_setup["Map setup<br/>upload-map"]
  node_sim["Simulation<br/>scenario app"]
  node_sim_tabs["Sim tabs<br/>tab shell"]
  node_sim_features["Sim features<br/>map/emergency"]
  node_client_models["Map models<br/>point/marker/map-info<br/>[map-info.ts]"]
end

subgraph group_backend["Server backends"]
  node_cc_api["Command API<br/>python API<br/>[app.py]"]
  node_processing["Processing<br/>[map.py]"]
  node_beacon_estimator["Beacon estimator<br/>ble layout"]
  node_pathfinder["Pathfinder<br/>routing engine<br/>[pathfinder.py]"]
  node_simulator_backend["Backend sim<br/>scenario simulation<br/>[simulator.py]"]
  node_data_store["Data layer<br/>shared data<br/>[data.py]"]
  node_ws_api["WS API<br/>node realtime server<br/>[index.js]"]
end

subgraph group_infra["External inputs"]
  node_firebase_db[("Firebase DB<br/>realtime datastore")]
  node_physical_inputs{{"Beacons/WiFi<br/>indoor signals"}}
end

subgraph group_support["Supporting assets"]
  node_analysis_assets["Analysis<br/>offline research"]
end

node_app_shell -->|"routes"| node_home
node_app_shell -->|"feature route"| node_employee
node_app_shell -->|"feature route"| node_ert
node_app_shell -->|"feature route"| node_command_center
node_app_shell -->|"feature route"| node_sim
node_employee -->|"auth"| node_employee_auth
node_employee -->|"shell"| node_employee_tabs
node_employee_tabs -->|"views"| node_employee_features
node_employee_features -->|"uses"| node_employee_services
node_employee_features -->|"binds"| node_client_models
node_ert -->|"auth"| node_ert_auth
node_ert -->|"shell"| node_ert_tabs
node_ert_tabs -->|"views"| node_ert_features
node_ert_features -->|"uses"| node_ert_services
node_command_center -->|"auth"| node_cc_auth
node_command_center -->|"shell"| node_cc_tabs
node_cc_tabs -->|"views"| node_cc_features
node_cc_features -->|"setup"| node_cc_setup
node_cc_setup -->|"uploads to"| node_cc_api
node_sim -->|"shell"| node_sim_tabs
node_sim_tabs -->|"views"| node_sim_features
node_sim_features -->|"drives"| node_simulator_backend
node_cc_api -->|"contains"| node_processing
node_cc_api -->|"contains"| node_beacon_estimator
node_cc_api -->|"contains"| node_pathfinder
node_cc_api -->|"contains"| node_simulator_backend
node_cc_api -->|"shares data"| node_data_store
node_processing -.->|"derives from"| node_physical_inputs
node_beacon_estimator -.->|"derives from"| node_physical_inputs
node_pathfinder -.->|"feeds"| node_client_models
node_ws_api -->|"syncs"| node_firebase_db
node_employee_services -->|"connects"| node_ws_api
node_ert_services -->|"connects"| node_ws_api
node_cc_features -->|"observes"| node_ws_api
node_analysis_assets -.->|"informs"| node_beacon_estimator

click node_app_shell "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/app.module.ts"
click node_home "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/home/home.module.ts"
click node_employee "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/employee/employee.module.ts"
click node_employee_auth "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/employee/views/employee-auth/employee-sign-in/employee-sign-in.component.ts"
click node_employee_tabs "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/employee/views/employee-tabs/employee-tabs.module.ts"
click node_employee_features "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/employee/views/tabs/employee-chat/employee-chat.page.ts"
click node_employee_services "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/employee/services/websocket/websocket.service.ts"
click node_ert "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/ert/ert.module.ts"
click node_ert_auth "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/ert/views/ert-auth/ert-sign-in/ert-sign-in.component.ts"
click node_ert_tabs "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/ert/views/ert-tabs/ert-tabs.module.ts"
click node_ert_features "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/ert/views/tabs/ert-chat/ert-chat.page.ts"
click node_ert_services "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/ert/services/websocket/websocket.service.ts"
click node_command_center "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center/command-center.module.ts"
click node_cc_auth "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center/views/command-center-auth/command-center-login/command-center-login.component.ts"
click node_cc_tabs "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center/views/command-center-tabs/command-center-tabs.module.ts"
click node_cc_features "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center/views/tabs/command-center-overview/command-center-overview.page.ts"
click node_cc_setup "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center/views/tabs/command-center-setup/command-center-upload-map/command-center-upload-map.component.ts"
click node_sim "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center-simulation/command-center-simulation.module.ts"
click node_sim_tabs "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center-simulation/views/command-center-simulation-tabs/command-center-simulation-tabs.module.ts"
click node_sim_features "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center-simulation/views/tabs/command-center-simulation-map/command-center-simulation-map.page.ts"
click node_client_models "https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/employee/views/tabs/employee-map/models/map-info.ts"
click node_cc_api "https://github.com/naikaayush/employee-emergency/blob/main/server/command-center-api/app/app.py"
click node_processing "https://github.com/naikaayush/employee-emergency/blob/main/server/command-center-api/app/processing/map.py"
click node_beacon_estimator "https://github.com/naikaayush/employee-emergency/blob/main/server/command-center-api/app/beacon_estimator/beacon_estimator.py"
click node_pathfinder "https://github.com/naikaayush/employee-emergency/blob/main/server/command-center-api/app/pathfinder/pathfinder.py"
click node_simulator_backend "https://github.com/naikaayush/employee-emergency/blob/main/server/command-center-api/app/simulator/simulator.py"
click node_data_store "https://github.com/naikaayush/employee-emergency/blob/main/server/command-center-api/app/data/data.py"
click node_ws_api "https://github.com/naikaayush/employee-emergency/blob/main/server/ws-api/index.js"
click node_analysis_assets "https://github.com/naikaayush/employee-emergency/blob/main/analysis/beacons_data_analysis.ipynb"

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_shell,node_home,node_employee,node_employee_auth,node_employee_tabs,node_employee_features,node_employee_services,node_ert,node_ert_auth,node_ert_tabs,node_ert_features,node_ert_services,node_command_center,node_cc_auth,node_cc_tabs,node_cc_features,node_cc_setup,node_sim,node_sim_tabs,node_sim_features,node_client_models toneBlue
class node_cc_api,node_processing,node_beacon_estimator,node_pathfinder,node_simulator_backend,node_data_store,node_ws_api toneAmber
class node_firebase_db,node_physical_inputs toneMint
class node_analysis_assets toneRose
```

## Components

### Client app

Ionic/Angular front-end with role-based experiences and mobile packaging.

- [App shell](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/app.module.ts): ionic/angular root · Top-level Angular application wiring and global bootstrap. · `orange-ecc/src/app/app.module.ts`
- [Home](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/home/home.module.ts): landing/auth · Entry experience before role-specific access. · `orange-ecc/src/app/home/home.module.ts`
- [Employee](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/employee/employee.module.ts): role app · Employee-facing mobile/web experience. · `orange-ecc/src/app/employee/employee.module.ts`
- [Emp auth](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/employee/views/employee-auth/employee-sign-in/employee-sign-in.component.ts): signin/signup/verify · Employee onboarding and authentication flow. · `orange-ecc/src/app/employee/views/employee-auth/employee-sign-in/employee-sign-in.component.ts`
- [Emp tabs](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/employee/views/employee-tabs/employee-tabs.module.ts): tab shell · Employee tab navigation container. · `orange-ecc/src/app/employee/views/employee-tabs/employee-tabs.module.ts`
- [Emp features](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/employee/views/tabs/employee-chat/employee-chat.page.ts): chat/map/sos/ar/chatbot · Employee operational views for communication, navigation, SOS, AR, and assistant. · `orange-ecc/src/app/employee/views/tabs/employee-chat/employee-chat.page.ts`
- [Emp services](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/employee/services/websocket/websocket.service.ts): trilateration/pathfinding/ws · Shared client logic for indoor positioning, route computation, and realtime sync. · `orange-ecc/src/app/employee/services/websocket/websocket.service.ts`
- [ERT](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/ert/ert.module.ts): role app · Emergency response team experience. · `orange-ecc/src/app/ert/ert.module.ts`
- [ERT auth](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/ert/views/ert-auth/ert-sign-in/ert-sign-in.component.ts): signin/signup/verify · ERT authentication flow. · `orange-ecc/src/app/ert/views/ert-auth/ert-sign-in/ert-sign-in.component.ts`
- [ERT tabs](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/ert/views/ert-tabs/ert-tabs.module.ts): tab shell · ERT tab navigation container. · `orange-ecc/src/app/ert/views/ert-tabs/ert-tabs.module.ts`
- [ERT features](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/ert/views/tabs/ert-chat/ert-chat.page.ts): chat/map/status/ar · ERT operational views for coordination, map monitoring, and status. · `orange-ecc/src/app/ert/views/tabs/ert-chat/ert-chat.page.ts`
- [ERT services](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/ert/services/websocket/websocket.service.ts): auth/trilateration/pathfinding/ws · ERT-side shared logic for auth, positioning, routing, and realtime updates. · `orange-ecc/src/app/ert/services/websocket/websocket.service.ts`
- [Command Center](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center/command-center.module.ts): control app · Administrative and operational control-plane experience. · `orange-ecc/src/app/command-center/command-center.module.ts`
- [CC auth](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center/views/command-center-auth/command-center-login/command-center-login.component.ts): login · Command center login boundary. · `orange-ecc/src/app/command-center/views/command-center-auth/command-center-login/command-center-login.component.ts`
- [CC tabs](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center/views/command-center-tabs/command-center-tabs.module.ts): tab shell · Command center tab navigation container. · `orange-ecc/src/app/command-center/views/command-center-tabs/command-center-tabs.module.ts`
- [CC features](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center/views/tabs/command-center-overview/command-center-overview.page.ts): overview/approve/emergency/map/setup · Operational dashboards and workflows for map review and incident coordination. · `orange-ecc/src/app/command-center/views/tabs/command-center-overview/command-center-overview.page.ts`
- [Map setup](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center/views/tabs/command-center-setup/command-center-upload-map/command-center-upload-map.component.ts): upload-map · Map onboarding and setup workflow, including upload component and API integration. · `orange-ecc/src/app/command-center/views/tabs/command-center-setup/command-center-upload-map/command-center-upload-map.component.ts`
- [Simulation](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center-simulation/command-center-simulation.module.ts): scenario app · Standalone command-center simulation path for testing evacuation scenarios. · `orange-ecc/src/app/command-center-simulation/command-center-simulation.module.ts`
- [Sim tabs](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center-simulation/views/command-center-simulation-tabs/command-center-simulation-tabs.module.ts): tab shell · Simulation tab container. · `orange-ecc/src/app/command-center-simulation/views/command-center-simulation-tabs/command-center-simulation-tabs.module.ts`
- [Sim features](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/command-center-simulation/views/tabs/command-center-simulation-map/command-center-simulation-map.page.ts): map/emergency · Simulation views for map and emergency scenario exercise. · `orange-ecc/src/app/command-center-simulation/views/tabs/command-center-simulation-map/command-center-simulation-map.page.ts`
- [Map models](https://github.com/naikaayush/employee-emergency/blob/main/orange-ecc/src/app/employee/views/tabs/employee-map/models/map-info.ts): point/marker/map-info · Employee map domain objects used by rendering and navigation. · `orange-ecc/src/app/employee/views/tabs/employee-map/models/map-info.ts`

### Server backends

Python computation API and Node websocket service.

- [Command API](https://github.com/naikaayush/employee-emergency/blob/main/server/command-center-api/app/app.py): python API · Python backend entrypoint for map processing, pathfinding, beacon estimation, and simulation. · `server/command-center-api/app/app.py`
- [Processing](https://github.com/naikaayush/employee-emergency/blob/main/server/command-center-api/app/processing/map.py): map image processing · Floor-plan and map processing pipeline. · `server/command-center-api/app/processing/map.py`
- [Beacon estimator](https://github.com/naikaayush/employee-emergency/blob/main/server/command-center-api/app/beacon_estimator/beacon_estimator.py): ble layout · Beacon placement and estimation logic. · `server/command-center-api/app/beacon_estimator/beacon_estimator.py`
- [Pathfinder](https://github.com/naikaayush/employee-emergency/blob/main/server/command-center-api/app/pathfinder/pathfinder.py): routing engine · Backend route graph and path computation. · `server/command-center-api/app/pathfinder/pathfinder.py`
- [Backend sim](https://github.com/naikaayush/employee-emergency/blob/main/server/command-center-api/app/simulator/simulator.py): scenario simulation · Python-side evacuation simulation engine. · `server/command-center-api/app/simulator/simulator.py`
- [Data layer](https://github.com/naikaayush/employee-emergency/blob/main/server/command-center-api/app/data/data.py): shared data · Backend data handling and serialization support. · `server/command-center-api/app/data/data.py`
- [WS API](https://github.com/naikaayush/employee-emergency/blob/main/server/ws-api/index.js): node realtime server · Node/Express websocket service for live coordination and events. · `server/ws-api/index.js`

### External inputs

Realtime datastore and physical positioning inputs used by the system.

- **Firebase DB**: realtime datastore · External realtime synchronization layer used alongside websockets.
- **Beacons/WiFi**: indoor signals · Physical BLE beacon and WiFi AP inputs for positioning.

### Supporting assets

Offline analysis and documentation material.

- [Analysis](https://github.com/naikaayush/employee-emergency/blob/main/analysis/beacons_data_analysis.ipynb): offline research · Notebook-based beacon analysis and supporting data. · `analysis/beacons_data_analysis.ipynb`

## Connections

- App shell → Home: routes · Bootstrap lands in the home experience first.
- App shell → Employee: feature route · Registers the employee role application.
- App shell → ERT: feature route · Registers the ERT role application.
- App shell → Command Center: feature route · Registers the command center application.
- App shell → Simulation: feature route · Registers the simulation path.
- Employee → Emp auth: auth · Employee access begins with sign-in/up/verify.
- Employee → Emp tabs: shell · Employee tabs host the main experience.
- Emp tabs → Emp features: views · Tabs expose chat, map, SOS, AR, and chatbot.
- Emp features → Emp services: uses · UI consumes realtime, routing, and positioning services.
- Emp features → Map models: binds · Map views use shared domain models.
- ERT → ERT auth: auth · ERT access begins with sign-in/up/verify.
- ERT → ERT tabs: shell · ERT tabs host operational views.
- ERT tabs → ERT features: views · Tabs expose chat, map, status, and AR.
- ERT features → ERT services: uses · ERT UI consumes shared realtime and routing services.
- Command Center → CC auth: auth · Command center login gates the control plane.
- Command Center → CC tabs: shell · Tabs host administrative workflows.
- CC tabs → CC features: views · Overview, approval, emergency, map, and setup live here.
- CC features → Map setup: setup · Map onboarding is a dedicated control-center workflow.
- Map setup → Command API: uploads to · Uploaded map data is processed by the Python backend.
- Simulation → Sim tabs: shell · Simulation has its own navigation shell.
- Sim tabs → Sim features: views · Simulation exposes map and emergency scenarios.
- Sim features → Backend sim: drives · Simulation UI exercises the backend scenario engine.
- Command API → Processing: contains · Processing turns floor plans into navigable structures.
- Command API → Beacon estimator: contains · Backend estimates beacon placement/behavior.
- Command API → Pathfinder: contains · Backend computes evacuation paths.
- Command API → Backend sim: contains · Backend includes scenario simulation.
- Command API → Data layer: shares data · Backend uses shared data objects and serialization.
- Processing → Beacons/WiFi: derives from · Map processing is informed by physical indoor inputs.
- Beacon estimator → Beacons/WiFi: derives from · Beacon estimation uses BLE and WiFi signals.
- Pathfinder → Map models: feeds · Computed routes and map data are consumed by client map models.
- WS API → Firebase DB: syncs · Realtime state is coordinated through Firebase as well as websockets.
- Emp services → WS API: connects · Employee clients receive live updates through the websocket service.
- ERT services → WS API: connects · ERT clients receive live updates through the websocket service.
- CC features → WS API: observes · Control-center views consume live operational events.
- Analysis → Beacon estimator: informs · Offline research supports beacon-related computation.
