No description
  • Go 87.2%
  • HTML 9.6%
  • PLpgSQL 1.4%
  • CSS 1.1%
  • Dockerfile 0.4%
  • Other 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-23 08:28:02 +01:00
api/v1alpha1 feat: bootstrap the portal and operator skeleton 2026-11-22 11:31:41 +01:00
cmd feat: bootstrap the portal and operator skeleton 2026-11-22 11:31:41 +01:00
config feat: bootstrap the portal and operator skeleton 2026-11-22 11:31:41 +01:00
docs feat(web): organisation switcher and account menu in the top bar 2026-11-23 08:28:02 +01:00
internal feat(web): organisation switcher and account menu in the top bar 2026-11-23 08:28:02 +01:00
.air.toml feat: bootstrap the portal and operator skeleton 2026-11-22 11:31:41 +01:00
.dockerignore feat: bootstrap the portal and operator skeleton 2026-11-22 11:31:41 +01:00
.env.example feat: accounts and organisations 2026-11-23 08:20:17 +01:00
.gitignore feat: bootstrap the portal and operator skeleton 2026-11-22 11:31:41 +01:00
.golangci.yml feat: bootstrap the portal and operator skeleton 2026-11-22 11:31:41 +01:00
AGENTS.md feat: accounts and organisations 2026-11-23 08:20:17 +01:00
CLAUDE.md feat: bootstrap the portal and operator skeleton 2026-11-22 11:31:41 +01:00
docker-compose.yml feat: accounts and organisations 2026-11-23 08:20:17 +01:00
Dockerfile feat: bootstrap the portal and operator skeleton 2026-11-22 11:31:41 +01:00
Dockerfile.dev feat: bootstrap the portal and operator skeleton 2026-11-22 11:31:41 +01:00
go.mod feat: accounts and organisations 2026-11-23 08:20:17 +01:00
go.sum feat: accounts and organisations 2026-11-23 08:20:17 +01:00
mise.toml feat: bootstrap the portal and operator skeleton 2026-11-22 11:31:41 +01:00
README.md feat: bootstrap the portal and operator skeleton 2026-11-22 11:31:41 +01:00
sqlc.yaml feat: accounts and organisations 2026-11-23 08:20:17 +01:00
Taskfile.yml feat: bootstrap the portal and operator skeleton 2026-11-22 11:31:41 +01:00

Atrium

Atrium is the self-service portal of the Lidisoft ecosystem. Clients use it to:

  • order a hosted instance of a Lidisoft product (Tocsin or Horizon),
  • see where it lives (its URL) and how to log in for the first time,
  • pay for it through Stripe and manage their subscription.

Atrium also provisions the instances itself on Kubernetes, through a Kubernetes operator that ships in this repository.

At a glance

Concern Choice
Language Go for everything (portal and operator)
Stack Same as Horizon: Gin, pgx, sqlc, goose, zerolog, urfave/cli, Task
Portal UI Server-rendered html/template pages with LDS, no third-party JS
Portal storage PostgreSQL
Accounts Atrium-managed accounts, organisations with roles (owner/admin/member)
Payments Stripe Checkout + Stripe Customer Portal, flat monthly/yearly plans
Tax EUR only, Stripe Tax (EU VAT, B2B reverse charge)
Provisioning One CRD per product (TocsinInstance, HorizonInstance) + operator
Instance URL https://<org-slug>.lidisoft.app/tocsin, https://<org-slug>.lidisoft.app/horizon
Isolation One Kubernetes namespace per organisation
Instance data Per-instance PostgreSQL via CloudNativePG
Deployment Portal on a VM (systemd); operator in the workload cluster

Components

            ┌──────────────┐  Checkout / Portal   ┌──────────┐
 Client ───▶│ Atrium portal│◀────── webhooks ─────│  Stripe  │
 (browser)  │  (Go, htmx)  │─────── API ─────────▶│          │
            └──────┬───────┘                      └──────────┘
                   │ Postgres (orgs, users, subscriptions)
                   │
                   │ K8s API (scoped ServiceAccount):
                   │ create/update TocsinInstance / HorizonInstance,
                   │ read .status
                   ▼
            ┌──────────────────────── workload cluster ──────────────────────┐
            │  atrium-operator ──reconciles──▶ org-<slug> namespace          │
            │                                  ├─ Tocsin  (Deployment, CNPG) │
            │                                  └─ Horizon (Deployment, CNPG) │
            └────────────────────────────────────────────────────────────────┘

Documentation