# vrbeirer/coldchain-warehouse-monitor architecture

> Architecture diagram of the GitHub repository vrbeirer/coldchain-warehouse-monitor, 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/vrbeirer/coldchain-warehouse-monitor
- Repository: https://github.com/vrbeirer/coldchain-warehouse-monitor

## Overview

PATIL Coldchain Intelligence generates deterministic warehouse data, validates exports, serves them through a read-only API, and presents operational and QA workflows in a React dashboard. The principal user flow is overview → zone telemetry → alarms → inspection/remediation follow-up, with Ground Truth / QA as a separate tab. Generator and API behavior are excerpted; dashboard screens and its API requests are only partially excerpted, so documented workflow links are attributed to the README and unsampled details are not inferred.

Main entry points: [`backend/main.py`](https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/backend/main.py) (Read-only API), [`frontend/src/App.tsx`](https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/frontend/src/App.tsx) (Warehouse overview), [`data-generator/generate.py`](https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/data-generator/generate.py) (Seeded generator), [`data-generator/output`](https://github.com/vrbeirer/coldchain-warehouse-monitor/tree/main/data-generator/output) (Generated exports)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generation["Data generation"]
  node_generator["Seeded generator<br/>[generate.py]"]
  node_config["Seed and targets<br/>[config.py]"]
  node_exports[("Generated exports")]
end

subgraph group_serving["API serving"]
  node_api["Read-only API<br/>[main.py]"]
end

subgraph group_operations["Operations dashboard"]
  node_frontend_entry["Dashboard entry<br/>[main.tsx]"]
  node_overview["Warehouse overview<br/>[App.tsx]"]
  node_zone["Zone telemetry<br/>[App.tsx]"]
  node_alarms["Alarm center<br/>[App.tsx]"]
  node_followup["Follow-up tracker<br/>[App.tsx]"]
end

subgraph group_quality["Quality review"]
  node_qa["Ground truth QA<br/>[App.tsx]"]
end

node_operator(("Warehouse operator"))

node_generator -->|"imports settings"| node_config
node_generator -->|"writes exports"| node_exports
node_exports -->|"reads dataset"| node_api
node_operator -->|"opens dashboard"| node_frontend_entry
node_frontend_entry -->|"renders app"| node_overview
node_overview -->|"fetches summary and warehouses"| node_api
node_zone -->|"requests zones and series"| node_api
node_alarms -->|"requests alarms"| node_api
node_followup -->|"requests inspections and remediations"| node_api
node_qa -->|"requests ground truth"| node_api
node_overview -->|"navigates"| node_zone
node_zone -->|"navigates"| node_alarms
node_alarms -->|"navigates"| node_followup
node_overview -->|"opens separate tab"| node_qa

click node_generator "https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/data-generator/generate.py"
click node_config "https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/data-generator/config.py"
click node_exports "https://github.com/vrbeirer/coldchain-warehouse-monitor/tree/main/data-generator/output"
click node_api "https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/backend/main.py"
click node_frontend_entry "https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/frontend/src/main.tsx"
click node_overview "https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/frontend/src/App.tsx"
click node_zone "https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/frontend/src/App.tsx"
click node_alarms "https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/frontend/src/App.tsx"
click node_followup "https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/frontend/src/App.tsx"
click node_qa "https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/frontend/src/App.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_generator,node_config,node_exports toneBlue
class node_api toneAmber
class node_frontend_entry,node_overview,node_zone,node_alarms,node_followup toneMint
class node_qa toneRose
class node_operator toneIndigo
```

## Components

### Data generation

- [Seeded generator](https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/data-generator/generate.py): `data-generator/generate.py`
- [Seed and targets](https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/data-generator/config.py): `data-generator/config.py`
- [Generated exports](https://github.com/vrbeirer/coldchain-warehouse-monitor/tree/main/data-generator/output): `data-generator/output`

### API serving

- [Read-only API](https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/backend/main.py): `backend/main.py`

### Operations dashboard

- [Dashboard entry](https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/frontend/src/main.tsx): `frontend/src/main.tsx`
- [Warehouse overview](https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Zone telemetry](https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Alarm center](https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Follow-up tracker](https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`

### Quality review

- [Ground truth QA](https://github.com/vrbeirer/coldchain-warehouse-monitor/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`

### Other components

- **Warehouse operator**

## Connections

- Seeded generator → Seed and targets: imports settings (evidence: `data-generator/generate.py`)
- Seeded generator → Generated exports: writes exports (evidence: `data-generator/generate.py`)
- Generated exports → Read-only API: reads dataset (evidence: `README.md`)
- Warehouse operator → Dashboard entry: opens dashboard (evidence: `README.md`)
- Dashboard entry → Warehouse overview: renders app (evidence: `frontend/src/main.tsx`)
- Warehouse overview → Read-only API: fetches summary and warehouses (evidence: `frontend/src/App.tsx`)
- Zone telemetry → Read-only API: requests zones and series (evidence: `frontend/src/App.tsx`)
- Alarm center → Read-only API: requests alarms (evidence: `README.md`)
- Follow-up tracker → Read-only API: requests inspections and remediations (evidence: `frontend/src/App.tsx`)
- Ground truth QA → Read-only API: requests ground truth (evidence: `frontend/src/App.tsx`)
- Warehouse overview → Zone telemetry: navigates (evidence: `README.md`)
- Zone telemetry → Alarm center: navigates (evidence: `README.md`)
- Alarm center → Follow-up tracker: navigates (evidence: `README.md`)
- Warehouse overview → Ground truth QA: opens separate tab (evidence: `README.md`)
