Runtime
Infrastructure: a browser reaches Traefik on a DigitalOcean droplet, which routes to the frontends and the api; the api queues CV jobs on Redis for the cv-worker, and both use Postgres and Garage. The ATS check parses CVs in the browser, so it needs nothing behind its frontend. Grafana Cloud checks the public URLs from outside, and DigitalOcean's agent reports the droplet's disk.
You · browser
Your browser. Every request starts here: DNS resolves the domain to the droplet, then HTTPS goes to Traefik.
Why it’s built this way
- You're looking at site-web right now, through its own x-ray.
DNS · DigitalOcean
DNS for jakoblui.com and its subdomains, at DigitalOcean.
Why it’s built this way
- Infrastructure as code: Terraform provisions the droplet and the DNS records; Ansible configures and deploys.
Components
- DigitalOcean DNS
- Terraform
Traefik · reverse proxy
The only thing listening on the internet: it terminates TLS and routes each subdomain and path to a container.
Why it’s built this way
- Rate limiting at the edge, not in the app: Traefik sees the real client IPs.
- A general limit on the api, and a stricter per-minute limit on assembling CVs.
Components
- Traefik v3.7
- Docker labels
site-web · React · Vite
This page: a static React app, served by nginx.
Why it’s built this way
- The x-ray: the page itself turns see-through over an interior fixed behind it.
- Projects are separate frontends on their own subdomains, on purpose: the architecture is part of what this shows.
Components
- React 19
- Vite
- TanStack Router
- Tailwind 4
- shadcn on Base UI
- Storybook
cv-web · React · Vite
A CV assembler: pick a role, concepts and skills, get a tailored PDF.
Why it’s built this way
- The URL is the source of truth: assembling runs as a query keyed on the selection, so a link always matches its PDF.
- The API client is generated from the OpenAPI spec, and CI fails if it drifts.
Components
- React 19
- Vite
- TanStack Router + Query
- Orval + zod
- Tailwind 4
ats-web · React · Pyodide
The ATS check: it shows what a simple ATS might pick out of a CV, read by a Python parser running in your browser.
Why it’s built this way
- The CV is parsed in your browser, so it never leaves your device and no server ever holds one.
- A Content-Security-Policy lets the page talk only to its own origin, so the browser enforces that, not just a code review.
- The parser is a released ats-parser wheel, pinned by its sha256 and served by the site itself, with Pyodide: no CDN sees a visitor.
Components
- React 19
- Vite
- Pyodide
- Web Worker
- pdfminer.six
Storybook · composed
One Storybook that composes the component libraries of site-web, cv-web, ats-web and shared-ui.
Why it’s built this way
- Each frontend builds its own Storybook image on deploy, and shared-ui on each version tag; storybook-host composes them.
Components
api · FastAPI · REST
A thin gateway: it validates requests, reads published options, and hands work to services over Redis Streams.
Why it’s built this way
- Domain logic lives in services behind a queue; contracts are versioned (cv.generate.v1), never edited in place.
- Identical CV requests share one task: the request is canonicalised and hashed, with an in-flight key in Redis for 120 s.
Components
- Python 3.13
- FastAPI
- Pydantic
- SQLAlchemy async
- asyncpg
Redis · Streams
The message broker between the api and the workers, plus short-lived state.
Why it’s built this way
- Redis 8.10 for atomic claim and compare-and-delete on the in-flight keys (SET NX GET, DELEX IFEQ).
Components
cv-worker · Taskiq · LaTeX
Renders CVs: picks the content, typesets it with LaTeX, and caches the PDF.
Why it’s built this way
- Owns the whole CV domain, including its database schema and migrations.
- PDFs are cached by a hash of their LaTeX source, so the same CV is only typeset once.
Components
- Python 3.13
- Taskiq
- LaTeX
- SQLAlchemy async
Postgres · 18
Relational data, with one schema per service.
Why it’s built this way
- Each service owns its schema; the api only reads published options, with plain SQL.
- A new shape means a new version row, never a changed one.
Components
Garage · S3
Self-hosted, S3-compatible object storage for the assembled PDFs.
Why it’s built this way
- The S3 API without a cloud bucket: the same code locally and on the droplet.
Components
Sentry · errors
Error reporting for the api.
Why it’s built this way
- Only the api reports to it so far; the worker needs network egress first.
Components
Grafana Cloud · uptime checks
Uptime checks from outside: every 5 minutes, probes in Frankfurt and London request the site, the CV app, the api's readiness check and the Storybook.
Why it’s built this way
- An email after 4 failed checks in 30 minutes, across both probes: a reboot stays quiet, an outage doesn't.
- Grafana Cloud rather than a plain pinger: it has room for the metrics and logs to come.
Components
- Grafana Cloud
- Synthetic Monitoring
- Terraform
do-agent · host metrics
DigitalOcean's metrics agent. It runs on the host, not in a container, and reports CPU, memory and disk.
Why it’s built this way
- Installed by Ansible: turning monitoring on in Terraform would have replaced the droplet.
Components
Monitoring · disk alert
DigitalOcean's monitoring: it emails me when the disk stays over 50% for 5 minutes.
Why it’s built this way
- The safety net for pruning: each deploy cleans up old images, and the alert catches whatever still grows.
Components
- DigitalOcean Monitoring
- Terraform
Build & deploy
Build and deploy: I push to the app repos on GitHub, where Actions tests them and builds images to GHCR, then triggers infra's deploy, which runs Ansible on the droplet to pull and start them. Terraform provisions the droplet and DNS at DigitalOcean, and the uptime checks in Grafana Cloud.
Me · laptop
Me, at my laptop. I push code and run Terraform; everything after a push is automated.
Why it’s built this way
- For the apps, a push to main is a deploy: there's no separate release step. Only the shared package is released, by tagging a version.
Components
App repos · 8 public repos
One repo per deployable: api, cv-service, cv-web, site-web, ats-web, storybook-host, plus shared-ui (the header and theme the sites share, as a package) and ats-parser (the ATS check's parser, as a Python wheel). All public; infra, which deploys them, is private.
Why it’s built this way
- Public on purpose: no secrets in code or images; they live in an Ansible vault in the private infra repo.
Components
CI · GitHub Actions
CI on every pull request. On a push to main it runs the same checks, builds the images and asks infra to deploy.
Why it’s built this way
- The deploy workflow calls the CI workflow first, so nothing ships that wouldn't pass a pull request.
- cv-web regenerates its API client from the production spec, and CI fails if it drifts.
- shared-ui publishes on a version tag rather than on a push to main: the package to GitHub Packages, its Storybook image to GHCR. An app picks up a new version with a commit that bumps it.
- ats-parser releases its wheel and JSON schema on a version tag too. ats-web's build fetches them, and Pyodide, against pinned sha256s and serves them itself.
- The frontends install the package from GitHub Packages with the workflow's own token, which reaches the Docker builds as a build secret, so it never lands in an image.
Components
- GitHub Actions
- uv · ruff · pytest
- pnpm · ESLint · Vitest
- Playwright
GHCR · images
GitHub's container registry: each image is tagged with its commit sha and latest.
Why it’s built this way
- The images are public, so nothing secret is baked into them.
Components
infra · Ansible deploy
The private infra repo's deploy workflow: it runs an Ansible playbook against the droplet over SSH.
Why it’s built this way
- Any app repo triggers it with a repository_dispatch, so changes to infra go live with the next deploy.
- Environment before code: compose file and .env first, then pull, migrate, and start.
- Each deploy ends by pruning dangling images; GHCR keeps the old versions for rollback.
Components
- GitHub Actions
- Ansible
- Ansible Vault
- Docker Compose
Terraform · provisioning
Provisions the cloud resources: the droplet, a reserved IP, the DNS records, the disk alert and the uptime checks.
Why it’s built this way
- Infrastructure as code: Terraform creates the machine and its DNS; Ansible configures and deploys onto it.
- Run from my laptop: changes to the infrastructure are rare and deliberate.
Components
- Terraform
- DigitalOcean provider
- Grafana provider
DigitalOcean · droplet · DNS
The cloud provider: one droplet in Frankfurt, a reserved IP, DNS for jakoblui.com, and an alert when the disk fills up.
Why it’s built this way
- One small droplet runs everything; the reserved IP keeps DNS pointing at it if it's ever replaced.
Components
- DigitalOcean
- Droplet
- Reserved IP
- DNS
- Monitoring
Droplet · Docker Compose
An Ubuntu server running everything in one Docker Compose project: the runtime view shows what's inside.
Why it’s built this way
- Set up by an Ansible playbook: a deploy user, SSH keys only, and a firewall open to SSH, HTTP and HTTPS.
- Migrations run as one-off containers before the services start.
- Security updates install themselves; if one needs a reboot, it happens at 04:00 UTC.
- Container logs are capped at 3 × 10 MB per service.
Components
- Ubuntu 24.04
- Docker Compose
- ufw
- unattended-upgrades
- do-agent
Grafana Cloud · uptime checks
Grafana Cloud's synthetic monitoring: the uptime checks and their alert rule.
Why it’s built this way
- Checks as code: the URLs, probes and alert rule live in Terraform, not in a dashboard.
Components
- Grafana Cloud
- Synthetic Monitoring