# controlwrath/happ architecture

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

- Interactive diagram: https://gitdiagram.com/controlwrath/happ
- Repository: https://github.com/controlwrath/happ

## Overview

Happ is documented as a local, cross-platform manager for user-supplied Xray connection profiles. The documented workflow is to create or import profiles, edit their connection and routing settings, keep them locally, and select a profile for use. The README also names supported protocols and platform coverage, but this repository snapshot contains no source excerpts, so the graph describes documented responsibilities rather than verified implementation calls. No server, cloud sync, or bundled VPN service is documented.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_profile_workflow["Profile management"]
  node_app_ui["App interface"]
  node_profile_management["Profile management"]
  node_config_import["Configuration import"]
  node_profile_editing["Profile editing"]
  node_profile_activation["Profile selection"]
end

subgraph group_local_data["Local configuration"]
  node_local_profiles[("Local profiles")]
  node_imported_files["Prepared config files"]
  node_routing_settings["Routing settings"]
  node_connection_settings["Connection settings"]
end

subgraph group_platforms["Supported technologies"]
  node_xray_protocols["Xray protocols"]
  node_supported_platforms["App platforms"]
end

node_user(("User"))

node_user -->|"uses"| node_app_ui
node_app_ui -->|"manages"| node_profile_management
node_user -->|"imports"| node_config_import
node_config_import -->|"reads locally"| node_imported_files
node_profile_management -->|"stores profiles"| node_local_profiles
node_profile_management -->|"edits profiles"| node_profile_editing
node_profile_editing -->|"changes"| node_connection_settings
node_profile_editing -->|"changes"| node_routing_settings
node_profile_management -->|"selects profile"| node_profile_activation
node_profile_activation -->|"uses profile"| node_local_profiles
node_local_profiles -->|"contains configs"| node_xray_protocols
node_user -->|"runs app"| node_supported_platforms

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_ui,node_profile_management,node_config_import,node_profile_editing,node_profile_activation,node_user toneBlue
class node_local_profiles,node_imported_files,node_routing_settings,node_connection_settings toneAmber
class node_xray_protocols,node_supported_platforms toneMint
```

## Components

### Profile management

- **App interface**
- **Profile management**
- **Configuration import**
- **Profile editing**
- **Profile selection**

### Local configuration

- **Local profiles**
- **Prepared config files**
- **Routing settings**
- **Connection settings**

### Supported technologies

- **Xray protocols**
- **App platforms**

### Other components

- **User**

## Connections

- User → App interface: uses (evidence: `README.md`)
- App interface → Profile management: manages (evidence: `README.md`)
- User → Configuration import: imports (evidence: `README.md`)
- Configuration import → Prepared config files: reads locally (evidence: `README.md`)
- Profile management → Local profiles: stores profiles (evidence: `README.md`)
- Profile management → Profile editing: edits profiles (evidence: `README.md`)
- Profile editing → Connection settings: changes (evidence: `README.md`)
- Profile editing → Routing settings: changes (evidence: `README.md`)
- Profile management → Profile selection: selects profile (evidence: `README.md`)
- Profile selection → Local profiles: uses profile (evidence: `README.md`)
- Local profiles → Xray protocols: contains configs (evidence: `README.md`)
- User → App platforms: runs app (evidence: `README.md`)
