Personal Website
This site: a static Astro site rebuilt every night from 10 sources, from Spotify and Steam to Goodreads and my climbing gym. Written entirely with Claude Code.
Technologies
I’d put off building a real personal site since college. When I joined Anthropic I wanted to learn Claude Code properly, so I built this site with it. I haven’t written any of its code by hand.
Besides the usual pages (work, papers, my Project Euler solutions, a PGP key and my pets), most of the site shows what I’m currently into: the games I’m playing, the music I listen to, the books, films, TV and anime I’ve finished, and my bouldering.
Where the data comes from
The site is fully static. Everything is fetched at build time, and a build runs every night at 2 AM Pacific and on every push.
- Games: the Steam Web API; PlayStation Network’s API, with a refresh token that rotates every build; Nintendo Switch play history read straight from Nintendo with my own account; and IGDB for consistent box art across all three.
- Music: Spotify’s API for top tracks, top artists, playlists and recent plays.
- Movies: my Letterboxd diary, ratings and posters, scraped.
- TV: a “watched” list and my ratings on TMDB.
- Anime: the MyAnimeList API.
- Books: Goodreads shelves, scraped with a signed-in session since Goodreads removed its RSS feeds in 2026.
- Climbing: Kaya’s GraphQL API, for my grade pyramid, send history and send videos.
Most of these aren’t stable APIs. Tokens expire on schedules from a day to a year, Letterboxd sits behind Cloudflare, and Goodreads and Trakt (which the TV page used to rely on) have both shut down the interfaces I started with. The interesting part of this project is keeping a page full of other people’s data working every day without me looking at it.
Keeping it running
- Tokens refresh themselves. Before each build a script tests the credentials that expire, renews them (MyAnimeList, PSN and IGDB tokens, plus a Goodreads re-sign-in when Amazon allows one) and writes any that changed back to Google Secret Manager in a single validated write. All credentials live in one JSON secret, and the last three versions are kept for rollback.
- Bad data never replaces good data. Each build starts from the previous build’s cache. A source that fails, comes back empty, or returns less than half of what it had before keeps yesterday’s data instead of blanking its page. Sources that can only be partly fetched, like Letterboxd past page 1 or Kaya’s capped public queries, are merged onto the previous copy.
- I hear about problems on Discord. After every build a health check looks for a fresh cache file from each source and DMs me with what broke and how to fix it. Build or test failures DM me too, and a failed build never deploys. Where an expiry date is known in advance, as with the Goodreads login, the alert comes in the last 30 days rather than on the day.
- The build has only the permissions it needs. Cloud Build runs as a service account limited to deploying to Firebase, reading and updating its one secret, and its own storage bucket.
The front end
Astro renders plain HTML, with React only where a page needs interactivity: the filterable media grids, the image viewer that grows out of a tile, and the music player. Songs play in place through a hidden Spotify embed that the page drives over postMessage, so the play buttons, progress ring and pop-up player are the site’s own rather than Spotify’s widget. Nothing on the media pages links away from the site.
There are five visual themes, from a clean default to a brutalist one and a dark terminal, switchable from the header. The site sends a strict Content Security Policy, and visits are counted with GoatCounter, which doesn’t use cookies, rather than Google Analytics.
Ambient Audio System
The site features a generative music system that plays unique composed music on every page — similar to how each town in a Pokemon game has its own theme. Visitors can toggle it on via a speaker icon in the header.
Step Sequencer Architecture
Rather than using pre-recorded audio files or random generative drones, the system is built as a real-time step sequencer using the Web Audio API. Each page has a hand-composed song defined as data — arrays of [midiNote, durationIn16ths] pairs across multiple tracks (melody, bass, chords, arpeggios). A scheduler loop runs every 100ms, looking 250ms ahead to schedule notes with sample-accurate timing via AudioContext.currentTime.
Per-Page Compositions
There are 12 distinct songs, each with its own tempo, key, mode, and instrumentation:
- Home (90 BPM, C major) — Warm village theme with gentle arpeggios
- Work (100 BPM, A minor) — Focused, driven feel with a steady groove
- Papers (72 BPM, G major) — Thoughtful, jazzy with wide intervals
- Books (60 BPM, F major) — Peaceful, classical, very sparse
- Music (110 BPM, D minor) — Groovy with syncopated bass
- Movies (80 BPM, D minor) — Cinematic with dramatic pauses
- TV (95 BPM, Bb major) — Pop, bright, accessible
- Anime (120 BPM, E minor) — J-pop energy with fast arpeggios
- Games (140 BPM, C major) — NES-style chiptune with square wave arps
- Climbing (130 BPM, A minor) — Rock intensity with power bass
- Pets (105 BPM, F major) — Playful, bouncy melody
- Euler (66 BPM, C Pythagorean) — Mathematical, Fibonacci-inspired
Each song has multiple tracks that loop at different lengths, creating natural variation through polyrhythmic phasing — a 12-bar melody over a 4-bar bass line produces 12 bars before an exact repeat.
SynthVoice Design
Each note is rendered by a temporary SynthVoice — a cluster of 1–3 oscillators (for unison width) routed through an ADSR amplitude envelope and optional lowpass filter with its own envelope. Voices auto-disconnect after their release phase completes, keeping the audio graph clean. Eleven instrument presets (piano, bass, pad, leads, arps) define the oscillator type, unison spread, envelope shape, and filter characteristics.
Theme-Reactive Audio Processing
The site’s five visual themes each apply a distinct audio processing chain that changes the sonic character without altering the composition:
- Minimal Technical — Clean and faithful: open filter, minimal reverb, original instruments
- Modern Glass — Ethereal: sine waves, +4 semitone transpose, slow attack, 75% reverb
- Brutalist — Aggressive: sawtooth override, −5 semitones, tight filter, waveshaper distortion
- Dark Terminal — Lo-fi digital: square waves, −2 semitones, resonant filter, subtle grit
- Academic Minimal — Warm classical: triangle waves, +2 semitones, lush reverb, soft attack
Theme changes ramp parameters on existing audio nodes over 800ms (filter frequency/Q, reverb wet/dry, ADSR scaling) rather than rebuilding the processing graph — this avoids audio dropout during transitions.
Audio Signal Path
SynthVoice oscillators → ADSR GainNode → track GainNode → song master GainNode
→ BiquadFilter (theme EQ) → WaveShaperNode (distortion/bypass)
→ ConvolverNode (algorithmic reverb) + dry path → theme GainNode
→ master GainNode (MAX_VOLUME cap) → DynamicsCompressor → speakers
A dynamics compressor at the end prevents clipping regardless of how many voices play simultaneously.
Navigation Crossfading
When navigating between pages, the new song fades in over 2 seconds while the old song fades out, with the old audio graph disconnected after the crossfade completes. The AudioEngine singleton persists across Astro View Transitions, maintaining playback state and volume preferences in localStorage.
Stack
- Site: Astro 7, React, Tailwind CSS 4, Framer Motion, TypeScript
- Build: Node.js 22, Vitest, Puppeteer for the scraped sources
- Infrastructure: Cloud Scheduler, Cloud Build (custom Docker image), Secret Manager, Firebase Hosting
- Monitoring: a Discord bot that DMs me
The whole thing is configurable for forks: identity, social links and each integration are switched on and off in one config file, and pages for disabled integrations aren’t built.