Build with Tim.
I'm Tim, a software engineer. I build small, self-hosted tools and write down how they work.
Build with Tim is Tim van Oudheusden's site for the things he builds and the write-ups that explain them: open-source
projects, Linux on the desktop, the tools that make his work easier, and the occasional personal reflection. This
repository is the whole site: the React front-end, the Fastify API that serves the Markdown in content/, and the
Podman deployment that runs it on a single self-hosted machine.
The Agentic tab (/agentic) shows how AI agents help build this site, with live metrics from the Hive instance on the
server and this repo's pull requests (docs/metrics/README.md).
- Front-end: React 19, Vite, Tailwind CSS 4 with shadcn/ui and Radix, react-markdown
- Back-end: Fastify (helmet, rate-limit)
- Workspace: Bun workspaces (
front-end,back-end,shared) and TypeScript - Testing: Playwright for end-to-end tests,
bun testfor unit tests - Infrastructure: Podman (
kube play), Cloudflare Tunnel, GitHub Container Registry (GHCR)
flowchart LR
browser["Browser"] -->|HTTPS| edge["Cloudflare edge"]
edge --> tunnel["cloudflared<br/>Cloudflare Tunnel"]
subgraph host["Self-hosted machine, rootless Podman"]
tunnel -->|"/api, /content-assets"| backend
tunnel -->|"everything else"| frontend
subgraph pod["Pod website (podman kube play)"]
frontend["front-end<br/>Bun server: SPA + link-preview tags"] -->|"article metadata"| backend["back-end<br/>Fastify JSON API"]
backend --> content[("content/<br/>Markdown + images")]
end
timer["website-update.timer<br/>every 5 min"] -->|"restart when an image changed"| pod
end
ci["GitHub Actions<br/>CI on main"] -->|"push :sha and :latest"| ghcr["GHCR images"]
ghcr -->|"pull :latest"| timer
cloudflared reaches the pod over loopback only, so the host opens no inbound ports. CI publishes images only after
its checks, E2E and prod-asset jobs pass on main. The server setup, rollback and secret handling are in
docs/deploy.md.
Prerequisites: Podman and Bun 1.3.14 (the version CI pins).
git clone https://github.com/Tim-van-Oudheusden/website.git
cd website
bun install
scripts/dev.sh # build the dev images, start the pod, follow its logs
scripts/dev-down.sh # tear the dev pod downThe dev pod publishes:
- Front-end (Vite dev server, HMR): http://localhost:5173
- Back-end (Fastify): http://localhost:3001, with
/healthat the root
The host source is bind-mounted, so edits hot-reload without a rebuild.
The back-end reads eight variables. None is required.
| Variable | Default | Effect |
|---|---|---|
HOST |
127.0.0.1 |
Listen address. Running on the host needs no override; in containers (podman kube play / podman run) set HOST=0.0.0.0 so published ports and peer containers can reach the API. The dev and prod manifests and the Dockerfile already do. |
PORT |
3001 |
Listen port. A value that is not an integer from 1 to 65535 is ignored. The Vite dev proxy always targets port 3001, so the front-end dev server stops reaching a back-end moved elsewhere. |
LOG_LEVEL |
info |
Fastify log level: trace, debug, info, warn, error, fatal or silent. |
CONTENT_DIR |
the repository's content/ |
Folder of articles and projects to serve. |
VIEWS_DB_PATH |
:memory: |
SQLite file for article and project view counts. With the default, counts live in memory and are lost when the back-end restarts; the dev pod and bun run dev use it. The prod manifest sets /data/views.sqlite (see docs/deploy.md). |
HIVE_HISTORY_DB_PATH |
:memory: |
SQLite file for Hive's contributor hours, kept past the 168 Hive holds so the Agentic tab can chart 30 days. With the default, the history restarts from Hive's last 168 hours on each back-end restart. The prod manifest sets /data/hive-history.sqlite (see docs/deploy.md). |
HIVE_BASE_URL |
unset | Hive gateway origin for GET /api/hive/metrics, e.g. http://host.containers.internal:3001. Unset, development serves a checked-in fixture and production serves only the GitHub part. |
HIVE_WIDGET_TOKEN |
unset | Read-only token sent as X-Hive-Widget-Token, only to Hive's /api/widget/summary. Unset, that call is skipped and hive is null. |
NODE_ENV=production also hides drafts (see the draft field in
docs/content-authoring.md) and turns off the Hive metrics fixture.
| Command | What it does |
|---|---|
bun run dev |
Front-end and back-end dev servers on the host, without containers |
bun run dev:front-end / bun run dev:back-end |
One dev server on the host |
bun run test |
Unit tests in every workspace |
bun run typecheck |
TypeScript across shared, both apps and the root scripts |
bun run typecheck:root |
TypeScript for playwright.config.ts, scripts/ and e2e/ only |
bun run lint / bun run lint:fix |
ESLint with zero warnings allowed / apply every autofix |
bun run duplication |
Copy-paste detection (jscpd, .jscpd.json); fails when duplication grows past the threshold |
bun run build |
Production builds of both apps |
bun run test:e2e / bun run test:e2e:headed |
Playwright E2E suite against a running dev pod (headless / headed) |
scripts/e2e.sh |
The CI E2E job locally: build, start the pod, run the suite, tear down |
bun run screenshots:readme |
Regenerate the README screenshots and social preview from the dev pod |
docs/testing.md covers the E2E prerequisites and the other scripts in scripts/.
Articles and projects are Markdown files in content/, authored in Obsidian.
Warning
A file with invalid frontmatter is silently left out of the site. Run
bun run --filter back-end validate:content before pushing.
The Obsidian settings, image syntax, frontmatter reference and link previews are described in
docs/content-authoring.md.
| Document | Covers |
|---|---|
docs/content-authoring.md |
Writing articles and projects: Obsidian, frontmatter, the content check |
docs/roadmap.md |
Where the site is heading: the writing backlog, keeping living pages current, home page growth |
docs/testing.md |
Unit and E2E tests, quality reports, the prod-asset check |
docs/deploy.md |
Server runbook: pod, Cloudflare Tunnel, update timer, rollback |
docs/postmortems/README.md |
Writing up a production incident or rollback |
docs/risk-tiers.md |
How pull requests are classified by risk |
docs/agent-tasks/README.md |
Tracing agent changes back to their issues, and issues forward to their changes |
docs/metrics/README.md |
Quality, coverage, compliance and strategy metrics, and the live Agentic tab metrics |
docs/multi-agent.md |
How Hive, Claude Code and local agents share issues and PRs |
docs/ai-ops-runbook.md |
Monitoring agent work and debugging stuck or misbehaving agents |
docs/security/SECURITY-AI.md |
Security model for AI agents in this repo |
BRANDING.md |
Name, voice, colours and typography |
See CONTRIBUTING.md for the workflow, quality gates and code style.
- kentcdodds.com, the main inspiration for the home page, blog recommendations and project showcase.
- brittanychiang.com, for the experience timeline.
| Path | License |
|---|---|
| Code and everything not listed below | MIT |
content/ (articles and their images) and public/images/projects/ |
CC BY 4.0 |
content/images/minimalui/ and public/images/projects/minimal-android-launcher.png (MinimalUI brand artwork) |
GPL-3.0, copied from MinimalUI; the outlined text is Roboto, © Google, Apache License 2.0 |
content/images/dailies/ and public/images/projects/dailies.webp (Dailies icon, screenshots and video stills) |
GPL-3.0-or-later, copied from Dailies and its introduction video |
content/images/pindu-launcher/ and public/images/projects/pindu-launcher.webp (Pindu launcher icon, banner, screenshots and cover) |
GPL-3.0-or-later for the icon and banner, copied from Pindu launcher; the banner's outlined text is Adwaita Sans, SIL Open Font License 1.1; the game art in the screenshots stays under each game's own licence, listed in the screenshot credits |
content/images/pindu-os/ and public/images/projects/pindu-os.webp (Pindu OS icon, banner, diagrams and cover) |
GPL-3.0-or-later, copied from or drawn with the icon of Pindu OS; the text is set in Inter, SIL Open Font License 1.1; the game art in the screenshot on the cover's and the banner's television belongs to each game's publisher, shown as Pindu launcher displays a real library |
public/images/me.png |
All rights reserved |
public/fonts/ (Source Sans 3) |
SIL Open Font License 1.1 |