Skip to content
miito.devThe Workshop · File 0176
Back to the register

miito.dev

This site: a personal record kept since 2023, rebuilt in 2026 on Next.js 16, Payload CMS and Panda CSS.

Directive
R-004
Class
Personal
Role
Design and build
Period
Feb 2023 – Oct 2026
Status
Delivered
miito.dev on an iMac: the home page, the records, the standards sheet, and home again.

The account§ 01

This site started in February 2023 as a place for notes, and I've rebuilt it more than once since. The current version runs on Next.js 16, with Payload CMS as its admin, Panda CSS for styling and React Aria for the controls.

Most of what you see here is records: bulletins, the garden, a gallery, these works, and a year page compiled from what I listened to on Last.fm and watched on AniList. A letter goes out by email each month. Most of what I built is underneath: the admin, the compilers and the crons.

Outcomes

  • More than 1,400 commits since February 2023.
  • Moved from Sanity to Payload CMS, with a moderation desk for comments.
  • Year pages and a monthly letter compiled from Last.fm and AniList.
  • RSS and Atom feeds, a sitemap, and a contact form checked by Vercel BotID.

Timeline

  1. First commit
  2. Comments, with a Supabase login
  3. Garden page
  4. Feeds and sitemap
  5. The garden's hexagon map
  6. Payload CMS and the Directive redesign
  7. Correspondence and the moderation desk
  8. Year pages
  9. Monthly letter

In figures§ 02

  • 1,400+commits since February 2023
  • 12looks: the house style and eleven skins for the calendar
  • 142test suites
  • 4years on record, 2023 to 2026

Why§ 03

This site is on the register because its interesting parts aren't on the page.

I keep this site because I keep records: what I listened to, what I watched, what I built, and what I thought was worth a note. Each rebuild changed how the filing gets done. In 2023 the comments needed a Supabase account and the posts lived in MDX. By 2026 the content was in Sanity's hosted studio, and the site was a client of it.

In September 2026 I moved everything into Payload, running inside the app, and styled its admin as the site's command post. It has a daily docket of drafts and held mail, a register for every collection, and a desk for moderating comments. Visitors never see that part, but it's the part I'd show first.

What it does§ 04

A personal site written as a case file: every page is a record, the admin is a command post.

  1. The command post

    Payload CMS dressed as the site's own admin: a daily docket of drafts and held mail, a register for each collection, and a desk for moderating comments.

  2. Seasonal skins

    Eleven skins that take over from the house style with the calendar, Halloween to Canada Day, or by hand, each with its own palette and type, and a motion switch beside them in the header.

  3. Year pages

    A year's listening and watching compiled from Last.fm and AniList into a debrief that plays card by card out of a filing cabinet drawn in CSS 3D.

  4. The garden

    Short notes laid out on a map of hexagons that can be dragged, zoomed and followed from one island to the next.

  5. Correspondence

    Comments under bulletins, held for review, answered from the admin, with official replies marked as such.

  6. Built to be read

    RSS and Atom feeds, axe sweeps of every route, logical properties throughout, and reduced motion honoured by every animation.

