← Log

What enterprise discipline looks like on a side project

Logged
2026-11-12 · 12:00
Reading
4 min

RateMyHiFi is a free site where people tell the story behind their hi-fi systems, what components they chose and what it sounds like. It also has an AI upgrade advisor that gives instant advice about how to improve the sound of any entered system. I built it with AI coding agents: they write the code, and I decide what gets built. Drawing on an extensive background in enterprise software development, I built RateMyHiFi to the same standards as any company I’d worked at, possibly higher. This is how I make websites for even a hobbyist website.

RateMyHiFi by the numbers

Backlog

Work starts as a GitHub issue. Hundreds have been opened and closed, and all of them are sorted by label, so the high-priority work and the someday ideas are always easy to tell apart.

Every change passes nine checks

The road from issue to production

Three before a pull request exists, three in CI, two against a preview and one against production. A database change passes eleven. Before a change ships I spot-check that it follows the established patterns, that nothing too crazy is happening inside it, and that it has been tested and verified.

The codebase is 129,000 lines, 77,000 of them application code, with about 450 merged pull requests behind it.

Checks on a merged pull request

Tests

  • 1,350 unit tests.
  • 51 end-to-end tests in Playwright, run against a real preview deployment before every merge.
  • The end-to-end suite runs in desktop Chrome and on an emulated Pixel 7.
  • Smoke tests run again on production after every deploy.

Speed

The site mostly runs from the CDN. Of the 2,500 pages on the site, a majority of them are rendered on the server and all of them are cached at the edge, so a visitor gets a finished page from a location near them, and the application servers and the database are rarely touched.

  • Server-rendered pages are cached for up to 24 hours and resized images for 30 days.
  • When the data on a page changes, a hook refreshes the cache. The page is rebuilt in the background while the old copy keeps serving.
  • After every deploy the most-read pages are built automatically, so they are ready before anyone asks for them. Pages viewed less often, like a single component's page, are built on first visit.

Google's PageSpeed Insights scores the site's heaviest page, a grid of member photos, at 84 on mobile and 99 on desktop, with 100 for accessibility, best practices and SEO. On the same mobile test Pinterest's photo grid scores 34 and LinkedIn's signed-out home page scores 79. Run them yourself: RateMyHiFi, Pinterest, LinkedIn.

RateMyHiFi Explore, mobile: 84
RateMyHiFi Explore, desktop: 99
Pinterest photo grid, mobile: 34
LinkedIn home page, mobile: 79

Security

SecurityHeaders.com grade A, scanned with bot protection paused
Qualys SSL Labs grade A
  • SecurityHeaders.com grades the response headers an A (scanned with bot protection paused, because it turns scanners away). Qualys SSL Labs grades the TLS an A.
  • Row-level security is on for every table in the database, so a bug in application code cannot read or change another member's data.
  • Rate limits sit at three levels: bot protection at the edge, per-feature limits in the application, and triggers inside the database.
  • No secret is committed to the repo, and the production database's admin credentials are stored in no file, so no agent can read them. A register records the one name each secret goes by and the store that holds it.
  • Outgoing email is authenticated with SPF, DKIM and DMARC.
  • Database schema changes are numbered SQL files (139 so far) that go through review, and I apply each one to production myself.
  • The audits are written down in the repo: a browser security review, a policy-by-policy review of row-level security, and a full-codebase assessment of security, performance and code quality.

Resilience

  • Availability is 99.99%, and the site has never needed a maintenance window.
  • A page being rebuilt keeps serving its last good copy, so a visitor never waits on a rebuild.
  • Features retry on their own when something they depend on fails, waiting longer after each attempt. Album lookups are one example of many: nearly every feature is built with a retry or a fallback.
  • A page that fails shows its own error screen with a retry, and the rest of the site keeps working.

Operations

An ops agent runs automatically on a schedule. It checks production health, security incidents, flagged content, data quality and backups, applies routine catalog fixes itself, and files a report on how the site is doing, what went wrong, and where members are getting stuck. The runbook behind it has 23 sections.

Accessibility

The site is built to WCAG 2.1 AA and has been audited against it: skip navigation, keyboard navigation, ARIA roles, screen reader descriptions and reduced motion. PageSpeed scores accessibility at 100. The color palette's contrast is a unit test that fails the build when a color drops below the WCAG line.

The contrast test passing

Privacy

The site has no cookie banner. The privacy policy commits to sign-in cookies only and to analytics that set none (privacy policy). Its notification emails have a written legitimate interests assessment on file, the record European privacy law asks for.

Memory

Every agent session starts from a 25-line status file and the handoff notes of the sessions before it, and ends by writing a note of its own. Decisions go into dated records that are never edited (50 so far). Once a week an agent I call the gardener reads what merged and what was decided, pulls the weeds, and brings me what it can't settle.

Handoff notes are never allowed to carry credentials. If a secret were ever exposed in a session, it would be stripped out of memory. That has never had to run, because no secret has made it into memory.

I wrote about the memory in Here's how I Claude.

Session memory and the gardener

The site is at ratemyhifi.com.

End of entry. T.M.