# thekeops/yourapp architecture

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

- Interactive diagram: https://gitdiagram.com/thekeops/yourapp
- Repository: https://github.com/thekeops/yourapp

## Overview

YourApp is a desktop app generator: users configure a request, the app prepares it for Gemini, saves generated Python, and packages it as an executable. It also provides settings and API-key handling, language-pack retrieval, version checks, and management of generated products. The graph reflects the documented workflow and relationships visible in the excerpts; some UI callbacks and startup wiring were not sampled, so those links are grounded in the README rather than assumed source calls.

Main entry points: [`modules/ai.py`](https://github.com/thekeops/yourapp/blob/main/modules/ai.py) (Code generation), [`modules/file_manager.py`](https://github.com/thekeops/yourapp/blob/main/modules/file_manager.py) (App data and products), [`main.py`](https://github.com/thekeops/yourapp/blob/main/main.py) (Application UI), [`modules/launcher.py`](https://github.com/thekeops/yourapp/blob/main/modules/launcher.py) (Executable packaging)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop application"]
  node_app["Application UI<br/>[main.py]"]
  node_settings["Settings and keys<br/>[main.py]"]
  node_product_ui["Product management<br/>[main.py]"]
  node_language_download["Language packs<br/>[get.py]"]
  node_version_check["Version check<br/>[version_control.py]"]
end

subgraph group_generation["Code generation"]
  node_prompt["Prompt preparation<br/>[ai.py]"]
  node_translation["Prompt translation<br/>[ai.py]"]
  node_ai_generation["Code generation<br/>[ai.py]"]
  node_runtime_deps["Generated dependencies<br/>[ai.py]"]
  node_packaging["Executable packaging<br/>[launcher.py]"]
end

subgraph group_files["Local data and products"]
  node_source["Generated Python source<br/>[ai.py]"]
  node_local_data[("App data and products<br/>[file_manager.py]")]
end

subgraph group_integrations["External services"]
  node_gemini{{"Gemini API"}}
  node_translator_service{{"Translation service"}}
  node_github{{"GitHub repository"}}
  node_pyinstaller{{"PyInstaller"}}
end

node_user(("User"))

node_user -->|"configures and requests"| node_app
node_app -->|"updates settings"| node_settings
node_app -->|"submits request"| node_prompt
node_prompt -->|"translates prompt"| node_translation
node_translation -->|"requests translation"| node_translator_service
node_prompt -->|"writes prompt"| node_local_data
node_ai_generation -->|"reads keys and prompt"| node_local_data
node_ai_generation -->|"requests generated code"| node_gemini
node_ai_generation -->|"writes generated code"| node_source
node_ai_generation -->|"installs dependencies"| node_runtime_deps
node_ai_generation -->|"builds executable"| node_packaging
node_packaging -->|"invokes packaging"| node_pyinstaller
node_packaging -->|"writes product"| node_local_data
node_app -->|"manages products"| node_product_ui
node_product_ui -->|"lists and deletes products"| node_local_data
node_settings -->|"stores settings and keys"| node_local_data
node_language_download -->|"fetches language packs"| node_github
node_language_download -->|"writes language packs"| node_local_data
node_version_check -->|"reads version"| node_github
node_app -.->|"loads language packs"| node_language_download
node_settings -->|"checks version"| node_version_check

click node_app "https://github.com/thekeops/yourapp/blob/main/main.py"
click node_settings "https://github.com/thekeops/yourapp/blob/main/main.py"
click node_product_ui "https://github.com/thekeops/yourapp/blob/main/main.py"
click node_language_download "https://github.com/thekeops/yourapp/blob/main/modules/get.py"
click node_version_check "https://github.com/thekeops/yourapp/blob/main/modules/version_control.py"
click node_prompt "https://github.com/thekeops/yourapp/blob/main/modules/ai.py"
click node_translation "https://github.com/thekeops/yourapp/blob/main/modules/ai.py"
click node_ai_generation "https://github.com/thekeops/yourapp/blob/main/modules/ai.py"
click node_source "https://github.com/thekeops/yourapp/blob/main/modules/ai.py"
click node_runtime_deps "https://github.com/thekeops/yourapp/blob/main/modules/ai.py"
click node_packaging "https://github.com/thekeops/yourapp/blob/main/modules/launcher.py"
click node_local_data "https://github.com/thekeops/yourapp/blob/main/modules/file_manager.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_settings,node_product_ui,node_language_download,node_version_check,node_user toneBlue
class node_prompt,node_translation,node_ai_generation,node_runtime_deps,node_packaging toneAmber
class node_source,node_local_data toneMint
class node_gemini,node_translator_service,node_github,node_pyinstaller toneRose
```

## Components

### Desktop application

- [Application UI](https://github.com/thekeops/yourapp/blob/main/main.py): `main.py`
- [Settings and keys](https://github.com/thekeops/yourapp/blob/main/main.py): `main.py`
- [Product management](https://github.com/thekeops/yourapp/blob/main/main.py): `main.py`
- [Language packs](https://github.com/thekeops/yourapp/blob/main/modules/get.py): `modules/get.py`
- [Version check](https://github.com/thekeops/yourapp/blob/main/modules/version_control.py): `modules/version_control.py`

### Code generation

- [Prompt preparation](https://github.com/thekeops/yourapp/blob/main/modules/ai.py): `modules/ai.py`
- [Prompt translation](https://github.com/thekeops/yourapp/blob/main/modules/ai.py): `modules/ai.py`
- [Code generation](https://github.com/thekeops/yourapp/blob/main/modules/ai.py): `modules/ai.py`
- [Generated dependencies](https://github.com/thekeops/yourapp/blob/main/modules/ai.py): `modules/ai.py`
- [Executable packaging](https://github.com/thekeops/yourapp/blob/main/modules/launcher.py): `modules/launcher.py`

### Local data and products

- [Generated Python source](https://github.com/thekeops/yourapp/blob/main/modules/ai.py): `modules/ai.py`
- [App data and products](https://github.com/thekeops/yourapp/blob/main/modules/file_manager.py): `modules/file_manager.py`

### External services

- **Gemini API**
- **Translation service**
- **GitHub repository**
- **PyInstaller**

### Other components

- **User**

## Connections

- User → Application UI: configures and requests (evidence: `README.md`)
- Application UI → Settings and keys: updates settings (evidence: `main.py`)
- Application UI → Prompt preparation: submits request (evidence: `README.md`)
- Prompt preparation → Prompt translation: translates prompt (evidence: `modules/ai.py`)
- Prompt translation → Translation service: requests translation (evidence: `modules/ai.py`)
- Prompt preparation → App data and products: writes prompt (evidence: `modules/ai.py`)
- Code generation → App data and products: reads keys and prompt (evidence: `modules/ai.py`)
- Code generation → Gemini API: requests generated code (evidence: `modules/ai.py`)
- Code generation → Generated Python source: writes generated code (evidence: `modules/ai.py`)
- Code generation → Generated dependencies: installs dependencies (evidence: `modules/ai.py`)
- Code generation → Executable packaging: builds executable (evidence: `modules/ai.py`)
- Executable packaging → PyInstaller: invokes packaging (evidence: `modules/launcher.py`)
- Executable packaging → App data and products: writes product (evidence: `modules/launcher.py`)
- Application UI → Product management: manages products (evidence: `main.py`)
- Product management → App data and products: lists and deletes products (evidence: `main.py`)
- Settings and keys → App data and products: stores settings and keys (evidence: `main.py`)
- Language packs → GitHub repository: fetches language packs (evidence: `modules/get.py`)
- Language packs → App data and products: writes language packs (evidence: `modules/get.py`)
- Version check → GitHub repository: reads version (evidence: `modules/version_control.py`)
- Application UI → Language packs: loads language packs (evidence: `main.py`)
- Settings and keys → Version check: checks version (evidence: `main.py`)
