# starchdev/ghostty-mgr architecture

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

- Interactive diagram: https://gitdiagram.com/starchdev/ghostty-mgr
- Repository: https://github.com/starchdev/ghostty-mgr

## Overview

Ghostty Configuration Manager is a lightweight TUI for managing Ghostty settings and related terminal setup. The main workflow is a user choosing a theme or cursor shader, with the manager opening Ghostty’s theme browser or updating shader configuration. A separate Starship assistant detects the Linux distribution and offers its package-manager command. The installer places the manager in the user’s local bin and configures shell startup files. No source excerpts were provided, so relationships below are limited to README-documented behavior.

Main entry points: [`ghostty-mgr.sh`](https://github.com/starchdev/ghostty-mgr/blob/main/ghostty-mgr.sh) (TUI Manager), [`install.sh`](https://github.com/starchdev/ghostty-mgr/blob/main/install.sh) (Installer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_manager["Manager Features"]
  node_manager["TUI Manager<br/>[ghostty-mgr.sh]"]
  node_themes["Theme Switcher<br/>[ghostty-mgr.sh]"]
  node_shaders["Shader Selector<br/>[ghostty-mgr.sh]"]
  node_starship["Starship Assistant<br/>[ghostty-mgr.sh]"]
end

subgraph group_integrations["External Integrations"]
  node_ghostty["Ghostty Theme Browser"]
  node_config["Ghostty Configuration"]
  node_distro["Linux Distribution"]
  node_package_manager["Package Manager"]
end

subgraph group_setup["Installation Setup"]
  node_installer["Installer<br/>[install.sh]"]
  node_shell_files["Shell Startup Files"]
  node_local_bin["User Local Bin"]
end

node_user(("User"))

node_user -->|"uses"| node_manager
node_manager -->|"offers"| node_themes
node_themes -->|"opens browser"| node_ghostty
node_manager -->|"offers"| node_shaders
node_shaders -->|"updates shader settings"| node_config
node_manager -->|"offers"| node_starship
node_starship -->|"detects"| node_distro
node_starship -->|"provides install command"| node_package_manager
node_user -->|"runs"| node_installer
node_installer -->|"installs manager"| node_local_bin
node_installer -->|"configures"| node_shell_files

click node_manager "https://github.com/starchdev/ghostty-mgr/blob/main/ghostty-mgr.sh"
click node_themes "https://github.com/starchdev/ghostty-mgr/blob/main/ghostty-mgr.sh"
click node_shaders "https://github.com/starchdev/ghostty-mgr/blob/main/ghostty-mgr.sh"
click node_starship "https://github.com/starchdev/ghostty-mgr/blob/main/ghostty-mgr.sh"
click node_installer "https://github.com/starchdev/ghostty-mgr/blob/main/install.sh"

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_manager,node_themes,node_shaders,node_starship,node_user toneBlue
class node_ghostty,node_config,node_distro,node_package_manager toneAmber
class node_installer,node_shell_files,node_local_bin toneMint
```

## Components

### Manager Features

- [TUI Manager](https://github.com/starchdev/ghostty-mgr/blob/main/ghostty-mgr.sh): `ghostty-mgr.sh`
- [Theme Switcher](https://github.com/starchdev/ghostty-mgr/blob/main/ghostty-mgr.sh): `ghostty-mgr.sh`
- [Shader Selector](https://github.com/starchdev/ghostty-mgr/blob/main/ghostty-mgr.sh): `ghostty-mgr.sh`
- [Starship Assistant](https://github.com/starchdev/ghostty-mgr/blob/main/ghostty-mgr.sh): `ghostty-mgr.sh`

### External Integrations

- **Ghostty Theme Browser**
- **Ghostty Configuration**
- **Linux Distribution**
- **Package Manager**

### Installation Setup

- [Installer](https://github.com/starchdev/ghostty-mgr/blob/main/install.sh): `install.sh`
- **Shell Startup Files**
- **User Local Bin**

### Other components

- **User**

## Connections

- User → TUI Manager: uses (evidence: `README.md`)
- TUI Manager → Theme Switcher: offers (evidence: `README.md`)
- Theme Switcher → Ghostty Theme Browser: opens browser (evidence: `README.md`)
- TUI Manager → Shader Selector: offers (evidence: `README.md`)
- Shader Selector → Ghostty Configuration: updates shader settings (evidence: `README.md`)
- TUI Manager → Starship Assistant: offers (evidence: `README.md`)
- Starship Assistant → Linux Distribution: detects (evidence: `README.md`)
- Starship Assistant → Package Manager: provides install command (evidence: `README.md`)
- User → Installer: runs (evidence: `README.md`)
- Installer → User Local Bin: installs manager (evidence: `README.md`)
- Installer → Shell Startup Files: configures (evidence: `README.md`)
