Skip to contentFree site check: see what stops Google and AI assistants reading your site

heddle check --only a11y

Accessibility Check

The accessibility check opens your built pages in a browser, at desktop and phone width, and fails anything that breaks WCAG 2.1 A or AA, from contrast and headings to a page that won't reflow. Without it, a menu that only appears on phones can fail contrast, or a page can scroll sideways on a small screen, and the first person to notice is a visitor who can't use it.

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.

one of 46 checksruns offlineruns every build

Why it exists

WCAG 2.1 A and AA, measured in a browser on the built site.

Serves the build the way its host does (lib/serve.mjs), opens each page in Chromium at 1280px and at 375px, and runs axe-core with the wcag2a, wcag2aa, wcag21a and wcag21aa tags. Contrast, names, roles, labels, landmarks, lang and the rest axe can decide. On the same load it checks what axe cannot see whole.

One h1 and no skipped heading level, every <img> with alt that is not its file name or a word like "image", every SVG diagram with an accessible name and a role, every <video> with captions and every embedded player with a transcript, content that reflows at 320px without a sideways scroll or text cut off (1.4.10), and link text that says where it goes. A page whose stylesheet answers prefers-color-scheme is measured for contrast in its other scheme too.

Which pages. One of every template (a page family, else the route's shape), one more for each kind of content a template carries (a form, a player, a table, a diagram), and every page whose source changed since --base. site.json a11y.pages "all" reads every built page (the audit).

Fails closed. Without Chromium, without axe-core, with no build in strict mode (CI), or with a page that did not load, the check FAILS and says what to install. An accessibility check nobody ran is never a pass. In strict mode a base whose changes cannot be listed fails too. A pull request whose changes can't be read is not one with none.

site.json a11y: exempt ({ route. Reason }) spares a page, ignore ([{ rule, route?, reason }]) one rule, each only with a written reason; colorScheme ("light", the default, or "dark") is the scheme read first.

Origin (the reference site, 27 October 2026). Its owner asked that "the entire site" meet WCAG 2.1. The first run found contrast failures in the template, menus and links that existed only at phone width, clipped text at 320px, and named-nothing links ("Read more") on every card; none of it was visible to a check over the markup, and the post's share of it is lib/checks/a11y-post.mjs.

From lib/checks/a11y.mjs in the Heddle repository at 4ccdf8b.

Questions

What does the accessibility check look for?

WCAG 2.1 A and AA on the built pages, in Chromium at 1280 and 375px: axe-core (wcag2a, wcag2aa, wcag21a, wcag21aa), one h1, heading order, meaningful alt, named diagrams, captions, link text, reflow at 320px, contrast in both colour schemes. Fails when it cannot run.

How do I run the accessibility check?

Build the site, then run node bin/heddle.mjs check <site> --only a11y 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.