My corner on the internet, where I share my thoughts and show my work.
This is the code behind my personal website and portfolio. It has a home page, the projects I've built, a page about me, my resume, and my OpenPGP key if you want to send me an encrypted email. The longer writing lives on my blog, and the newest posts show up here by themselves.
The headline says "What we know is a drop, what we don't know is an ocean." That's the idea behind the whole place: there's always more to learn, especially about the things I think I already know.
And it looks the same in Chrome, Edge, Firefox and Safari, on a laptop or a phone. One command opens every page in three browsers and complains loudly if anything is off.
Nothing fancy, on purpose.
- Eleventy turns plain text files into the pages. Changing any text on the site means editing one file.
- GSAP and Taxi.js do the movement and the page changes.
- A little hand-written WebGL draws the compass. Without it you get a still picture of the same compass.
- Vite+ packs the styles and scripts into two small files, keeps the code tidy and runs the tests.
- sharp and jSquash make the pixel pictures, each in whichever format comes out smallest.
- A tiny Node.js server hands out the pages and fetches the weather and the song.
- Playwright is the one that opens three browsers and complains.
You need Node.js 26 and pnpm (Vite+ brings both). Then it's three commands:
pnpm install # once, to fetch what it needs
pnpm run dev # the site, live at http://localhost:8080
pnpm run check # build it and test it in three browsers
Two things to know. The site's real fonts are licensed, so they are not in this repository; without them it uses free look-alikes and still works. And the weather shows up on its own, but the song needs Spotify keys of your own.
Every word on the site lives in src/_data/ and src/content/, and every file starts with a short note on what it does.
Notes for future me, back after a break with this repository and the font server's open side by side. First, read INSTRUCTIONS.md in the font server's repository: every rule, every chore and the steps for the server are in there.
Each time I come back
pnpm install, thenpnpm run lintandpnpm testto make sure nothing broke while I was away.- Update. Look up the newest stable version of each tool on its official site, run
pnpm outdated, and update one package at a time. Before a big version jump, read its upgrade guide. Each October, Node.js names a new LTS line (the long-term support version meant for real sites): move both repositories to it inenginesinpackage.json. - Check.
pnpm run checkbuilds the site and tests every page in Chromium, Firefox and WebKit, andpnpm run linksfinds dead links. Then I open the site withpnpm run devand look at it myself. - Commit, then push
main. Pushing is the deploy: the server rebuilds the site by itself. I watch it finish in the hosting dashboard and open the live site.
On a calendar
- Every 6 months: Spotify's token runs out.
pnpm run spotifygets a new one, then I paste it into the server's settings and deploy again. Next one due around April 2027. - Every year: renew the domain, check when the Cloudflare certificate expires, and make sure the weather and the song still show up.
- Before September 2029: extend my OpenPGP key and swap in the new file.
- When GitHub emails a security alert: update that package first.
When something changes
- New project: copy
src/content/projects/_template.mdand fill it in. - New words on a page, or a new page:
pnpm run dates, so the sitemap that search engines read knows the day it changed.pnpm testreminds me if I forget. - New font files:
pnpm run fontsturns them into web fonts. - New headline, fonts, colours or compass:
pnpm run fitso the big lines fill their space, thenpnpm run shareto redraw the link preview picture and the screenshot above. - If the server ever moves to a new address, update the Cloudflare rule that lets it read the blog's feed, or new posts quietly stop showing up.
- The design is based on henry.codes by Henry Desroches. The code and words here are my own.
- The pictures are made from photos on Unsplash, some of them shared there by museums, and one drawing from Pixabay. Each one is credited on the site's Credits page.
- Weather data by Open-Meteo.com. Icons by Phosphor Icons.
The code is MIT licensed, so take what is useful. The site's content (the words, my bio, the project write-ups) is all rights reserved, the pictures stay under their own licences (Unsplash and Pixabay), and the fallback fonts under the SIL Open Font License.
