# themodcraft-tmc/vessel-hq architecture

> Architecture diagram of the GitHub repository themodcraft-tmc/vessel-hq, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/themodcraft-tmc/vessel-hq
- Repository: https://github.com/themodcraft-tmc/vessel-hq

## Overview

Vessel HQ is a Portainer CE-derived container-management console. The principal workflow is an operator using the web console to select an environment, inspect or configure resources, and have the Go API act on Docker, Swarm, Podman, Kubernetes, or Azure ACI. The graph also preserves major documented branches—GitOps and Vault, access control, registries, activity/realtime, webhooks, and HA. Source excerpts are sparse, so several subsystem links are dashed and unverified; README-supported capabilities are included without implying their internals were inspected.

Main entry points: [`backend-src/api/http/handler`](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/http/handler) (HTTP handlers), [`web-src`](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/web-src) (Web console), [`backend-src/api/docker`](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/docker) (Docker management), [`backend-src/api/http/handler/kubernetes`](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/http/handler/kubernetes) (Kubernetes management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_console["Operator console"]
  node_web["Web console"]
end

subgraph group_api["API and control"]
  node_auth["Authentication"]
  node_http["HTTP handlers"]
  node_datastore[("Persistent datastore")]
end

subgraph group_integrations["Runtime integrations"]
  node_docker["Docker management"]
  node_kubernetes["Kubernetes management"]
  node_edge["Edge management"]
end

subgraph group_capabilities["Product capabilities"]
  node_gitops["GitOps workflows"]
  node_vault["Vault sources"]
  node_access["Access control"]
  node_registries["Registry management"]
  node_activity["Activity and realtime"]
  node_webhooks["Webhook delivery"]
  node_ha["Shared-storage HA"]
end

node_operator(("Operator"))
node_external["Managed environments"]

node_operator -->|"uses"| node_web
node_web -.->|"requests"| node_http
node_http -.->|"authenticates"| node_auth
node_http -.->|"manages"| node_docker
node_http -.->|"manages"| node_kubernetes
node_http -.->|"coordinates"| node_edge
node_docker -.->|"controls"| node_external
node_kubernetes -.->|"controls"| node_external
node_edge -.->|"coordinates"| node_external
node_http -.->|"supports"| node_gitops
node_gitops -.->|"uses sources"| node_vault
node_http -.->|"enforces"| node_access
node_http -.->|"manages"| node_registries
node_http -.->|"records"| node_activity
node_http -.->|"dispatches"| node_webhooks
node_http -.->|"supports"| node_ha
node_http -.->|"persists"| node_datastore

click node_web "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/web-src"
click node_auth "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/http/handler/auth"
click node_http "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/http/handler"
click node_docker "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/docker"
click node_kubernetes "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/http/handler/kubernetes"
click node_edge "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/edge"
click node_gitops "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/gitops"
click node_vault "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/http/handler/gitops/sources"
click node_access "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/dataservices/role"
click node_registries "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/http/handler/registries"
click node_activity "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/dataservices/activitylog"
click node_webhooks "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/dataservices/webhook"
click node_ha "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/ha"
click node_datastore "https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/datastore"

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_web toneBlue
class node_auth,node_http,node_datastore toneAmber
class node_docker,node_kubernetes,node_edge toneMint
class node_gitops,node_vault,node_access,node_registries,node_activity,node_webhooks,node_ha toneRose
class node_operator,node_external toneIndigo
```

## Components

### Operator console

- [Web console](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/web-src): `web-src`

### API and control

- [Authentication](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/http/handler/auth): `backend-src/api/http/handler/auth`
- [HTTP handlers](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/http/handler): `backend-src/api/http/handler`
- [Persistent datastore](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/datastore): `backend-src/api/datastore`

### Runtime integrations

- [Docker management](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/docker): `backend-src/api/docker`
- [Kubernetes management](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/http/handler/kubernetes): `backend-src/api/http/handler/kubernetes`
- [Edge management](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/edge): `backend-src/api/edge`

### Product capabilities

- [GitOps workflows](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/gitops): `backend-src/api/gitops`
- [Vault sources](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/http/handler/gitops/sources): `backend-src/api/http/handler/gitops/sources`
- [Access control](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/dataservices/role): `backend-src/api/dataservices/role`
- [Registry management](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/http/handler/registries): `backend-src/api/http/handler/registries`
- [Activity and realtime](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/dataservices/activitylog): `backend-src/api/dataservices/activitylog`
- [Webhook delivery](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/dataservices/webhook): `backend-src/api/dataservices/webhook`
- [Shared-storage HA](https://github.com/themodcraft-tmc/vessel-hq/tree/develop/backend-src/api/ha): `backend-src/api/ha`

### Other components

- **Operator**
- **Managed environments**

## Connections

- Operator → Web console: uses (evidence: `README.md`)
- Web console → HTTP handlers: requests
- HTTP handlers → Authentication: authenticates
- HTTP handlers → Docker management: manages
- HTTP handlers → Kubernetes management: manages
- HTTP handlers → Edge management: coordinates
- Docker management → Managed environments: controls
- Kubernetes management → Managed environments: controls
- Edge management → Managed environments: coordinates
- HTTP handlers → GitOps workflows: supports
- GitOps workflows → Vault sources: uses sources
- HTTP handlers → Access control: enforces
- HTTP handlers → Registry management: manages
- HTTP handlers → Activity and realtime: records
- HTTP handlers → Webhook delivery: dispatches
- HTTP handlers → Shared-storage HA: supports
- HTTP handlers → Persistent datastore: persists
