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
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
- First commit
- Comments, with a Supabase login
- Garden page
- Feeds and sitemap
- The garden's hexagon map
- Payload CMS and the Directive redesign
- Correspondence and the moderation desk
- Year pages
- 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.
- 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.
- 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.
- 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.
- The garden
Short notes laid out on a map of hexagons that can be dragged, zoomed and followed from one island to the next.
- Correspondence
Comments under bulletins, held for review, answered from the admin, with official replies marked as such.
- 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
- 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.
- 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.
- 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.
- 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.
- 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
On a phone§ 07
How it fits together§ 08
- ReaderAny browser; the look follows the season or the OSHTTPS
- Next.js 16 on VercelApp Router, prerendered pages purged by tagLocal API
- Payload CMSCollections, drafts, the command postDrizzle
- 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
- 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.
- 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.
- 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.
- 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.