@iandolan/astro-a11y
v0.1.1
Published
Static WCAG 2.2 AA checks over built HTML. Catches the failures that are visible in markup; the rest need a browser.
Maintainers
Readme
@iandolan/astro-a11y
Markup-level accessibility audit as pure functions over HTML strings. No Astro import, no DOM library, no network, so it runs in CI, in a verification suite, or anywhere else.
import { audit, auditAll } from '@iandolan/astro-a11y';
const report = audit({ html, page: 'about.html' });Checks are graded by impact (moderate, serious, critical) and can be selectively ignored per site, with the reason recorded in the site's config.
An honest scope note: a clean result means no markup-level failures were found. It does not mean the page is accessible. Contrast, focus visibility, reflow and real keyboard order cannot be seen from markup. Finish in a browser.
Part of the Dolan SEO Suite, WordPress SEO plugin functionality rebuilt for static Astro sites. Plain ESM, zero dependencies.
MIT © Ian Dolan
