# rakin-afk/fire_alarm_silicon_mlops_mega_architecture architecture

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

- Interactive diagram: https://gitdiagram.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture
- Repository: https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture

## Overview

SmartShield AI is a building-safety dashboard paired with a Verilog hazard-detection core. The main user-facing flow gathers zone telemetry and CCTV images, derives hazard and occupant status, computes evacuation routes, and presents diagnostics, trends, and voice guidance; critical alerts can also be sent to Discord. The README documents a hardware-in-the-loop relationship, but the sampled application excerpts do not show how the Python dashboard communicates with the RTL. The verification testbench and CI are omitted as development infrastructure.

Main entry points: [`src/app.py`](https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py) (Streamlit Dashboard), [`src/discord_service.py`](https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/discord_service.py) (Discord Alert Service), [`hardware/fire_alarm.v`](https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/hardware/fire_alarm.v) (Verilog Hazard Core)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Safety Dashboard"]
  node_app["Streamlit Dashboard<br/>[app.py]"]
  node_telemetry["Zone Telemetry<br/>[app.py]"]
  node_trends["Trend Analytics<br/>[app.py]"]
end

subgraph group_analysis["Threat Analysis"]
  node_vision["CCTV Vision<br/>[app.py]"]
  node_hazards["Hazard Diagnostics<br/>[app.py]"]
end

subgraph group_response["Emergency Response"]
  node_routing["Evacuation Routing<br/>[app.py]"]
  node_voice["Voice Guidance<br/>[app.py]"]
  node_discord_service["Discord Alert Service<br/>[discord_service.py]"]
end

subgraph group_hardware["Safety Hardware"]
  node_rtl["Verilog Hazard Core<br/>[fire_alarm.v]"]
end

node_operator(("Building Operator"))
node_discord(("Discord Webhook"))

node_operator -->|"uses"| node_app
node_app -->|"collects inputs"| node_telemetry
node_app -->|"processes images"| node_vision
node_app -->|"derives status"| node_hazards
node_app -->|"calculates routes"| node_routing
node_app -->|"plots trends"| node_trends
node_app -->|"announces guidance"| node_voice
node_app -->|"sends alerts"| node_discord_service
node_discord_service -->|"posts webhook"| node_discord
node_rtl -.->|"HIL integration"| node_app

click node_app "https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py"
click node_telemetry "https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py"
click node_vision "https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py"
click node_hazards "https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py"
click node_routing "https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py"
click node_trends "https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py"
click node_voice "https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py"
click node_discord_service "https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/discord_service.py"
click node_rtl "https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/hardware/fire_alarm.v"

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_telemetry,node_trends toneBlue
class node_vision,node_hazards toneAmber
class node_routing,node_voice,node_discord_service,node_discord toneMint
class node_rtl toneRose
class node_operator toneIndigo
```

## Components

### Safety Dashboard

- [Streamlit Dashboard](https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py): `src/app.py`
- [Zone Telemetry](https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py): `src/app.py`
- [Trend Analytics](https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py): `src/app.py`

### Threat Analysis

- [CCTV Vision](https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py): `src/app.py`
- [Hazard Diagnostics](https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py): `src/app.py`

### Emergency Response

- [Evacuation Routing](https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py): `src/app.py`
- [Voice Guidance](https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/app.py): `src/app.py`
- [Discord Alert Service](https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/src/discord_service.py): `src/discord_service.py`

### Safety Hardware

- [Verilog Hazard Core](https://github.com/rakin-afk/fire_alarm_silicon_mlops_mega_architecture/blob/main/hardware/fire_alarm.v): `hardware/fire_alarm.v`

### Other components

- **Building Operator**
- **Discord Webhook**

## Connections

- Building Operator → Streamlit Dashboard: uses (evidence: `README.md`)
- Streamlit Dashboard → Zone Telemetry: collects inputs (evidence: `README.md`)
- Streamlit Dashboard → CCTV Vision: processes images (evidence: `src/app.py`)
- Streamlit Dashboard → Hazard Diagnostics: derives status (evidence: `src/app.py`)
- Streamlit Dashboard → Evacuation Routing: calculates routes (evidence: `README.md`)
- Streamlit Dashboard → Trend Analytics: plots trends (evidence: `README.md`)
- Streamlit Dashboard → Voice Guidance: announces guidance (evidence: `src/app.py`)
- Streamlit Dashboard → Discord Alert Service: sends alerts (evidence: `src/app.py`)
- Discord Alert Service → Discord Webhook: posts webhook (evidence: `src/discord_service.py`)
- Verilog Hazard Core → Streamlit Dashboard: HIL integration (evidence: `README.md`)
