# allen-paul-18/projecthub architecture

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

- Interactive diagram: https://gitdiagram.com/allen-paul-18/projecthub
- Repository: https://github.com/allen-paul-18/projecthub

## Overview

Project Hub is a PySide6 desktop dashboard for configuring projects, launching and supervising their processes, viewing output, and monitoring host resources. The main workflow starts at the launcher, opens the coordinated dashboard, loads project configuration, and lets users edit or launch projects; process output and status return to the UI. The graph also preserves the running-project and system-statistics views. Connections for some UI wiring rely on README descriptions because the main-window excerpt is partial; empty or roadmap-only modules are omitted.

Main entry points: [`ui/main_window.py`](https://github.com/allen-paul-18/projecthub/blob/main/ui/main_window.py) (Dashboard coordinator), [`core/process_manager.py`](https://github.com/allen-paul-18/projecthub/blob/main/core/process_manager.py) (Process lifecycle manager), [`launcher.py`](https://github.com/allen-paul-18/projecthub/blob/main/launcher.py) (Application launcher), [`ui/project_card.py`](https://github.com/allen-paul-18/projecthub/blob/main/ui/project_card.py) (Project cards)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_application["Application shell"]
  node_launcher["Application launcher<br/>[launcher.py]"]
  node_main_window["Dashboard coordinator<br/>[main_window.py]"]
end

subgraph group_projects["Project configuration"]
  node_project_manager["Project configuration manager<br/>[project_manager.py]"]
  node_project_editor["Project editor<br/>[project_editor.py]"]
  node_project_card["Project cards<br/>[project_card.py]"]
end

subgraph group_processes["Process operations"]
  node_process_manager["Process lifecycle manager<br/>[process_manager.py]"]
  node_managed_processes["Launched project processes"]
end

subgraph group_monitoring["Monitoring and output"]
  node_running_projects["Running projects view"]
  node_console_panel["Integrated console<br/>[console_panel.py]"]
  node_system_monitor["System metrics collector<br/>[system_monitor.py]"]
  node_system_stats["System statistics view<br/>[system_stats.py]"]
end

node_user(("User"))
node_psutil["psutil host metrics"]

node_user -->|"starts"| node_launcher
node_launcher -->|"opens"| node_main_window
node_main_window -->|"loads and updates"| node_project_manager
node_main_window -->|"opens"| node_project_editor
node_main_window -->|"coordinates"| node_project_card
node_main_window -->|"coordinates"| node_process_manager
node_main_window -->|"shows"| node_running_projects
node_main_window -->|"displays output"| node_console_panel
node_project_card -->|"emits actions"| node_main_window
node_main_window -->|"launches and stops"| node_process_manager
node_process_manager -->|"starts and tracks"| node_managed_processes
node_process_manager -->|"forwards output"| node_console_panel
node_running_projects -->|"queries and stops"| node_process_manager
node_system_stats -->|"requests metrics"| node_system_monitor
node_system_monitor -->|"reads metrics"| node_psutil
node_main_window -->|"presents statistics"| node_system_stats

click node_launcher "https://github.com/allen-paul-18/projecthub/blob/main/launcher.py"
click node_main_window "https://github.com/allen-paul-18/projecthub/blob/main/ui/main_window.py"
click node_project_manager "https://github.com/allen-paul-18/projecthub/blob/main/core/project_manager.py"
click node_project_editor "https://github.com/allen-paul-18/projecthub/blob/main/ui/project_editor.py"
click node_project_card "https://github.com/allen-paul-18/projecthub/blob/main/ui/project_card.py"
click node_process_manager "https://github.com/allen-paul-18/projecthub/blob/main/core/process_manager.py"
click node_running_projects "https://github.com/allen-paul-18/projecthub/blob/main/ui/running_projects.py"
click node_console_panel "https://github.com/allen-paul-18/projecthub/blob/main/ui/console_panel.py"
click node_system_monitor "https://github.com/allen-paul-18/projecthub/blob/main/core/system_monitor.py"
click node_system_stats "https://github.com/allen-paul-18/projecthub/blob/main/ui/system_stats.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_launcher,node_main_window,node_user toneBlue
class node_project_manager,node_project_editor,node_project_card toneAmber
class node_process_manager,node_managed_processes toneMint
class node_running_projects,node_console_panel,node_system_monitor,node_system_stats toneRose
class node_psutil toneIndigo
```

## Components

### Application shell

- [Application launcher](https://github.com/allen-paul-18/projecthub/blob/main/launcher.py): `launcher.py`
- [Dashboard coordinator](https://github.com/allen-paul-18/projecthub/blob/main/ui/main_window.py): `ui/main_window.py`

### Project configuration

- [Project configuration manager](https://github.com/allen-paul-18/projecthub/blob/main/core/project_manager.py): `core/project_manager.py`
- [Project editor](https://github.com/allen-paul-18/projecthub/blob/main/ui/project_editor.py): `ui/project_editor.py`
- [Project cards](https://github.com/allen-paul-18/projecthub/blob/main/ui/project_card.py): `ui/project_card.py`

### Process operations

- [Process lifecycle manager](https://github.com/allen-paul-18/projecthub/blob/main/core/process_manager.py): `core/process_manager.py`
- **Launched project processes**

### Monitoring and output

- [Running projects view](https://github.com/allen-paul-18/projecthub/blob/main/ui/running_projects.py): `ui/running_projects.py`
- [Integrated console](https://github.com/allen-paul-18/projecthub/blob/main/ui/console_panel.py): `ui/console_panel.py`
- [System metrics collector](https://github.com/allen-paul-18/projecthub/blob/main/core/system_monitor.py): `core/system_monitor.py`
- [System statistics view](https://github.com/allen-paul-18/projecthub/blob/main/ui/system_stats.py): `ui/system_stats.py`

### Other components

- **User**
- **psutil host metrics**

## Connections

- User → Application launcher: starts (evidence: `README.md`)
- Application launcher → Dashboard coordinator: opens (evidence: `launcher.py`)
- Dashboard coordinator → Project configuration manager: loads and updates (evidence: `README.md`)
- Dashboard coordinator → Project editor: opens (evidence: `ui/main_window.py`)
- Dashboard coordinator → Project cards: coordinates (evidence: `README.md`)
- Dashboard coordinator → Process lifecycle manager: coordinates (evidence: `README.md`)
- Dashboard coordinator → Running projects view: shows (evidence: `ui/main_window.py`)
- Dashboard coordinator → Integrated console: displays output (evidence: `ui/main_window.py`)
- Project cards → Dashboard coordinator: emits actions (evidence: `ui/project_card.py`)
- Dashboard coordinator → Process lifecycle manager: launches and stops (evidence: `README.md`)
- Process lifecycle manager → Launched project processes: starts and tracks (evidence: `core/process_manager.py`)
- Process lifecycle manager → Integrated console: forwards output (evidence: `README.md`)
- Running projects view → Process lifecycle manager: queries and stops (evidence: `ui/running_projects.py`)
- System statistics view → System metrics collector: requests metrics (evidence: `ui/system_stats.py`)
- System metrics collector → psutil host metrics: reads metrics (evidence: `core/system_monitor.py`)
- Dashboard coordinator → System statistics view: presents statistics (evidence: `README.md`)
