snowboardjohn.devwriting

Research note 001 / meta

One source, five representations

How this site publishes a single Markdown file for humans and agents.

· 2 min read

Most websites are built for humans, and agents are left to scrape meaning out of the HTML. This site is built for both from the start, and the mechanism is deliberately boring: there is exactly one source of truth per article — a plain Markdown file — and everything else derives from it at build time.

The pipeline

Each article in src/content/writing/ carries schema-validated frontmatter and a Markdown body. One build produces five representations:

Representation Where
HTML page /writing/<slug>/
Markdown alternate /writing/<slug>.md — the source file, verbatim
RSS /rss.xml
Sitemap /sitemap-index.xml
Agent index /llms.txt

The Markdown alternate is not generated — it is the source file. There is no HTML-to-Markdown conversion step that can drift, because there is nothing to convert. Each HTML page advertises its alternate with a <link rel="alternate" type="text/markdown"> tag, so an agent that lands on the HTML can discover the representation meant for it.

Why not MDX

MDX would make interactivity easy, but it makes the source file worse as a document: an agent reading raw MDX gets imports, JSX expressions, and component references it cannot interpret. Plain Markdown with build-time directives keeps the source portable:

Interactive directives added later — simulators, trace players, dataset explorers — follow the same contract: the directive’s children are its static fallback, with a description and a link to the underlying data, so nothing is lost in the Markdown representation.

Reading without JavaScript

Article pages ship zero client-side JavaScript, enforced by CI rather than by intention. Interactive components, when they arrive, will load on demand as islands inside directive-mounted slots — the page reads completely without them.

Every substantial claim on this site should trace back to source code, experimental evidence, or a reproducible implementation. For this article the evidence is the repository in the footer below: the entire mechanism described here is in it.