All projects

Track-Daze

live
Track-Daze hero illustration

One directory for motorcycle track days. Track-Daze collects scattered organizer calendars into linked pages for tracks, organizers, and events; AI reads the messy sources, and a careful data model and automatic checks keep it right.

TypeScriptPayload CMSNext.jsPostgreSQLDockerGitLab CI

Riders shouldn’t need ten browser tabs to find a track day. But that is what it takes to answer a simple question: what track days are happening near me this month? The dates are scattered across dozens of organizer websites, forums, and social media groups, in no common format. An earlier directory that tried to collect them, with more than 70 US tracks and nearly 1,000 events, stopped updating in March 2021.

Track-Daze puts them in one place: a directory of motorcycle tracks, the organizers who run days at them, and their events, all linked to each other. It has been live since March 2026. On November 28, 2026, it lists 121 tracks in the US and Canada, more than 170 organizers, and 142 upcoming events, 122 of them in the 2027 season.

What a rider sees

The events page has three views (a grid, a calendar, and an agenda) and filters for date, region, state or province, track, organizer, skill level, and vehicle type. The filters live in the address bar, so “this month, in the West, for beginners” is a link a rider can bookmark or send to a friend.

Take one event: TrackXperience Track Days at Chuckwalla Valley Raceway, November 28 and 29, 2026. Its page names the track and the organizer, each a link, the skill levels it is open to, and the gear required (a helmet and a leather suit). It shows the address with directions and the current weather with a three-day forecast. “Register Now” opens the organizer’s own site.

From there a rider can follow the track. The page for WeatherTech Raceway Laguna Seca gives the length (2.238 miles), the surface, the amenities, a map, and the businesses nearby: fifty places to stay, fourteen gas stations, and six motorcycle shops. What we do not know reads “Not on file.” The page ends with an invitation: organizers, riders who ride there, and anyone who knows the track can send a description or corrections.

The organizer side works the same way. More than 170 organizers are grouped by type, from national race series and racing schools to regional organizers and track-day companies. An organizer page shows a profile, services such as coaching or memberships, and upcoming events.

Who built it

Track-Daze is mine: the idea, the plan, and the calls. I build it with a team of AI agents, and “we” on this page means that team: a code agent that writes the specs and the code, a reviewing model from a different model family that checks every change, and an orchestrator agent that relays my decisions, merges, and runs the jobs. Writes to the live data need my yes, and so does switching the weekly job to write.

Decisions that keep it right

The data comes first

I planned Track-Daze database first. The README in the first commit, in October 2025, says it plainly: “The real value lies in database design and population, not just the frontend.” The earlier directory had pages; what it lacked was current data.

In the data model, that became one firm rule: an event must point to one known track and one known organizer. A free-text name would have been easier to import, and it would have filled the directory with the same track under several spellings. The rule had a cost on the first big import. In February 2026 a vision model read eight scanned pages of a printed track-day calendar and returned 845 events in one run. We could import 215. The other 630 named 66 tracks and 26 organizers the database did not have yet. So we added them and reconciled the names: 46 track-name variants mapped to the right track (the west configuration of Thunderhill to Thunderhill Raceway Park, for example), and the directory grew from 71 to 121 tracks. A separate cleanup two days later removed eighteen duplicate organizers.

That rule is why a rider can always get from an event to its track and its organizer. It applies to new events too. When the reviewing model tested the job that matches new events to tracks, it ran the real matcher and showed that a vague name like “Raceway Park” would match the first track in the list (in the test, the only one: Laguna Seca). Now a track name resolves only when exactly one known track matches. Anything else is held as unmatched.

Unknown is shown as unknown

A page that shows a false fact misleads the reader. Amenities used to default to “no,” so an amenity we knew nothing about showed as a gray “no,” and a missing number printed as 0. Road America was stored as 4 miles instead of 4.048. On track pages the rule now is: unknown is shown as unknown, never as “no” and never as 0. A track fact has three states (yes, no, or not known), the page shows the last one as “Not on file,” and the importers write a missing value as empty, never as false or zero. A filter for tracks with camping matches only the tracks where camping is confirmed.

AI reads the sources, code decides what is written

