How the site is made

Framework
Next.js 16 with React 19
Styling
Tailwind CSS 3 with the Typography plugin
Content
MDX files in the repo for posts, projects, and books; JSON for the reading strip and Voices
Chat
Vercel AI SDK 6 with Anthropic models, for the agent and the library chatbot
Type
Literata for long-form bodies, the system font for everything else
Hosting
Vercel, with Vercel Analytics

The site's Build Trail

From the project write-up, The Age of Personal Software.

Build Trail

Plan
Discovery compared five personal blogs, then a plan, then Claude Code built it. Version 1 took a few hours.
Cost
£8 a year for the domain. Claude Code came with the existing £18 a month Pro subscription.
What broke
  • Images pasted into Markdown in Obsidian came through as base64, adding huge amounts of text to the file.
  • Migrating the first article from Google Docs mixed up all its images. Fixing them by hand took longer than anything else.

Glossary

The words the site uses for its own things, rendered from GLOSSARY.md.

joeflynnpm.com

Joe's personal site: writing, projects, book reviews, and personal analytics drawn from his own tracking data.

Analytics

Habit: A daily behaviour Joe logs in his tracker (sleep quality, coffees, meditation, workouts, and so on), one value per day. Avoid: Metric, stat

Tracker: Joe's own daily habit log, filled in by hand. The source of every Habit, and of the Sessions Fitbit missed: on any date, a Tracker Activity counts when Fitbit has no Session in its Category. Fitbit wins where both have one. Avoid: Habit sheet, form

Session: One continuous bout of exercise with a single Activity, a duration in minutes, and a time of day. A day can hold several. Avoid: Workout (for a single bout), exercise, activity log

Activity: What a Session was, after spelling and naming are cleaned up (Weights, Cycle, Pilates). Raw names from Fitbit or the Tracker are mapped to an Activity. Avoid: Exercise type, workout type

Category: One of six groupings of Activities used for colour: Strength, Cardio, Cycle, Mobility, Walk, Other. Avoid: Type, group

Workout Day: A day with at least one Session. Its colour is the Category with the most minutes, ignoring Walk unless the day had nothing else. Its brightness is its total minutes, walks included. Avoid: Active day

Session Day: A Workout Day with at least one Session other than Walk. Walks are everyday movement; a Session Day is a day with something Joe chose to do. Avoid: Training day, active day

Rest Day: A day with no Sessions, including days logged as "No" or "none" in the Tracker. Avoid: Off day, zero day

Projects

Build Trail: How a project was made, in whatever parts Joe kept: the prompt, the plan, the model, the number of pull requests, the cost, and what broke. Every part is optional and only ever holds facts Joe has written down. In project frontmatter it is buildTrail. Avoid: Changelog, postmortem, making-of

Echo Gallery: Echo's raw answers to a fixed list of prompts, shown on her project page exactly as she gave them. It lives in content/echo-gallery.json and is never edited by hand. Avoid: Samples, transcript, chat log

Answer Set: One run of the Echo Gallery's prompts through one version of Echo, with the date and the settings used. There is a before set from before she was post-trained and, later, an after set with the same prompts and settings. Avoid: Run, batch, snapshot

Reading

Book: A book Joe has finished and that has its own page under /books. The set of Books is the set of book pages, not the Goodreads shelf. Avoid: Read, title, entry

Current Read: A book Joe has started and not finished, shown in the "Right now" strip on the home page. It is not a Book: it has no page and never counts in /books or any reading stat. Current Reads live in content/current-reads.json; when Joe finishes one, it comes out of that file and becomes a Book. Avoid: In progress, TBR

Dated Book: A Book with a recorded read date. Only Dated Books appear on charts over time; books read before 2018 were logged without one. In frontmatter, a Book that is not Dated carries undated: true, and its dateRead is the day it was logged. Avoid: Recent book

Genre: One of twenty subject labels on a Book (History, Sci-Fi, Classics, and so on). A Book has one or two. Avoid: Category (that word belongs to workouts), shelf, tag

