# abdulaziz-hu/cruciblecode architecture

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

## Overview

CrucibleCode is a native Qt IDE for C, C++, and C#, with additional web and scripting workflows. Users open a project, edit and navigate files, then build or run code, inspect diagnostics, and manage source control. The graph also preserves documented editor, terminal, theme, language-server, template, and update capabilities. Most product relationships come from the README; source excerpts confirm selected orchestration and implementation details, so unsampled internals are represented only where documented.

Main entry points: [`src/MainWindow.cpp`](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/MainWindow.cpp) (IDE Window), [`src/CodeEditor.cpp`](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/CodeEditor.cpp) (Code Editor), [`src/ThemeManager.cpp`](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/ThemeManager.cpp) (Theme Manager), [`src/LspManager.cpp`](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/LspManager.cpp) (LSP Manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Workspace and Editing"]
  node_main["IDE Window<br/>[MainWindow.cpp]"]
  node_editor["Code Editor<br/>[CodeEditor.cpp]"]
  node_highlight["Syntax Highlighting"]
  node_search["Find in Files<br/>[SearchPanel.cpp]"]
  node_viewers["File Viewers<br/>[FileViewers.cpp]"]
  node_templates["Project Templates"]
end

subgraph group_execution["Build and Run"]
  node_build["Build Manager<br/>[BuildManager.cpp]"]
  node_toolchains["Build Tools"]
  node_terminal["Terminal Panel<br/>[TerminalPanel.cpp]"]
  node_pty["PTY Process<br/>[PtyProcess.cpp]"]
  node_runhelper["Run Helper<br/>[RunHelper.cpp]"]
end

subgraph group_integrations["Developer Integrations"]
  node_gitpanel["Source Control Panel<br/>[GitPanel.cpp]"]
  node_git["Git Manager<br/>[GitManager.cpp]"]
  node_gitcli["Git CLI"]
  node_lspmanager["LSP Manager<br/>[LspManager.cpp]"]
  node_lspclient["LSP Client<br/>[LspClient.cpp]"]
  node_language_servers["Language Servers"]
  node_live["Live Server Control<br/>[LiveServer.cpp]"]
  node_python_server["Python Web Server<br/>[live_server.py]"]
  node_spell["Spell Checker<br/>[SpellChecker.cpp]"]
  node_ai["AI Completion<br/>[AiCompletion.cpp]"]
end

subgraph group_experience["IDE Experience"]
  node_theme_manager["Theme Manager<br/>[ThemeManager.cpp]"]
  node_theme_css["Theme CSS<br/>[ThemeCss.cpp]"]
  node_theme_library["Theme Library<br/>[ThemeLibrary.cpp]"]
  node_marketplace["Theme Marketplace"]
  node_shortcuts["Shortcut Manager"]
  node_snippets["Snippet Engine<br/>[Snippets.cpp]"]
end

subgraph group_maintenance["Customization and Updates"]
  node_updater["Updater<br/>[Updater.cpp]"]
  node_update_dialog["Update Dialog<br/>[UpdateDialog.cpp]"]
end

node_developer(("Developer"))
node_release_api["GitHub Releases API"]
node_browser["Web Browser"]

node_developer -->|"uses"| node_main
node_main -->|"opens files"| node_editor
node_editor -->|"highlights text"| node_highlight
node_main -->|"hosts search"| node_search
node_main -->|"opens previews"| node_viewers
node_main -->|"creates projects"| node_templates
node_main -->|"controls builds"| node_build
node_build -->|"runs builds"| node_toolchains
node_main -->|"hosts terminals"| node_terminal
node_terminal -.->|"starts processes"| node_pty
node_main -->|"runs files"| node_runhelper
node_main -->|"shows source control"| node_gitpanel
node_gitpanel -->|"requests Git operations"| node_git
node_git -->|"runs commands"| node_gitcli
node_main -->|"manages language services"| node_lspmanager
node_lspmanager -->|"syncs documents"| node_editor
node_lspmanager -->|"starts clients"| node_lspclient
node_lspclient -->|"exchanges JSON-RPC"| node_language_servers
node_main -->|"controls live preview"| node_live
node_live -.->|"starts server"| node_python_server
node_live -->|"opens page"| node_browser
node_editor -->|"checks spelling"| node_spell
node_editor -->|"requests suggestions"| node_ai
node_main -->|"configures completion"| node_ai
node_main -->|"selects themes"| node_theme_manager
node_theme_manager -->|"serializes CSS"| node_theme_css
node_theme_manager -->|"loads themes"| node_theme_library
node_main -->|"offers theme marketplace"| node_marketplace
node_marketplace -->|"applies themes"| node_theme_manager
node_marketplace -->|"imports theme CSS"| node_theme_css
node_main -->|"registers commands"| node_shortcuts
node_main -->|"offers snippets"| node_snippets
node_editor -->|"expands triggers"| node_snippets
node_main -->|"checks updates"| node_updater
node_updater -->|"queries releases"| node_release_api
node_updater -->|"presents updates"| node_update_dialog

click node_main "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/MainWindow.cpp"
click node_editor "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/CodeEditor.cpp"
click node_highlight "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/SyntaxHighlighter.cpp"
click node_search "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/SearchPanel.cpp"
click node_viewers "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/FileViewers.cpp"
click node_templates "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/ProjectTemplates.cpp"
click node_build "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/BuildManager.cpp"
click node_terminal "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/TerminalPanel.cpp"
click node_pty "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/PtyProcess.cpp"
click node_runhelper "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/RunHelper.cpp"
click node_gitpanel "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/GitPanel.cpp"
click node_git "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/GitManager.cpp"
click node_lspmanager "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/LspManager.cpp"
click node_lspclient "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/LspClient.cpp"
click node_live "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/LiveServer.cpp"
click node_python_server "https://github.com/abdulaziz-hu/cruciblecode/blob/main/resources/web/live_server.py"
click node_spell "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/SpellChecker.cpp"
click node_ai "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/AiCompletion.cpp"
click node_theme_manager "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/ThemeManager.cpp"
click node_theme_css "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/ThemeCss.cpp"
click node_theme_library "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/ThemeLibrary.cpp"
click node_marketplace "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/ThemeMarketplace.cpp"
click node_shortcuts "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/ShortcutManager.cpp"
click node_snippets "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/Snippets.cpp"
click node_updater "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/Updater.cpp"
click node_update_dialog "https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/UpdateDialog.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_main,node_editor,node_highlight,node_search,node_viewers,node_templates,node_browser toneBlue
class node_build,node_toolchains,node_terminal,node_pty,node_runhelper toneAmber
class node_gitpanel,node_git,node_gitcli,node_lspmanager,node_lspclient,node_language_servers,node_live,node_python_server,node_spell,node_ai,node_release_api toneMint
class node_theme_manager,node_theme_css,node_theme_library,node_marketplace,node_shortcuts,node_snippets toneRose
class node_updater,node_update_dialog,node_developer toneIndigo
```

## Components

### Workspace and Editing

- [IDE Window](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/MainWindow.cpp): `src/MainWindow.cpp`
- [Code Editor](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/CodeEditor.cpp): `src/CodeEditor.cpp`
- [Syntax Highlighting](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/SyntaxHighlighter.cpp): `src/SyntaxHighlighter.cpp`
- [Find in Files](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/SearchPanel.cpp): `src/SearchPanel.cpp`
- [File Viewers](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/FileViewers.cpp): `src/FileViewers.cpp`
- [Project Templates](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/ProjectTemplates.cpp): `src/ProjectTemplates.cpp`

### Build and Run

- [Build Manager](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/BuildManager.cpp): `src/BuildManager.cpp`
- **Build Tools**
- [Terminal Panel](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/TerminalPanel.cpp): `src/TerminalPanel.cpp`
- [PTY Process](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/PtyProcess.cpp): `src/PtyProcess.cpp`
- [Run Helper](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/RunHelper.cpp): `src/RunHelper.cpp`

### Developer Integrations

- [Source Control Panel](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/GitPanel.cpp): `src/GitPanel.cpp`
- [Git Manager](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/GitManager.cpp): `src/GitManager.cpp`
- **Git CLI**
- [LSP Manager](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/LspManager.cpp): `src/LspManager.cpp`
- [LSP Client](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/LspClient.cpp): `src/LspClient.cpp`
- **Language Servers**
- [Live Server Control](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/LiveServer.cpp): `src/LiveServer.cpp`
- [Python Web Server](https://github.com/abdulaziz-hu/cruciblecode/blob/main/resources/web/live_server.py): `resources/web/live_server.py`
- [Spell Checker](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/SpellChecker.cpp): `src/SpellChecker.cpp`
- [AI Completion](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/AiCompletion.cpp): `src/AiCompletion.cpp`

### IDE Experience

- [Theme Manager](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/ThemeManager.cpp): `src/ThemeManager.cpp`
- [Theme CSS](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/ThemeCss.cpp): `src/ThemeCss.cpp`
- [Theme Library](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/ThemeLibrary.cpp): `src/ThemeLibrary.cpp`
- [Theme Marketplace](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/ThemeMarketplace.cpp): `src/ThemeMarketplace.cpp`
- [Shortcut Manager](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/ShortcutManager.cpp): `src/ShortcutManager.cpp`
- [Snippet Engine](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/Snippets.cpp): `src/Snippets.cpp`

### Customization and Updates

- [Updater](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/Updater.cpp): `src/Updater.cpp`
- [Update Dialog](https://github.com/abdulaziz-hu/cruciblecode/blob/main/src/UpdateDialog.cpp): `src/UpdateDialog.cpp`

### Other components

- **Developer**
- **GitHub Releases API**
- **Web Browser**

## Connections

- Developer → IDE Window: uses
- IDE Window → Code Editor: opens files (evidence: `src/MainWindow.cpp`)
- Code Editor → Syntax Highlighting: highlights text (evidence: `src/CodeEditor.cpp`)
- IDE Window → Find in Files: hosts search
- IDE Window → File Viewers: opens previews (evidence: `src/MainWindow.cpp`)
- IDE Window → Project Templates: creates projects
- IDE Window → Build Manager: controls builds
- Build Manager → Build Tools: runs builds (evidence: `src/BuildManager.cpp`)
- IDE Window → Terminal Panel: hosts terminals
- Terminal Panel → PTY Process: starts processes
- IDE Window → Run Helper: runs files
- IDE Window → Source Control Panel: shows source control
- Source Control Panel → Git Manager: requests Git operations
- Git Manager → Git CLI: runs commands
- IDE Window → LSP Manager: manages language services (evidence: `src/MainWindow.cpp`)
- LSP Manager → Code Editor: syncs documents (evidence: `src/LspManager.cpp`)
- LSP Manager → LSP Client: starts clients (evidence: `src/LspManager.cpp`)
- LSP Client → Language Servers: exchanges JSON-RPC
- IDE Window → Live Server Control: controls live preview
- Live Server Control → Python Web Server: starts server
- Live Server Control → Web Browser: opens page
- Code Editor → Spell Checker: checks spelling (evidence: `src/CodeEditor.cpp`)
- Code Editor → AI Completion: requests suggestions (evidence: `src/CodeEditor.cpp`)
- IDE Window → AI Completion: configures completion (evidence: `src/MainWindow.cpp`)
- IDE Window → Theme Manager: selects themes
- Theme Manager → Theme CSS: serializes CSS (evidence: `src/ThemeManager.cpp`)
- Theme Manager → Theme Library: loads themes (evidence: `src/ThemeManager.cpp`)
- IDE Window → Theme Marketplace: offers theme marketplace
- Theme Marketplace → Theme Manager: applies themes
- Theme Marketplace → Theme CSS: imports theme CSS
- IDE Window → Shortcut Manager: registers commands
- IDE Window → Snippet Engine: offers snippets
- Code Editor → Snippet Engine: expands triggers
- IDE Window → Updater: checks updates
- Updater → GitHub Releases API: queries releases
- Updater → Update Dialog: presents updates