Where it got hard§ 05

  1. Moving three years of records into Payload
    Problem
    Posts, garden notes, gallery entries and works were all in Sanity. The new schema had been pushed to the database in dev mode. That leaves a marker, and every later migrate then asks whether to replay all of its DDL. And development, preview and production all shared that one database.
    Solution
    Now the schema only changes through migrations. I repaired the ledger by hand instead of answering the prompt. Development and preview run on their own Neon branch, copied once from production. CI branches production for every run and rehearses the pending migrations on the copy before the build. I also renumbered the ids on production from one, with no gaps, in a single transaction. The foreign keys were dropped, moved and re-added, and I checked every rich-text reference afterwards.
  2. Comments without accounts
    Problem
    The 2023 comments and guestbook needed a Supabase login, which is a lot to ask for a reply to a note. But a form open to anyone invites spam. And my login address is public on the feeds, so a lockout on failed logins would lock me out.
    Solution
    Correspondence now takes a name and a message and holds it for review on the docket. One address can send five in ten minutes. An official reply is marked as one. The contact form is checked by Vercel BotID behind an adapter, so I can swap the provider without touching the form. A failed login no longer locks the account.
  3. A filing cabinet in CSS
    Problem
    The year page opens on a steel cabinet drawn in three dimensions. Hanging folders sit at their own depths, and a case sheet folded in three rises out of one. Three things fought it. Chrome hides the whole subtree of a backface-hidden parent once it turns away. Firefox draws each plane as a hard-edged texture that stair-steps as it turns. And Panda can't see a style value computed in JavaScript, and silently drops a negative custom property.
    Solution
    Only the sheet's panels hide their backs. A folded panel stays unseen until it swings past its crease, and nothing above it is lost. Every part stays in front of the drawer, so no steel has to hide anything. Each plane has a transparent border with its background clipped to the padding box, which gives Firefox an edge to smooth. Negatives are written as a calc, and every depth is a literal token. The count-ups and reveals are CSS only. Their durations come from tokens that collapse to zero under reduced motion, so with the motion off it's still the same page.
  4. Compiling a year from two services
    Problem
    A year on Last.fm is thousands of scrobbles, across pages that answer with 5xx and 429 partway through. AniList is GraphQL behind rate limits. A cron on Vercel has a time budget. And the letters have to render React Email inside Payload hooks, where Next refuses a static import of react-dom/server.
    Solution
    The compiler walks Last.fm's recent tracks. When a page is refused, it pauses and asks again, up to three more times. It files the year once. The monthly digest cron builds the letter from the case file. The letters are React Email components, rendered through a dynamic import, with a plain-text part alongside. Every issue is filed in a digests collection, so next month's letter can read the one before.
  5. The garden's idle cost
    Problem
    The hexagon map's camera layer had will-change on it. That promoted it to a compositor layer of its own, and Chrome's Layerize then ran on the main thread for three quarters of every idle second.
    Solution
    I took the will-change off and measured before and after through the DevTools protocol. The gestures are now bound natively, so ctrl+wheel zooms the map instead of the page.

Pages§ 06

  • Fig. 1The year page opens as a debrief, one card at a time.
  • Fig. 2Records, with the case files drawer at the top.
  • Fig. 3The garden's map of notes.
  • Fig. 4Standards, the design system laid out as a specimen sheet.
  • Fig. 5The Weeblist ledger.

On a phone§ 07

  • Fig. 6The home page on a phone.
  • Fig. 7Records on a phone, the case files drawer first.
  • Fig. 8Bulletins on a phone.
  • Fig. 9The Citizen file on a phone.

How it fits together§ 08

  1. ReaderAny browser; the look follows the season or the OS
    HTTPS
  2. Next.js 16 on VercelApp Router, prerendered pages purged by tag
    Local API
  3. Payload CMSCollections, drafts, the command post
    Drizzle
  4. Neon PostgresProduction and preview on separate branches

Where it stands§ 09

Live at miito.dev. The 2024, 2025 and 2026 case files are compiled on production. The September 2026 letter was the first one sent, and the crons file the next ones. CI sweeps every route with axe and holds its first-load JavaScript to a ceiling. The 142 test suites run on every pull request.

What I learned§ 10

  1. Keep the admin inside the app

    A hosted studio was fine until I wanted the moderation desk, the docket and the case-file compiler in the same place as the site. Embedding Payload made the admin part of the site.

  2. Put reduced motion in the tokens

    Every duration comes from a token that collapses to zero under prefers-reduced-motion and the site's own switch. So no animation needs a second version.

  3. Measure before promoting a layer

    Putting will-change on the garden camera looked free, and it cost most of the idle main thread. I don't promote a layer now without a before-and-after trace.

  4. Automated checks catch what reviews miss

    A per-route bundle ceiling caught a lazy import that had grown every page's first load, because Turbopack hoists a shared module to the root chunk. A check that fails is worth more than a reviewer who might notice.