# chodisettiakshitha-code/quantumshield architecture

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

- Interactive diagram: https://gitdiagram.com/chodisettiakshitha-code/quantumshield
- Repository: https://github.com/chodisettiakshitha-code/quantumshield

## Overview

QuantumShield is a quantum-readiness assessment platform for an organization’s cryptographic asset inventory. Users explore readiness and risk, register assets for assessment, inspect NIST post-quantum recommendations, and prioritize migration. The frontend presents the workflow and can fall back to local calculations; the backend exposes inventory and dashboard APIs, enriches records with risk and PQC analysis, persists them, and aggregates metrics. README-documented capabilities are included where source excerpts were unavailable; their internal wiring is not inferred.

Main entry points: [`frontend/src/App.tsx`](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/App.tsx) (App controller), [`backend/app/services/system_service.py`](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/services/system_service.py) (System service), [`backend/app/api/routes.py`](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/api/routes.py) (REST routes), [`frontend/src/components/ScannerModal.tsx`](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/components/ScannerModal.tsx) (Asset scanner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Assessment experience"]
  node_app["App controller<br/>[App.tsx]"]
  node_api_client["API client<br/>[api.ts]"]
  node_scanner["Asset scanner<br/>[ScannerModal.tsx]"]
  node_dashboard["SOC dashboard<br/>[DashboardPage.tsx]"]
  node_systems_page["Systems inventory<br/>[SystemsPage.tsx]"]
  node_landing["Landing experience<br/>[LandingPage.tsx]"]
end

subgraph group_analysis["Risk and migration analysis"]
  node_risk_page["Risk analysis"]
  node_recommendations["PQC catalog"]
  node_migration["Migration planner<br/>[MigrationPage.tsx]"]
  node_reports["Audit reports<br/>[ReportsPage.tsx]"]
  node_heatmap["Risk heatmap<br/>[HeatmapView.tsx]"]
  node_threat_viz["Threat visualization"]
  node_detail_modal["Score explanation"]
  node_report_modal["Report export<br/>[ReportModal.tsx]"]
  node_risk_engine["Risk scoring<br/>[risk_engine.py]"]
  node_pqc_engine["PQC mapping<br/>[pqc_engine.py]"]
end

subgraph group_api["API and orchestration"]
  node_backend_api["REST routes<br/>[routes.py]"]
  node_service["System service<br/>[system_service.py]"]
  node_schemas["API data contracts<br/>[system.py]"]
  node_server["FastAPI application<br/>[main.py]"]
end

subgraph group_data["Inventory and metrics"]
  node_aggregation["Metric aggregation"]
  node_system_model["System records<br/>[system.py]"]
  node_database[("SQLite database<br/>[database.py]")]
  node_demo_data["Demo inventory<br/>[demo_data.py]"]
end

node_user(("Security team"))

node_user -->|"uses"| node_app
node_app -->|"requests data"| node_api_client
node_app -->|"shows"| node_dashboard
node_app -->|"shows"| node_systems_page
node_app -->|"shows"| node_risk_page
node_app -->|"shows"| node_recommendations
node_app -->|"shows"| node_migration
node_app -->|"shows"| node_reports
node_app -->|"shows"| node_landing
node_app -->|"shows"| node_threat_viz
node_app -->|"opens"| node_scanner
node_scanner -->|"previews risk"| node_api_client
node_scanner -->|"submits asset"| node_app
node_api_client -->|"calls API"| node_backend_api
node_server -->|"registers routes"| node_backend_api
node_server -->|"initializes"| node_database
node_backend_api -->|"dispatches"| node_service
node_backend_api -->|"validates responses"| node_schemas
node_backend_api -->|"checks inventory"| node_system_model
node_service -->|"calculates risk"| node_risk_engine
node_service -->|"gets recommendation"| node_pqc_engine
node_service -->|"computes metrics"| node_aggregation
node_service -->|"reads and writes"| node_system_model
node_service -->|"loads seed data"| node_demo_data
node_system_model -->|"uses base"| node_database
node_dashboard -.->|"presents risk"| node_heatmap
node_dashboard -.->|"explains scores"| node_detail_modal
node_reports -.->|"supports export"| node_report_modal
node_migration -.->|"uses mappings"| node_recommendations

click node_app "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/App.tsx"
click node_api_client "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/services/api.ts"
click node_scanner "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/components/ScannerModal.tsx"
click node_dashboard "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/DashboardPage.tsx"
click node_systems_page "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/SystemsPage.tsx"
click node_landing "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/LandingPage.tsx"
click node_risk_page "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/RiskAnalysisPage.tsx"
click node_recommendations "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/RecommendationsPage.tsx"
click node_migration "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/MigrationPage.tsx"
click node_reports "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/ReportsPage.tsx"
click node_heatmap "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/components/HeatmapView.tsx"
click node_threat_viz "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/components/QuantumThreatVisualization.tsx"
click node_detail_modal "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/components/SystemDetailModal.tsx"
click node_report_modal "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/components/ReportModal.tsx"
click node_backend_api "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/api/routes.py"
click node_service "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/services/system_service.py"
click node_risk_engine "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/engines/risk_engine.py"
click node_pqc_engine "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/engines/pqc_engine.py"
click node_aggregation "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/engines/aggregation_engine.py"
click node_system_model "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/models/system.py"
click node_schemas "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/schemas/system.py"
click node_database "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/database.py"
click node_demo_data "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/data/demo_data.py"
click node_server "https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/main.py"

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_api_client,node_scanner,node_dashboard,node_systems_page,node_landing toneBlue
class node_risk_page,node_recommendations,node_migration,node_reports,node_heatmap,node_threat_viz,node_detail_modal,node_report_modal,node_risk_engine,node_pqc_engine toneAmber
class node_backend_api,node_service,node_schemas,node_server toneMint
class node_aggregation,node_system_model,node_database,node_demo_data toneRose
class node_user toneIndigo
```

## Components

### Assessment experience

- [App controller](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [API client](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`
- [Asset scanner](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/components/ScannerModal.tsx): `frontend/src/components/ScannerModal.tsx`
- [SOC dashboard](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/DashboardPage.tsx): `frontend/src/pages/DashboardPage.tsx`
- [Systems inventory](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/SystemsPage.tsx): `frontend/src/pages/SystemsPage.tsx`
- [Landing experience](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/LandingPage.tsx): `frontend/src/pages/LandingPage.tsx`

### Risk and migration analysis

- [Risk analysis](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/RiskAnalysisPage.tsx): `frontend/src/pages/RiskAnalysisPage.tsx`
- [PQC catalog](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/RecommendationsPage.tsx): `frontend/src/pages/RecommendationsPage.tsx`
- [Migration planner](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/MigrationPage.tsx): `frontend/src/pages/MigrationPage.tsx`
- [Audit reports](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/pages/ReportsPage.tsx): `frontend/src/pages/ReportsPage.tsx`
- [Risk heatmap](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/components/HeatmapView.tsx): `frontend/src/components/HeatmapView.tsx`
- [Threat visualization](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/components/QuantumThreatVisualization.tsx): `frontend/src/components/QuantumThreatVisualization.tsx`
- [Score explanation](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/components/SystemDetailModal.tsx): `frontend/src/components/SystemDetailModal.tsx`
- [Report export](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/frontend/src/components/ReportModal.tsx): `frontend/src/components/ReportModal.tsx`
- [Risk scoring](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/engines/risk_engine.py): `backend/app/engines/risk_engine.py`
- [PQC mapping](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/engines/pqc_engine.py): `backend/app/engines/pqc_engine.py`

### API and orchestration

- [REST routes](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/api/routes.py): `backend/app/api/routes.py`
- [System service](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/services/system_service.py): `backend/app/services/system_service.py`
- [API data contracts](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/schemas/system.py): `backend/app/schemas/system.py`
- [FastAPI application](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/main.py): `backend/app/main.py`

### Inventory and metrics

- [Metric aggregation](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/engines/aggregation_engine.py): `backend/app/engines/aggregation_engine.py`
- [System records](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/models/system.py): `backend/app/models/system.py`
- [SQLite database](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/database.py): `backend/app/database.py`
- [Demo inventory](https://github.com/chodisettiakshitha-code/quantumshield/blob/main/backend/app/data/demo_data.py): `backend/app/data/demo_data.py`

### Other components

- **Security team**

## Connections

- Security team → App controller: uses (evidence: `README.md`)
- App controller → API client: requests data (evidence: `frontend/src/App.tsx`)
- App controller → SOC dashboard: shows (evidence: `frontend/src/App.tsx`)
- App controller → Systems inventory: shows (evidence: `frontend/src/App.tsx`)
- App controller → Risk analysis: shows (evidence: `frontend/src/App.tsx`)
- App controller → PQC catalog: shows (evidence: `frontend/src/App.tsx`)
- App controller → Migration planner: shows (evidence: `frontend/src/App.tsx`)
- App controller → Audit reports: shows (evidence: `frontend/src/App.tsx`)
- App controller → Landing experience: shows (evidence: `frontend/src/App.tsx`)
- App controller → Threat visualization: shows (evidence: `frontend/src/App.tsx`)
- App controller → Asset scanner: opens (evidence: `frontend/src/App.tsx`)
- Asset scanner → API client: previews risk (evidence: `frontend/src/components/ScannerModal.tsx`)
- Asset scanner → App controller: submits asset (evidence: `frontend/src/App.tsx`)
- API client → REST routes: calls API (evidence: `README.md`)
- FastAPI application → REST routes: registers routes (evidence: `backend/app/main.py`)
- FastAPI application → SQLite database: initializes (evidence: `backend/app/main.py`)
- REST routes → System service: dispatches (evidence: `backend/app/api/routes.py`)
- REST routes → API data contracts: validates responses (evidence: `backend/app/api/routes.py`)
- REST routes → System records: checks inventory (evidence: `backend/app/api/routes.py`)
- System service → Risk scoring: calculates risk (evidence: `backend/app/services/system_service.py`)
- System service → PQC mapping: gets recommendation (evidence: `backend/app/services/system_service.py`)
- System service → Metric aggregation: computes metrics (evidence: `backend/app/services/system_service.py`)
- System service → System records: reads and writes (evidence: `backend/app/services/system_service.py`)
- System service → Demo inventory: loads seed data (evidence: `backend/app/services/system_service.py`)
- System records → SQLite database: uses base (evidence: `backend/app/models/system.py`)
- SOC dashboard → Risk heatmap: presents risk
- SOC dashboard → Score explanation: explains scores
- Audit reports → Report export: supports export
- Migration planner → PQC catalog: uses mappings
