# alexagents/steam-guide-downloader architecture

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

- Interactive diagram: https://gitdiagram.com/alexagents/steam-guide-downloader
- Repository: https://github.com/alexagents/steam-guide-downloader

## Overview

Steam Guide Downloader is a desktop app that turns a Steam Community guide URL into a DOCX, with optional PDF conversion and separate image export. The user enters a URL and output options in the GUI; the downloader retrieves and parses the guide, builds the document, then performs requested post-processing. Other documented capabilities include path validation, themes, bilingual UI, and session logs. Some runtime links are supported only by README documentation or the source index; unsampled implementation details are not inferred.

Main entry points: [`app/gui/main_window.py`](https://github.com/alexagents/steam-guide-downloader/blob/main/app/gui/main_window.py) (Main window), [`app/core/parser.py`](https://github.com/alexagents/steam-guide-downloader/blob/main/app/core/parser.py) (Guide downloader), [`app/gui/icon_provider.py`](https://github.com/alexagents/steam-guide-downloader/blob/main/app/gui/icon_provider.py) (App icon), [`app/core/pdf_converter.py`](https://github.com/alexagents/steam-guide-downloader/blob/main/app/core/pdf_converter.py) (PDF conversion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Desktop interface"]
  node_window["Main window<br/>[main_window.py]"]
  node_icons["App icon<br/>[icon_provider.py]"]
  node_themes["Themes<br/>[light.qss]"]
end

subgraph group_download["Guide acquisition"]
  node_guide["Guide downloader<br/>[parser.py]"]
  node_network["HTTP and cache<br/>[network.py]"]
end

subgraph group_output["Document outputs"]
  node_docx["DOCX builder<br/>[docx_builder.py]"]
  node_images["Image export<br/>[image_saver.py]"]
  node_pdf["PDF conversion<br/>[pdf_converter.py]"]
  node_document["DOCX file"]
  node_pdf_file["PDF file"]
  node_image_files["Image files"]
end

subgraph group_support["App support"]
  node_config["App configuration<br/>[config.py]"]
  node_paths["Runtime paths<br/>[paths.py]"]
  node_translations["Translations<br/>[translations.py]"]
  node_utils["Document utilities<br/>[utils.py]"]
  node_logs["Session logs<br/>[main_window.py]"]
end

node_user(("User"))
node_steam{{"Steam Community"}}

node_user -->|"enters options"| node_window
node_window -->|"starts download"| node_guide
node_guide -->|"fetches guide"| node_steam
node_guide -->|"creates session"| node_network
node_guide -->|"builds content"| node_docx
node_guide -->|"saves images"| node_images
node_guide -->|"converts optionally"| node_pdf
node_guide -->|"writes DOCX"| node_document
node_guide -->|"exports images"| node_image_files
node_pdf -->|"creates PDF"| node_pdf_file
node_window -->|"loads settings"| node_config
node_config -->|"resolves config path"| node_paths
node_window -->|"gets UI text"| node_translations
node_window -->|"validates save path"| node_utils
node_window -->|"records session"| node_logs
node_window -->|"applies styling"| node_themes
node_window -->|"sets icon"| node_icons
node_icons -->|"locates assets"| node_paths

click node_window "https://github.com/alexagents/steam-guide-downloader/blob/main/app/gui/main_window.py"
click node_icons "https://github.com/alexagents/steam-guide-downloader/blob/main/app/gui/icon_provider.py"
click node_themes "https://github.com/alexagents/steam-guide-downloader/blob/main/themes/light.qss"
click node_guide "https://github.com/alexagents/steam-guide-downloader/blob/main/app/core/parser.py"
click node_network "https://github.com/alexagents/steam-guide-downloader/blob/main/app/core/network.py"
click node_docx "https://github.com/alexagents/steam-guide-downloader/blob/main/app/core/docx_builder.py"
click node_images "https://github.com/alexagents/steam-guide-downloader/blob/main/app/core/image_saver.py"
click node_pdf "https://github.com/alexagents/steam-guide-downloader/blob/main/app/core/pdf_converter.py"
click node_config "https://github.com/alexagents/steam-guide-downloader/blob/main/app/config.py"
click node_paths "https://github.com/alexagents/steam-guide-downloader/blob/main/app/paths.py"
click node_translations "https://github.com/alexagents/steam-guide-downloader/blob/main/app/translations.py"
click node_utils "https://github.com/alexagents/steam-guide-downloader/blob/main/app/utils.py"
click node_logs "https://github.com/alexagents/steam-guide-downloader/blob/main/app/gui/main_window.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_window,node_icons,node_themes,node_user toneBlue
class node_guide,node_network toneAmber
class node_docx,node_images,node_pdf,node_document,node_pdf_file,node_image_files toneMint
class node_config,node_paths,node_translations,node_utils,node_logs toneRose
class node_steam toneIndigo
```

## Components

### Desktop interface

- [Main window](https://github.com/alexagents/steam-guide-downloader/blob/main/app/gui/main_window.py): `app/gui/main_window.py`
- [App icon](https://github.com/alexagents/steam-guide-downloader/blob/main/app/gui/icon_provider.py): `app/gui/icon_provider.py`
- [Themes](https://github.com/alexagents/steam-guide-downloader/blob/main/themes/light.qss): `themes/light.qss`

### Guide acquisition

- [Guide downloader](https://github.com/alexagents/steam-guide-downloader/blob/main/app/core/parser.py): `app/core/parser.py`
- [HTTP and cache](https://github.com/alexagents/steam-guide-downloader/blob/main/app/core/network.py): `app/core/network.py`

### Document outputs

- [DOCX builder](https://github.com/alexagents/steam-guide-downloader/blob/main/app/core/docx_builder.py): `app/core/docx_builder.py`
- [Image export](https://github.com/alexagents/steam-guide-downloader/blob/main/app/core/image_saver.py): `app/core/image_saver.py`
- [PDF conversion](https://github.com/alexagents/steam-guide-downloader/blob/main/app/core/pdf_converter.py): `app/core/pdf_converter.py`
- **DOCX file**
- **PDF file**
- **Image files**

### App support

- [App configuration](https://github.com/alexagents/steam-guide-downloader/blob/main/app/config.py): `app/config.py`
- [Runtime paths](https://github.com/alexagents/steam-guide-downloader/blob/main/app/paths.py): `app/paths.py`
- [Translations](https://github.com/alexagents/steam-guide-downloader/blob/main/app/translations.py): `app/translations.py`
- [Document utilities](https://github.com/alexagents/steam-guide-downloader/blob/main/app/utils.py): `app/utils.py`
- [Session logs](https://github.com/alexagents/steam-guide-downloader/blob/main/app/gui/main_window.py): `app/gui/main_window.py`

### Other components

- **User**
- **Steam Community**

## Connections

- User → Main window: enters options (evidence: `README.md`)
- Main window → Guide downloader: starts download (evidence: `README.md`)
- Guide downloader → Steam Community: fetches guide (evidence: `app/core/parser.py`)
- Guide downloader → HTTP and cache: creates session (evidence: `app/core/parser.py`)
- Guide downloader → DOCX builder: builds content (evidence: `app/core/parser.py`)
- Guide downloader → Image export: saves images (evidence: `app/core/parser.py`)
- Guide downloader → PDF conversion: converts optionally (evidence: `app/core/parser.py`)
- Guide downloader → DOCX file: writes DOCX (evidence: `app/core/parser.py`)
- Guide downloader → Image files: exports images (evidence: `app/core/parser.py`)
- PDF conversion → PDF file: creates PDF
- Main window → App configuration: loads settings (evidence: `app/gui/main_window.py`)
- App configuration → Runtime paths: resolves config path (evidence: `app/config.py`)
- Main window → Translations: gets UI text (evidence: `app/gui/main_window.py`)
- Main window → Document utilities: validates save path (evidence: `app/gui/main_window.py`)
- Main window → Session logs: records session (evidence: `app/gui/main_window.py`)
- Main window → Themes: applies styling (evidence: `app/gui/main_window.py`)
- Main window → App icon: sets icon (evidence: `__main__.py`)
- App icon → Runtime paths: locates assets (evidence: `app/gui/icon_provider.py`)
