# spr-aachen/llm-promptmaster architecture

> Architecture diagram of the GitHub repository spr-aachen/llm-promptmaster, 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/spr-aachen/llm-promptmaster
- Repository: https://github.com/spr-aachen/llm-promptmaster

## Overview

LLM Prompt Master is a lightweight desktop chatbot client for Azure, OpenAI, and DeepSeek. The main workflow is user interaction with the desktop window, configuring chat settings and prompts, then sending a conversation request and displaying the response. The source shows the chat client obtaining a token and posting to a host/port API; the server implementation is not present in the supplied tree. Some feature details are documented but their implementation is unsampled, so those links are omitted.

Main entry points: [`client/main.py`](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/main.py) (Application controller), [`client/pages/settingsPage.py`](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/pages/settingsPage.py) (Settings page), [`client/ui/UI_Window.py`](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/ui/UI_Window.py) (Window layout), [`client/pages/chatPage.py`](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/pages/chatPage.py) (Chat page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Desktop application"]
  node_main["Application controller<br/>[main.py]"]
  node_prompts["Prompt management<br/>[main.py]"]
end

subgraph group_chat["Chat workflow"]
  node_chat_page["Chat page<br/>[chatPage.py]"]
  node_chat_request["Chat request client<br/>[chatExecutor.py]"]
end

subgraph group_settings["Configuration"]
  node_settings_page["Settings page<br/>[settingsPage.py]"]
  node_api_keys["API key table<br/>[tables.py]"]
end

subgraph group_ui["Interface components"]
  node_window["Main window<br/>[windows.py]"]
  node_window_ui["Window layout<br/>[UI_Window.py]"]
  node_page_common["Page framework<br/>[common.py]"]
  node_functions["UI utilities<br/>[functions.py]"]
end

node_user(("User"))
node_chat_service{{"Chat API service"}}

node_user -->|"uses"| node_window
node_main -->|"creates"| node_window
node_window -->|"sets up"| node_window_ui
node_window_ui -->|"imports"| node_chat_page
node_window_ui -->|"imports"| node_settings_page
node_chat_page -->|"uses"| node_page_common
node_settings_page -->|"uses"| node_page_common
node_settings_page -->|"uses"| node_functions
node_settings_page -->|"uses"| node_api_keys
node_main -->|"uses"| node_functions
node_main -->|"configures"| node_chat_page
node_main -->|"configures"| node_settings_page
node_main -->|"manages"| node_prompts
node_main -->|"dispatches"| node_chat_request
node_chat_request -->|"requests token and chat"| node_chat_service

click node_main "https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/main.py"
click node_prompts "https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/main.py"
click node_window "https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/windows/windows.py"
click node_window_ui "https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/ui/UI_Window.py"
click node_chat_page "https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/pages/chatPage.py"
click node_page_common "https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/pages/common.py"
click node_settings_page "https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/pages/settingsPage.py"
click node_api_keys "https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/components/tables.py"
click node_functions "https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/functions.py"
click node_chat_request "https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/chatExecutor.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_main,node_prompts,node_user toneBlue
class node_chat_page,node_chat_request toneAmber
class node_settings_page,node_api_keys,node_chat_service toneMint
class node_window,node_window_ui,node_page_common,node_functions toneRose
```

## Components

### Desktop application

- [Application controller](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/main.py): `client/main.py`
- [Prompt management](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/main.py): `client/main.py`

### Chat workflow

- [Chat page](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/pages/chatPage.py): `client/pages/chatPage.py`
- [Chat request client](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/chatExecutor.py): `client/chatExecutor.py`

### Configuration

- [Settings page](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/pages/settingsPage.py): `client/pages/settingsPage.py`
- [API key table](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/components/tables.py): `client/components/tables.py`

### Interface components

- [Main window](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/windows/windows.py): `client/windows/windows.py`
- [Window layout](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/ui/UI_Window.py): `client/ui/UI_Window.py`
- [Page framework](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/pages/common.py): `client/pages/common.py`
- [UI utilities](https://github.com/spr-aachen/llm-promptmaster/blob/v1/client/functions.py): `client/functions.py`

### Other components

- **User**
- **Chat API service**

## Connections

- User → Main window: uses
- Application controller → Main window: creates (evidence: `client/main.py`)
- Main window → Window layout: sets up (evidence: `client/windows/windows.py`)
- Window layout → Chat page: imports (evidence: `client/ui/UI_Window.py`)
- Window layout → Settings page: imports (evidence: `client/ui/UI_Window.py`)
- Chat page → Page framework: uses (evidence: `client/pages/chatPage.py`)
- Settings page → Page framework: uses (evidence: `client/pages/settingsPage.py`)
- Settings page → UI utilities: uses (evidence: `client/pages/settingsPage.py`)
- Settings page → API key table: uses (evidence: `client/components/tables.py`)
- Application controller → UI utilities: uses (evidence: `client/main.py`)
- Application controller → Chat page: configures (evidence: `client/main.py`)
- Application controller → Settings page: configures (evidence: `client/main.py`)
- Application controller → Prompt management: manages (evidence: `client/main.py`)
- Application controller → Chat request client: dispatches (evidence: `client/main.py`)
- Chat request client → Chat API service: requests token and chat (evidence: `client/chatExecutor.py`)
