# rexzarrax/biosupcs architecture

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

- Interactive diagram: https://gitdiagram.com/rexzarrax/biosupcs
- Repository: https://github.com/rexzarrax/biosupcs

## Overview

BiosupCS is a Windows desktop utility for sourcing and downloading BIOS/UEFI packages from ASUS, ASROCK, GIGABYTE, and MSI. Users choose vendors and chipsets, then run downloads; the GUI also exposes administration for motherboard and firmware URL data. The sampled GUI excerpt shows a download call and HTML-search construction, while the database connection is visible but its query call sites are not. The unzip and file-removal helpers are present, but their runtime wiring is not established by the excerpts.

Main entry points: [`BIOSUP_GUI.cs`](https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_GUI.cs) (Main GUI), [`BIOSUP_Program.cs`](https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_Program.cs) (Application entry), [`BIOSUP_DL_FILE.cs`](https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_DL_FILE.cs) (File download), [`BIOSUP_HTML.cs`](https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_HTML.cs) (Web page search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop workflow"]
  node_entry["Application entry<br/>[BIOSUP_Program.cs]"]
  node_gui["Main GUI<br/>[BIOSUP_GUI.cs]"]
  node_config["Local preferences<br/>[BIOSUP_CONFIG.cs]"]
  node_download["File download<br/>[BIOSUP_DL_FILE.cs]"]
  node_extract["Archive extraction<br/>[BIOSUP_UNZIP.cs]"]
  node_cleanup["File removal<br/>[BIOSUP_RM_FILE.cs]"]
  node_url_editor["URL editor control"]
end

subgraph group_discovery["Firmware sourcing"]
  node_search["Web page search<br/>[BIOSUP_HTML.cs]"]
  node_vendor_sites["Vendor support pages"]
  node_firmware_hosts["Firmware download hosts"]
end

subgraph group_data["Firmware data"]
  node_sql_access["SQL access<br/>[BIOSUP_SQL.cs]"]
  node_firmware_db[("Firmware database")]
  node_db_schema["Database schema<br/>[db_creation.sql]"]
  node_binary_save["Binary serialization<br/>[BIOSUP_SAVE.cs]"]
end

node_user(("User"))

node_user -->|"starts app"| node_entry
node_entry -->|"opens"| node_gui
node_user -->|"selects options"| node_gui
node_gui -->|"downloads files"| node_download
node_gui -->|"creates search"| node_search
node_search -->|"fetches pages"| node_vendor_sites
node_download -->|"fetches packages"| node_firmware_hosts
node_gui -.->|"reads and edits data"| node_firmware_db
node_sql_access -->|"executes SQL"| node_firmware_db
node_db_schema -.->|"defines schema"| node_firmware_db
node_gui -->|"creates controls"| node_url_editor

click node_entry "https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_Program.cs"
click node_gui "https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_GUI.cs"
click node_config "https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_CONFIG.cs"
click node_download "https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_DL_FILE.cs"
click node_extract "https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_UNZIP.cs"
click node_cleanup "https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_RM_FILE.cs"
click node_url_editor "https://github.com/rexzarrax/biosupcs/blob/master/biosup_multi_url_add.cs"
click node_search "https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_HTML.cs"
click node_sql_access "https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_SQL.cs"
click node_db_schema "https://github.com/rexzarrax/biosupcs/blob/master/db/db_creation.sql"
click node_binary_save "https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_SAVE.cs"

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_entry,node_gui,node_config,node_download,node_extract,node_cleanup,node_url_editor,node_user toneBlue
class node_search,node_vendor_sites,node_firmware_hosts toneAmber
class node_sql_access,node_firmware_db,node_db_schema,node_binary_save toneMint
```

## Components

### Desktop workflow

- [Application entry](https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_Program.cs): `BIOSUP_Program.cs`
- [Main GUI](https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_GUI.cs): `BIOSUP_GUI.cs`
- [Local preferences](https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_CONFIG.cs): `BIOSUP_CONFIG.cs`
- [File download](https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_DL_FILE.cs): `BIOSUP_DL_FILE.cs`
- [Archive extraction](https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_UNZIP.cs): `BIOSUP_UNZIP.cs`
- [File removal](https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_RM_FILE.cs): `BIOSUP_RM_FILE.cs`
- [URL editor control](https://github.com/rexzarrax/biosupcs/blob/master/biosup_multi_url_add.cs): `biosup_multi_url_add.cs`

### Firmware sourcing

- [Web page search](https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_HTML.cs): `BIOSUP_HTML.cs`
- **Vendor support pages**
- **Firmware download hosts**

### Firmware data

- [SQL access](https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_SQL.cs): `BIOSUP_SQL.cs`
- **Firmware database**
- [Database schema](https://github.com/rexzarrax/biosupcs/blob/master/db/db_creation.sql): `db/db_creation.sql`
- [Binary serialization](https://github.com/rexzarrax/biosupcs/blob/master/BIOSUP_SAVE.cs): `BIOSUP_SAVE.cs`

### Other components

- **User**

## Connections

- User → Application entry: starts app (evidence: `README.md`)
- Application entry → Main GUI: opens (evidence: `BIOSUP_Program.cs`)
- User → Main GUI: selects options (evidence: `README.md`)
- Main GUI → File download: downloads files (evidence: `BIOSUP_GUI.cs`)
- Main GUI → Web page search: creates search (evidence: `BIOSUP_GUI.cs`)
- Web page search → Vendor support pages: fetches pages (evidence: `BIOSUP_HTML.cs`)
- File download → Firmware download hosts: fetches packages (evidence: `BIOSUP_DL_FILE.cs`)
- Main GUI → Firmware database: reads and edits data
- SQL access → Firmware database: executes SQL (evidence: `BIOSUP_SQL.cs`)
- Database schema → Firmware database: defines schema
- Main GUI → URL editor control: creates controls (evidence: `BIOSUP_GUI.cs`)