Publication Year: The year a Book's work first came out, not the year of the edition Joe read; negative for BCE. Every Book has one except podcasts. In frontmatter it is published. Avoid: Edition year, release date

One-liner: One sentence in Joe's own words, 40 words at most, on why a Book matters. Optional; in frontmatter it is oneLiner. Never written for him. Avoid: Blurb, summary, tagline (that word belongs to Voices)

Favourite: One of the 20 at most Books Joe would press on someone, chosen by hand and independent of rating. Every Favourite has a One-liner. In frontmatter it is favourite: true. Avoid: Five-star pick (the 404 page's five-star Books are a separate idea), top book

Fiction / Non-fiction: The split of Books by Genre. Classics counts as Fiction unless the Book also carries a Non-fiction Genre. So a classic novel is tagged Classics + a Fiction Genre (e.g. Literary Fiction), and Classics + Philosophy means a non-fiction work such as Phaedo. Avoid: Novel

Reading the web

Voice: A writer (or a site run by a few writers) whose work Joe reads and rates. The full list lives in content/voices.json; the ones marked home show on the home page, each with a one-line tagline in Joe's own words. Avoid: Blogroll, follows

Decisions

  • Workout data comes from Fitbit, built in habit-analysis

    The workout heatmap on /analytics reads public/data/workouts-<year>.json, which is not built in this repo. An export script in the local habit-analysis project joins Fitbit sessions (primary from 2024-07-21) with the Tracker (fallback for earlier days and days Fitbit missed), cleans Activity names, and writes only an approved list of fields: Activity, minutes, and time of day. We chose this because the Fitbit Takeout export is large (~5.5 GB) and already processed in habit-analysis, and because keeping the join there means heart rate, calories, and recovery metrics never enter this public repo.

    docs/adr/0001-workout-data-from-fitbit-via-habit-analysis.md

Palette

Every colour is OKLCH. The accent and the neutrals all derive from one hue, so the colour dots in the header re-theme the whole site, and the swatches below follow them and the light or dark mode. The workout Category colours and the Fiction and Non-fiction pair are the exception: fixed values, validated all-pairs against the card colour in each mode for colour-blind readers and for separation in small cells. Only four hues passed at 12px, so Walk and Other share the neutral. In light mode the Non-fiction amber is 2.99:1 against the card, so those charts always carry a legend, a readout, and a text table.

  • --accentoklch(0.77 0.185 var(--hue))
  • --accent-hoveroklch(0.83 0.19 calc(var(--hue) + 14))
  • --backgroundoklch(0.17 0.004 var(--hue))light: oklch(0.99 0.002 var(--hue))
  • --cardoklch(0.22 0.005 var(--hue))light: oklch(0.965 0.003 var(--hue))
  • --card-hoveroklch(0.25 0.005 var(--hue))light: oklch(0.92 0.004 var(--hue))
  • --foregroundoklch(0.985 0.003 var(--hue))light: oklch(0.21 0.006 var(--hue))
  • --mutedoklch(0.71 0.008 var(--hue))light: oklch(0.44 0.01 var(--hue))
  • --muted-foregroundoklch(0.55 0.008 var(--hue))light: oklch(0.55 0.01 var(--hue))
  • --borderoklch(0.27 0.006 var(--hue))light: oklch(0.92 0.004 var(--hue))
  • --workout-strengthoklch(0.622 0.161 255.1)light: oklch(0.575 0.163 255.5)
  • --workout-cardiooklch(0.622 0.171 0.8)light: oklch(0.716 0.141 357.4)
  • --workout-mobilityoklch(0.529 0.180 142.5)light: oklch(0.529 0.180 142.5)
  • --workout-cycleoklch(0.670 0.143 73.2)light: oklch(0.764 0.161 75.1)
  • --workout-neutraloklch(0.62 0.01 var(--hue))light: oklch(0.55 0.01 var(--hue))
  • --reading-fictionoklch(0.622 0.161 255.1)light: oklch(0.575 0.163 255.5)
  • --reading-nonfictionoklch(0.670 0.143 73.2)light: oklch(0.670 0.143 73.2)

What broke

Every failure recorded in a project's Build Trail.