heddle check --only active
Active Content Check
The active content check reads every built page whole and fails anything that can run, such as a script or an event handler, unless the site's own template, build or data put it there. Without it, a post brought in from a draft can carry a script or a link that runs code, and it runs on your domain for every reader. A post carries nothing that runs, read where a browser reads it. The built page.
With Heddle on your site it runs on every build, so a page that fails it is fixed before a buyer or a search engine sees it.
Why it exists
A post carries nothing that runs, read where a browser reads it. The built page. Every built page is parsed with parse5, the HTML parser the browser specification defines, whole, and everything in it that can run (a script, an event handler, a URL that runs, a frame, an embed, a base, a refresh) must be the site's own:
- part of the template. The same, byte for byte, on at least half the built pages (and three), which no one post can make true;
- a file the build made. A same-origin script or stylesheet whose file is in the build, the site's own code; or
- data: structured data, JSON, or a framework's data-only script (Next.js's self.__next_f pushes of a number and a string), matched whole, so nothing can ride after it.
Why the whole page, and no "content area"? Eight rounds of adversarial review of the MCP server (2 November 2026) beat checks on the Markdown (a renderer reads a fence or a malformed tag differently from any parser Heddle runs), and then every way of deciding where a page's content ends.
A stray </main>, a swallowed end tag, a <main> a post brought itself, a layout the majority didn't share. Reading everything leaves no boundary to argue about. A page built on a template the rest of the site doesn't share may have its own scripts flagged; that fails closed.
The Markdown lint (lib/mcp/lint.mjs) stays as the early warning; this is the gate, in CI's gates job, before a post can merge.
From lib/checks/active.mjs in the Heddle repository at 4ccdf8b.
Questions
What does the active content check look for?
Nothing on a built page may run unless the site itself put it there, in its template, its build or its data.
How do I run the active content check?
Build the site, then run node bin/heddle.mjs check <site> --only active from the Heddle repository.
Ready to get found?
Check your site, talk to us, or see the plans.
Tell us about your business and who buys from you. On a short call we'll show you the searches your buyers make where you don't show up yet, and what the agents would do about them in their first month.