Architecture portfolio

Architecture decision records

An ADR captures one significant decision: the context, the options, the choice and its consequences. Together they explain why the system looks the way it does. They are the most useful document I hand to a team or an architecture review board.

Each record below also has an "At bank scale" section: how the answer changes in a regulated enterprise, and what stays the same.

#DecisionStatus
001One VPS with Docker Compose and Traefik, not Kubernetes
Run every app as a Compose project behind one Traefik reverse proxy on a single 2-vCPU server.
Accepted
002Push-to-deploy with one locked key per app
GitHub Actions deploys over SSH with a key that can run exactly one command for exactly one app.
Accepted
003Encrypted nightly backups, stored offsite
Dump every database nightly, encrypt with a public key on the server, and copy offsite; the decryption key never touches the server.
Accepted
004End-to-end encrypted sync for a home inventory app
Optional multi-device sync where the server stores only ciphertext, chosen over a simpler server-readable design because of data-protection risk.
Decided, not built
005Local-first apps with no account by default
Store user data on the device unless a feature truly needs a server; no sign-up for most apps.
Accepted
006No third-party crash or analytics SDKs in children's apps
Use the store's built-in crash reports plus an anonymous first-party error endpoint instead of Crashlytics or Sentry.
Accepted
007Self-hosted, cookieless analytics instead of Google Analytics
Run Umami on the platform so visitor data never leaves my server and no cookie banner is needed.
Accepted
008Android apps packaged from web code with Capacitor
Reuse the TypeScript web app inside a thin native shell, with native code only for billing.
Accepted
009The AI coding agent runs with least privilege
The AI agent that builds the apps runs as an unprivileged user that can change code and push, but cannot touch production directly.
Accepted

Format: a lightly extended Michael Nygard template (context, options, decision, consequences, revisit triggers).