# memati8383/tengri architecture

> Architecture diagram of the GitHub repository memati8383/tengri, 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/memati8383/tengri
- Repository: https://github.com/memati8383/tengri

## Overview

TENGRİ is a native Windows system optimizer with a GUI for monitoring, cleanup, configuration, and system-management tasks. The principal workflow is user action in the app, followed by a scan or system query, an explicit apply/clean operation, and—where applicable—backup or restore. README capabilities preserve several branches whose implementation was not sampled; those links are marked unverified. Source excerpts show app-to-update checking and UI-to-notification support, but do not expose all screen handlers.

Main entry points: [`src/app.cpp`](https://github.com/memati8383/tengri/blob/main/src/app.cpp) (App workflow), [`src/main.cpp`](https://github.com/memati8383/tengri/blob/main/src/main.cpp) (Window lifecycle), [`src/core/sysinfo.cpp`](https://github.com/memati8383/tengri/blob/main/src/core/sysinfo.cpp) (System information), [`src/tray.cpp`](https://github.com/memati8383/tengri/blob/main/src/tray.cpp) (System tray)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_application["Application"]
  node_app["App workflow<br/>[app.cpp]"]
  node_entry["Window lifecycle<br/>[main.cpp]"]
  node_tray["System tray<br/>[tray.cpp]"]
  node_dashboard["Dashboard<br/>[app.cpp]"]
  node_update["Update workflow<br/>[update.cpp]"]
  node_notifications["Notifications<br/>[notify.cpp]"]
  node_license["License demo<br/>[license.cpp]"]
end

subgraph group_system_tools["System Tools"]
  node_cleaner["Cleanup scan<br/>[cleaner.cpp]"]
  node_sysinfo["System information<br/>[sysinfo.cpp]"]
  node_sysinfo_detail["Hardware details<br/>[sysinfo_detail.cpp]"]
  node_sysinfo_wmi["WMI details<br/>[sysinfo_wmi.cpp]"]
  node_ram["RAM profiles<br/>[ram.cpp]"]
  node_network["Network tools<br/>[network.cpp]"]
end

subgraph group_configuration["Configuration"]
  node_tweaks["Registry tweaks<br/>[tweaks.cpp]"]
  node_regpack["Tweak registry data<br/>[regpack.cpp]"]
  node_backup["Registry backup<br/>[backup.cpp]"]
  node_restore["Registry restore<br/>[restore.cpp]"]
  node_startup["Startup manager<br/>[startup.cpp]"]
  node_services["Service profiles<br/>[services.cpp]"]
end

subgraph group_interface["Interface"]
  node_language["Language support<br/>[lang.cpp]"]
  node_widgets["UI widgets<br/>[widgets.cpp]"]
  node_theme["Theme and fonts<br/>[theme.cpp]"]
  node_branding["Brand artwork<br/>[logo.cpp]"]
end

node_user(("User"))

node_user -->|"launches"| node_entry
node_entry -->|"initializes"| node_app
node_user -.->|"uses screens"| node_app
node_app -.->|"renders"| node_dashboard
node_app -.->|"runs scans"| node_cleaner
node_app -.->|"reads metrics"| node_sysinfo
node_sysinfo -.->|"uses details"| node_sysinfo_detail
node_sysinfo -.->|"queries WMI"| node_sysinfo_wmi
node_app -.->|"offers profiles"| node_ram
node_app -.->|"offers network tools"| node_network
node_app -.->|"applies settings"| node_tweaks
node_tweaks -->|"uses tweak data"| node_regpack
node_app -.->|"backs up before apply"| node_backup
node_app -.->|"requests restore"| node_restore
node_app -.->|"manages startup"| node_startup
node_app -.->|"manages profiles"| node_services
node_app -->|"checks updates"| node_update
node_app -->|"posts updates"| node_notifications
node_app -.->|"shows demo"| node_license
node_app -.->|"localizes screens"| node_language
node_app -.->|"draws controls"| node_widgets
node_widgets -->|"uses styles"| node_theme
node_app -.->|"draws logo"| node_branding
node_entry -->|"manages tray"| node_tray
node_tray -->|"routes commands"| node_app

click node_app "https://github.com/memati8383/tengri/blob/main/src/app.cpp"
click node_entry "https://github.com/memati8383/tengri/blob/main/src/main.cpp"
click node_tray "https://github.com/memati8383/tengri/blob/main/src/tray.cpp"
click node_dashboard "https://github.com/memati8383/tengri/blob/main/src/app.cpp"
click node_cleaner "https://github.com/memati8383/tengri/blob/main/src/core/cleaner.cpp"
click node_sysinfo "https://github.com/memati8383/tengri/blob/main/src/core/sysinfo.cpp"
click node_sysinfo_detail "https://github.com/memati8383/tengri/blob/main/src/core/sysinfo_detail.cpp"
click node_sysinfo_wmi "https://github.com/memati8383/tengri/blob/main/src/core/sysinfo_wmi.cpp"
click node_ram "https://github.com/memati8383/tengri/blob/main/src/core/ram.cpp"
click node_network "https://github.com/memati8383/tengri/blob/main/src/core/network.cpp"
click node_tweaks "https://github.com/memati8383/tengri/blob/main/src/core/tweaks.cpp"
click node_regpack "https://github.com/memati8383/tengri/blob/main/src/core/regpack.cpp"
click node_backup "https://github.com/memati8383/tengri/blob/main/src/core/backup.cpp"
click node_restore "https://github.com/memati8383/tengri/blob/main/src/core/restore.cpp"
click node_startup "https://github.com/memati8383/tengri/blob/main/src/core/startup.cpp"
click node_services "https://github.com/memati8383/tengri/blob/main/src/core/services.cpp"
click node_update "https://github.com/memati8383/tengri/blob/main/src/core/update.cpp"
click node_notifications "https://github.com/memati8383/tengri/blob/main/src/core/notify.cpp"
click node_license "https://github.com/memati8383/tengri/blob/main/src/core/license.cpp"
click node_language "https://github.com/memati8383/tengri/blob/main/src/core/lang.cpp"
click node_widgets "https://github.com/memati8383/tengri/blob/main/src/gui/widgets.cpp"
click node_theme "https://github.com/memati8383/tengri/blob/main/src/gui/theme.cpp"
click node_branding "https://github.com/memati8383/tengri/blob/main/src/gui/logo.cpp"

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_entry,node_tray,node_dashboard,node_update,node_notifications,node_license,node_user toneBlue
class node_cleaner,node_sysinfo,node_sysinfo_detail,node_sysinfo_wmi,node_ram,node_network toneAmber
class node_tweaks,node_regpack,node_backup,node_restore,node_startup,node_services toneMint
class node_language,node_widgets,node_theme,node_branding toneRose
```

## Components

### Application

- [App workflow](https://github.com/memati8383/tengri/blob/main/src/app.cpp): `src/app.cpp`
- [Window lifecycle](https://github.com/memati8383/tengri/blob/main/src/main.cpp): `src/main.cpp`
- [System tray](https://github.com/memati8383/tengri/blob/main/src/tray.cpp): `src/tray.cpp`
- [Dashboard](https://github.com/memati8383/tengri/blob/main/src/app.cpp): `src/app.cpp`
- [Update workflow](https://github.com/memati8383/tengri/blob/main/src/core/update.cpp): `src/core/update.cpp`
- [Notifications](https://github.com/memati8383/tengri/blob/main/src/core/notify.cpp): `src/core/notify.cpp`
- [License demo](https://github.com/memati8383/tengri/blob/main/src/core/license.cpp): `src/core/license.cpp`

### System Tools

- [Cleanup scan](https://github.com/memati8383/tengri/blob/main/src/core/cleaner.cpp): `src/core/cleaner.cpp`
- [System information](https://github.com/memati8383/tengri/blob/main/src/core/sysinfo.cpp): `src/core/sysinfo.cpp`
- [Hardware details](https://github.com/memati8383/tengri/blob/main/src/core/sysinfo_detail.cpp): `src/core/sysinfo_detail.cpp`
- [WMI details](https://github.com/memati8383/tengri/blob/main/src/core/sysinfo_wmi.cpp): `src/core/sysinfo_wmi.cpp`
- [RAM profiles](https://github.com/memati8383/tengri/blob/main/src/core/ram.cpp): `src/core/ram.cpp`
- [Network tools](https://github.com/memati8383/tengri/blob/main/src/core/network.cpp): `src/core/network.cpp`

### Configuration

- [Registry tweaks](https://github.com/memati8383/tengri/blob/main/src/core/tweaks.cpp): `src/core/tweaks.cpp`
- [Tweak registry data](https://github.com/memati8383/tengri/blob/main/src/core/regpack.cpp): `src/core/regpack.cpp`
- [Registry backup](https://github.com/memati8383/tengri/blob/main/src/core/backup.cpp): `src/core/backup.cpp`
- [Registry restore](https://github.com/memati8383/tengri/blob/main/src/core/restore.cpp): `src/core/restore.cpp`
- [Startup manager](https://github.com/memati8383/tengri/blob/main/src/core/startup.cpp): `src/core/startup.cpp`
- [Service profiles](https://github.com/memati8383/tengri/blob/main/src/core/services.cpp): `src/core/services.cpp`

### Interface

- [Language support](https://github.com/memati8383/tengri/blob/main/src/core/lang.cpp): `src/core/lang.cpp`
- [UI widgets](https://github.com/memati8383/tengri/blob/main/src/gui/widgets.cpp): `src/gui/widgets.cpp`
- [Theme and fonts](https://github.com/memati8383/tengri/blob/main/src/gui/theme.cpp): `src/gui/theme.cpp`
- [Brand artwork](https://github.com/memati8383/tengri/blob/main/src/gui/logo.cpp): `src/gui/logo.cpp`

### Other components

- **User**

## Connections

- User → Window lifecycle: launches (evidence: `src/main.cpp`)
- Window lifecycle → App workflow: initializes (evidence: `src/main.cpp`)
- User → App workflow: uses screens (evidence: `README.md`)
- App workflow → Dashboard: renders (evidence: `README.md`)
- App workflow → Cleanup scan: runs scans (evidence: `README.md`)
- App workflow → System information: reads metrics (evidence: `src/app.cpp`)
- System information → Hardware details: uses details
- System information → WMI details: queries WMI
- App workflow → RAM profiles: offers profiles (evidence: `README.md`)
- App workflow → Network tools: offers network tools (evidence: `README.md`)
- App workflow → Registry tweaks: applies settings (evidence: `README.md`)
- Registry tweaks → Tweak registry data: uses tweak data (evidence: `src/core/tweaks.cpp`)
- App workflow → Registry backup: backs up before apply (evidence: `README.md`)
- App workflow → Registry restore: requests restore (evidence: `README.md`)
- App workflow → Startup manager: manages startup (evidence: `README.md`)
- App workflow → Service profiles: manages profiles (evidence: `README.md`)
- App workflow → Update workflow: checks updates (evidence: `src/app.cpp`)
- App workflow → Notifications: posts updates (evidence: `src/app.cpp`)
- App workflow → License demo: shows demo (evidence: `README.md`)
- App workflow → Language support: localizes screens (evidence: `README.md`)
- App workflow → UI widgets: draws controls (evidence: `src/app.cpp`)
- UI widgets → Theme and fonts: uses styles (evidence: `src/gui/widgets.cpp`)
- App workflow → Brand artwork: draws logo (evidence: `src/app.cpp`)
- Window lifecycle → System tray: manages tray (evidence: `src/main.cpp`)
- System tray → App workflow: routes commands (evidence: `src/tray.cpp`)