The sources are messy: scanned print, and organizer websites in many layouts, some of them readable only in a browser that runs their scripts. AI is good at turning that into structured records. It is not a guard on what reaches the database. The code around it is.

  • Every record is checked before use. Dates must be real calendar dates (the tests feed it 9999-99-99 and 2099-02-30), types must match the schema, and a bad record is dropped and reported on its own.
  • What is not a riding event is filtered out at the door. “2026 Race Awards Banquet” is dropped; “Round 3 Race Weekend & Awards Party” stays. Car events are dropped too: “Porsche HPDE - no motorcycles” goes, “BMW Motorrad Motorcycle Track Day” stays. Telling the model “motorcycle events only” was not enough, and a keyword filter is still a heuristic, so a person reads the dry-run report before any write.
  • A dry run is the default. The job writes only when it is told to. It leaves past events alone, because the site already knows when a date has passed. An event that disappears from an organizer’s page is reported as missing, not cancelled: the extraction is not reliable enough to cancel a rider’s event by itself.
  • Every change gets a second opinion. The reviewing model reproduces each finding with the real code before it reports it.

A calendar that stays current

A calendar drains by itself. Every day the date moves forward and a few more events leave the upcoming list, and at the turn of each year organizers publish the next season. A directory of events is only right if new dates come in as fast as old ones pass.

So the refresh is designed to run without anyone remembering it. A weekly job reads the organizer sites and adds new events. A separate daily check raises an alarm when the newest event record was added 14 or more days ago. It is separate on purpose: if it ran inside the weekly job, a harvest that failed would also silence the alarm, and a weekly check could notice a quiet feed up to a week late. Writing stays a deliberate switch, and until it is on, the alarm fires by design. My own floor is a scan at least every month, at the barest minimum. Weekly is the design; monthly is the least I accept.

How it’s built

Track-Daze system map in four lanes. A rider's request goes through public DNS, the firewall and a reverse proxy in the DMZ to the app and its PostgreSQL database. A code change goes from a merge request through GitLab review, the CI runner and the container registry to a deploy. Prometheus on a separate host probes the site and alerts on Discord, and Vault gives CI its secrets. The mail server in the DMZ sends outreach mail.

How a rider’s request and a code change move through the system, and what watches it. Roles only: no hostnames or addresses. Select the map to open it full size.

  • Site and data: Payload CMS, written in TypeScript, on PostgreSQL, with Next.js for the pages. Self-hosted. I went with Payload after comparing it with a headless WordPress and a custom-built CMS. The case for it: native to PostgreSQL, an admin interface for free, and no months spent building a CMS instead of the directory.
  • Model: three linked collections. Tracks (each with a unique code, such as CA4 for Laguna Seca), organizers, and events, which must link to one of each.
  • Sources in: vision models read the scanned calendar pages. Claude went first; Gemini 2.5 Flash took over the next day, because Claude was not doing a good job on the scanned pages and Gemini worked from the first try. A harvester reads organizer websites (pages such as /events, /calendar, and /schedule), with a headless browser for pages that need one.
  • Extraction: Gemini by default, Anthropic, or a local model on our own GPU server, chosen by one setting. The local model is free and slower.
  • Every change: a merge request and review by the second model; features start from a written spec. GitLab CI lints the code and builds the Docker images. Weather comes from Open-Meteo.

What’s next

The 2027 calendars arrive at the turn of the year, and I want the whole season on the site when 2027 arrives. The site already lists 122 events for 2027.

Next is outreach, to three groups with their own messages: track operators, track-day organizers, and local businesses near the tracks. Email first, then a phone call, and the first offer to a business is a free listing. The first wave, to track operators, is written and waits for my go. Some organizers publish calendars the harvester cannot read; the plan is to reach them by email. And the weekly refresh needs to be installed and switched to write.

The track pages carry the same invitation to send corrections, and the About page puts it plainly for organizers: Track-Daze lists their events for free. “We want to get it right.”

About the author

Carlos Mendez

Carlos Mendez

IT support and systems, Maui, Hawaii

I come from IT support and systems work. I build and run my own infrastructure and the production websites for West Maui Tech, my business, and I build AI tooling on top of that stack. I write here about what I run, what broke, and how I fixed it.