BarrierLab

Overview

What a11y-core is, which crates belong to it and how this documentation is organized.

a11y-core is the shared set of building blocks of the CASOON accessibility tools in Rust. One rule set serves three surfaces with identical rule IDs and identical JSON:

SurfaceToolSubstrate
Build timeastro-post-auditstatic HTML from dist/
CI / crawlauditmysiteChrome via CDP, native accessibility tree
Running pageliveauditthe page’s DOM, via WASM

Crates

CratePurpose
a11y-reportFinding and report model, JSON contract
a11y-domDocument model abstraction plus capability tiers
accnameWAI-ARIA accessible name and role computation
a11y-rulesThe rules, generic over the document model

All four are on crates.io at version 0.26.1 and are versioned in lockstep. Planned but not yet available is a11y-conformance: a shared fixture corpus that keeps the three surfaces from drifting apart.

Where it stops

a11y-core provides no HTML parser, no crawler and no browser control. The host builds the tree: astro-post-audit from the build files, auditmysite from Chrome, liveaudit from the page’s DOM. The bundled Arena from a11y-dom is the test vehicle and the form a WASM host needs.

How this documentation is organized

  • Getting started: add the crates and check a first document.
  • Concepts: capability tiers, the finding model and name computation.
  • Reference: all rule IDs, an overview of the public API and the annotation file (external assessments of findings, keyed by finding id). The detailed documentation of each type is on docs.rs.
  • Planning: page-dependent rules inventory, which auditmysite rules need the live page and what data a host would have to supply (in German).

Edit this page on GitHub