Skip to main content
Glama

a11ied: automated screen reader and WCAG testing

a11ied is a CLI-first accessibility toolkit. The docs site has the guides and reference, starting with the quickstart. It does three jobs:

try it in the browser

  • Playground: run the simulated screen reader on a test case or a practice page in your browser, and read the log of what it announced.

  • Screen reader compatibility: a "Can I use" for screen readers. Search an ARIA role, attribute, or HTML element to see what each screen reader announces for it, by browser and operating system, from a11ied's recorded runs and W3C ARIA-AT reports. @a11ied/compat checks the same data from code.

Related MCP server: aria51 MCP Server

install

npx a11ied setup

Setup offers to install the a1 command globally (it is also available as a11ied), to add the a11ied skills and MCP server to your AI coding agents, and to set up VoiceOver or NVDA. To use a11ied as a library or in tests, run npm install a11ied in your project.

The a11ied plugin installs the skills and the MCP server together in Claude Code, Codex, GitHub Copilot CLI, Gemini CLI, and Antigravity. In Claude Code:

claude plugin marketplace add hypothesi/a11ied
claude plugin install a11ied@a11ied

Set up an AI agent has the commands for the other agents.

a1 doctor                    # check this machine and list the setup steps still needed
a1 setup                     # connect AI agents, set up VoiceOver or NVDA, then re-check
a1 update                    # install the latest version
a1 wcag 4.1.3                # one criterion: techniques, failures, test method, next command
a1 wcag rule color-contrast  # an axe rule mapped back to its criteria and fixes
a1 pattern combobox          # the ARIA pattern: its keyboard and attribute tables
a1 check http://localhost:3000  # scan one page while you build
a1 help-all

The CLI reference describes every command. Set up VoiceOver or NVDA explains what a1 setup and a1 doctor do on each platform.

audit a site, page, or app

a1 audit init https://example.com --rule "Do not submit the contact form"
a1 audit discover            # add the site's pages to the audit
a1 audit scan                # automated checks on every page, in parallel
a1 audit next --worker w1    # each parallel agent claims a unit, tests it, and submits
a1 audit status              # progress at any time; a1 audit dashboard serves a live page
a1 audit report              # HTML, Markdown, and JSON

An audit is a set of pages (pages, screens, states, flows) and the success criteria in scope. The work is split into units, one test pass on one page, that agents claim and test in parallel. Automated checks record the failures a scanner is certain of and collect facts for the agents. An agent decides every pass and every not-applicable. State lives in .a11ied/audits/<id>/, so an audit survives a crashed agent or a restart.

Narrow the scope with --page (one page), --criteria 1.4.3,2.4.7, --passes keyboard, or --platform ios. On web, the scan lists the controls on each page that open a menu, dialog, tab, or section, and a submission must account for every one. A finding gives a selector for the failing element, and a1 takes an outlined screenshot of it for the report. The audit guide covers the workflow, and internal-docs/audit-architecture.md explains the design. Agents use the a11ied-audit skill in packages/skills/; Set up an AI agent covers the skills and the MCP tools.

Use the runtime API:

import { listWcagCriteria, runAxe, startDriverSession } from 'a11ied';

Drive a screen reader from a test (Write screen reader tests, Test with Vitest). a11ied/test works under any runner, and a11ied/vitest adds toHaveSpoken, toHaveSpokenInOrder, and toHaveCursorOn matchers plus a test whose sr fixture is a queued screen reader, so a test writes no await until it needs a value. Commands and checks chain, and a check waits up to five seconds for its phrase:

import { queuedScreenReader } from 'a11ied/test';

await using sr = await queuedScreenReader({ url: 'http://localhost:3000/checkout' });

sr.goTo({ role: 'button', name: 'Pay' })
   .press('Enter')
   .expect.spoken('dialog, Confirm payment')
   .and.cursorOn({ role: 'button', name: 'Confirm' });

workspaces

The repo is split into npm workspaces. Three of them are packages people install: a11ied from packages/cli, @a11ied/compat (the compatibility API), and @a11ied/support-data (the data behind the compatibility tables). The other @a11ied/* packages are internal. They are published only because a11ied depends on them, and their APIs can change in any release.

quick start

npm install
npm run standards
npm test

standards data workflow

See maintaining the WCAG data for what the data files hold. When you need to refresh the pinned WCAG artifacts, stay at the repo root and run:

npm run wcag:sync
npm run wcag:validate
npm run standards
npm test

That flow does four things:

  • pulls the approved upstream WCAG, ACT, Quickref, WCAG2Mobile, and ARIA Authoring Practices Guide sources into packages/wcag-data/data/raw/ and the generated artifacts

  • regenerates the committed normalized artifacts in packages/wcag-data/data/generated/

  • checks that lint, typecheck, and builds still pass across the repo

  • runs the full Vitest suite through the dedicated npm test entrypoint

If the generated diffs look wrong, stop there. The provenance manifests and regression fixtures are supposed to make surprising changes obvious.

For the package-level details, see packages/wcag-data/README.md.

releases

Every published package shares one version, and Changesets writes the changelogs. When a pull request changes what users of a11ied, @a11ied/compat, or @a11ied/support-data get, run npx changeset and describe the change for them. .changeset/README.md says how to write one, and the release checklist covers publishing.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers