# rellik5/vulnerability-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/rellik5/vulnerability-dashboard
- Repository: https://github.com/rellik5/vulnerability-dashboard

## Overview

This is an early Flask vulnerability dashboard. The implemented user workflow is a request for the home page, which loads and scores stored findings before rendering a server-side table. The README describes report import, deduplication, and status tracking as intended capabilities, but says they do not exist yet; the sampled routes do not implement them. The separate NVD lookup is a starting point, not shown connected to the dashboard. Edges reflect the sampled code and README; unsampled behavior is not inferred.

Main entry points: [`app/routes.py`](https://github.com/rellik5/vulnerability-dashboard/blob/main/app/routes.py) (Home route), [`app/__init__.py`](https://github.com/rellik5/vulnerability-dashboard/blob/main/app/__init__.py) (Flask setup), [`app/models.py`](https://github.com/rellik5/vulnerability-dashboard/blob/main/app/models.py) (Asset and finding models), [`app/scanner.py`](https://github.com/rellik5/vulnerability-dashboard/blob/main/app/scanner.py) (CVE search and parsing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_factory["Flask setup<br/>[__init__.py]"]
  node_routes["Home route<br/>[routes.py]"]
  node_template["Findings page<br/>[index.html]"]
end

subgraph group_data["Findings data"]
  node_models["Asset and finding models<br/>[models.py]"]
  node_sqlite[("SQLite database<br/>[__init__.py]")]
end

subgraph group_lookup["CVE lookup"]
  node_scanner["CVE search and parsing<br/>[scanner.py]"]
end

node_user(("Dashboard user"))
node_nvd["NVD CVE API"]

node_user -->|"requests page"| node_routes
node_factory -->|"registers blueprint"| node_routes
node_routes -->|"queries findings"| node_models
node_routes -->|"renders page"| node_template
node_models -->|"uses ORM"| node_factory
node_factory -->|"configures database"| node_sqlite
node_scanner -->|"searches CVEs"| node_nvd

click node_factory "https://github.com/rellik5/vulnerability-dashboard/blob/main/app/__init__.py"
click node_routes "https://github.com/rellik5/vulnerability-dashboard/blob/main/app/routes.py"
click node_template "https://github.com/rellik5/vulnerability-dashboard/blob/main/app/templates/index.html"
click node_models "https://github.com/rellik5/vulnerability-dashboard/blob/main/app/models.py"
click node_sqlite "https://github.com/rellik5/vulnerability-dashboard/blob/main/app/__init__.py"
click node_scanner "https://github.com/rellik5/vulnerability-dashboard/blob/main/app/scanner.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_factory,node_routes,node_template,node_user toneBlue
class node_models,node_sqlite toneAmber
class node_scanner,node_nvd toneMint
```

## Components

### Web application

- [Flask setup](https://github.com/rellik5/vulnerability-dashboard/blob/main/app/__init__.py): `app/__init__.py`
- [Home route](https://github.com/rellik5/vulnerability-dashboard/blob/main/app/routes.py): `app/routes.py`
- [Findings page](https://github.com/rellik5/vulnerability-dashboard/blob/main/app/templates/index.html): `app/templates/index.html`

### Findings data

- [Asset and finding models](https://github.com/rellik5/vulnerability-dashboard/blob/main/app/models.py): `app/models.py`
- [SQLite database](https://github.com/rellik5/vulnerability-dashboard/blob/main/app/__init__.py): `app/__init__.py`

### CVE lookup

- [CVE search and parsing](https://github.com/rellik5/vulnerability-dashboard/blob/main/app/scanner.py): `app/scanner.py`

### Other components

- **Dashboard user**
- **NVD CVE API**

## Connections

- Dashboard user → Home route: requests page (evidence: `README.md`)
- Flask setup → Home route: registers blueprint (evidence: `app/__init__.py`)
- Home route → Asset and finding models: queries findings (evidence: `app/routes.py`)
- Home route → Findings page: renders page (evidence: `app/routes.py`)
- Asset and finding models → Flask setup: uses ORM (evidence: `app/models.py`)
- Flask setup → SQLite database: configures database (evidence: `app/__init__.py`)
- CVE search and parsing → NVD CVE API: searches CVEs (evidence: `app/scanner.py`)
