Docs
Internal

Architecture

Every box is an Elixir context — a bounded domain with its own schema, queries, and business logic. Arrows show data dependencies.

Core · Infrastructure Domain · Contexts Integrations · Providers
Layers
Core Infrastructure
Domain Contexts
Integrations / Providers
Shared / Cross-cutting
Layer 1 — Core Infrastructure
Application

Supervision tree & startup

application.ex
Repo

Ecto database ops

repo.ex
Vault

Encryption/decryption

vault.ex
Encrypted

Cloak Ecto types

Binary · Map
QueryHelpers

Visibility filters

accessible_to/3
Mailer

Swoosh email delivery

mailer.ex
Release

Production utilities

release.ex
used by
Layer 2 — Domain Contexts
Accounts
M:002

User auth, registration, sessions, OAuth integration flows

accounts.ex
user.ex · user_token.ex
user_notifier.ex · scope.ex
→ Vault → Mailer
Workspaces
M:001

Org units grouping users, services, and shared resources

workspaces.ex
workspace.ex · member.ex
owner admin member
Services
M:005

App/workload management, deployment registry config

services.ex
service.ex · service_registry.ex
→ Workspaces
Deployments
M:008

Deployment lifecycle, status tracking, log management

deployments.ex
deployment.ex · worker.ex
deployment_server.ex GenServer
deployment_supervisor.ex GenServer
→ Services → Providers
Hosts
M:004

Compute targets with encrypted credentials

hosts.ex · host.ex
→ Encrypted.Map → QueryHelpers
Sources
M:003

Code repos & container registries with auth

sources.ex · source.ex
→ Encrypted.Map → QueryHelpers
Probes
M:006

Host agents streaming metrics & logs

probes.ex · probe.ex
→ Hosts
Dashboards
M:009

Visualization dashboards, panels & tabs navigation

dashboards.ex · dashboard.ex
panel.ex
tabs/ tab_manager.ex GenServer
→ Workspaces
integrated via
Layer 3 — Integrations & Providers
Deployment Providers
Fly.io provider + client
fly/client.ex · fly/config.ex
fly/geo.ex · regions_cache.ex
providers/flyio.ex
fly/log_streamer.ex GenServer
RunPod GPU workloads
runpod/client.ex
providers/runpod.ex
Self-Hosted custom infra
providers/self_hosted.ex
via providers/provider.ex behaviour
OAuth & Container Registries
GitLab
gitlab.ex · oauth.ex
client.ex · registry.ex
→ Encrypted.Binary
GitHub
github.ex · oauth.ex
client.ex · registry.ex
→ Encrypted.Binary
Google
google/oauth.ex
→ Encrypted.Binary
Docker Hub
registry/docker_hub.ex
→ Encrypted.Binary
Generated from codebase introspection Caveman · Elixir / Phoenix