Skip to content

Portfolio

This site, built end to end

The site you are reading: a self-built CMS and an AI assistant that answers questions about my work from the site’s own content.

Role
All of it: frontend, backend, the AI assistant, hosting, deployment and CI/CD
Period
Sep 2026 – Present
Category
Own project
Tech stack
Angular, AnalogJS, TypeScript, Tailwind CSS, Hono, Node.js, Drizzle, PostgreSQL, AI SDK, Gemini, OpenRouter, Tiptap, Vitest, Playwright, axe-core, Lighthouse CI, Docker, Caddy, Hetzner, GitHub Actions

Results

eval cases passed
93/100
Recorded run of 2 November 2026: all 3 hallucination traps, 9 of 9 German questions, 8 of 9 injections
tests on every push to main
4,719
CI, 24 November 2026: 1,451 server, 858 client and 2,410 end-to-end tests in three browsers
Lighthouse performance on a phone
99
Home page, mobile, median of 3 runs on a local production build, 24 November 2026; accessibility, best practices, SEO: 100
The admin’s Assistant page, Conversations view: a visitor’s question with its cited sample answer and trace (route, prompt version, timing, tokens, cost), above an uncited answer, an answer whose invented citation was removed, and a flagged prompt injection.

Problem

I wanted visitors to ask about my work in their own words and get a straight answer. A language model can do that, but it can also invent a skill, a date or a result, and on a candidate’s own site that is worse than no answer. The content also had to change without a deploy, in English and German.

Architecture

One agent, seven tools. The assistant is a single agent. Four tools read the published content: search, a single document, the project list and the CV. Two guide the visitor: one opens a page, one suggests follow-up questions. The seventh hands a message to me, and only after the visitor says yes. Search is BM25 over the published pages; when switched on, embeddings join it through Reciprocal Rank Fusion, and anything short of that falls back to BM25 alone. Each answer may read at most four documents and 40,000 characters.

Free models, with a fallback chain. Only free-tier models are in the chain: Gemini first, then free models on OpenRouter. A circuit breaker pauses a model after three failures in a row or any rate limit. The chain may switch models only before the first word reaches the visitor, so an answer never starts twice.

What I rejected, and why. Sub-agents: the whole site fits in one context. A model that screens every visitor message: one more call per question on a free quota, where a fence around visitor text, pattern checks and an output guard already do the job. Memory of visitors on the server: personal data with no reason to keep it. A second model reviewing each answer before it is shown: it doubles the wait, so a judge can sample answers offline instead.

Infrastructure

The site and the CMS. AnalogJS on Angular 22: server-rendered, zoneless, with incremental hydration and Tailwind 4. The API and the CMS are Hono with Drizzle on PostgreSQL 17. Content is edited as drafts and checked in a review that shows what will change in each language before it is published; History can roll the site back to an earlier version.

Hosting. One Hetzner server runs Docker Compose behind Caddy. Database migrations only add, and they run when the API starts. A deploy goes to the API first, then the client, then a script checks the live stack.

CI. GitHub Actions checks every push: lint, type checks, unit tests, end-to-end tests with axe in Chromium, Firefox and WebKit, Lighthouse budgets, screenshots, and a smoke test of the built images as a stack. I start deploys by hand, and a guard refuses one unless main’s checks passed. From 15 to 20 October 2026, Woodpecker ran beside it on the same scripts; its agent ran on my laptop, so it ran only while the laptop did. GitHub Actions now runs alone.

Outcomes

  • Visitors ask in their own words and get answers that cite the pages they rest on; a citation to a page that does not exist is removed before the answer appears.
  • Nothing reaches production unless every test passes on the server and in three browsers; the deploy guard refuses anything else.
  • Content changes without a deploy: drafts, a review of what will change, publishing per language, and a History that rolls back.

Guarded and tested

Visitor text reaches the model as data, never as instructions. While an answer streams, an output guard removes a canary line from the instructions, any run of twelve words copied from them, and anything shaped like a secret. Earlier answers are replayed only if they carry the server’s signature, so a forged turn cannot plant facts. Unit tests drive the real agent with a scripted model, so no test calls a real one, and 100 eval cases in 15 categories measure it, from plain facts to hallucination traps, prompt injections and German. A change to the prompt must not score below the recorded run. The details are in the post How the assistant on this site is guarded and tested.

What I would do differently

I would turn on the strictest lint rules on the first day. They arrived on 19 November 2026, after 278 commits, and the change touched 646 files at once. It even pushed the server’s line coverage under its 90 % gate without losing a single test, because the new rules put every one-line return in a block of its own, and I had to write new tests to get back over it. I would also choose one CI before building a second: Woodpecker ran as a twin of GitHub Actions for five days, but its agent lived on my laptop, so its pipelines stopped whenever the laptop did.

Terms used here

Eval
A fixed set of questions with known good answers, run against the assistant to measure it. A recorded run is the baseline later runs are compared with.
BM25
A classic ranking method for text search that scores documents by the words they share with the query.
Embeddings
Numbers that represent the meaning of a text, so texts with a similar meaning can be found even when they use different words.
Reciprocal Rank Fusion
A way to merge two ranked lists by the positions of their results, without comparing their scores.
Circuit breaker
A switch that stops calling a failing service for a while, so not every request waits for it to time out.
Prompt injection
Text that tries to make a language model ignore its instructions, for example a visitor message that gives it new orders.
Canary
A line in the instructions that no answer has a reason to contain. If it shows up in an answer, the instructions are leaking.
Hydration
The step in which the browser takes over a page the server already rendered and makes it interactive.