a11ied
a11ied é uma CLI, biblioteca de testes e servidor MCP para testes e auditorias automatizados de leitores de tela e acessibilidade.
Documentação
Automated screen reader and accessibility testing
a11ied is a CLI, testing library, and MCP server for automated screen reader and accessibility testing.
Let AI coding agents verify their own fixes, catch WCAG violations in CI, and assert what your UI announces to a screen reader in your Vitest suite.
npx a11ied setup
a1 sr start --sr virtual https://hypothesi.github.io/a11ied/demo/team/
a1 sr goto --role button --name "Invite member"
a1 sr checkpoint opened
a1 sr activate
a1 sr expect dialog --since opened
sr expect
Expected: "dialog"
Checked: 0 phrases since "opened"
Matched: nothing
Result: fail
✗ Error (expectation-failed): "dialog" was not announced in the transcript since "opened" (0 phrases checked).
These five commands open a dialog on a demo page and check that a screen reader announces it. Nothing is announced, so the check fails. A static scan cannot find this.
Automated accessibility audits
Ask your AI coding agent to audit a site against WCAG. It tests each page with a scan, the keyboard, and a screen reader, and can split the work among its own subagents. a11ied tracks every check and writes the report.
The report gives a verdict, each finding with a screenshot of the failing element and how to fix it, what to fix first, and what could not be verified.

The summary of an example audit report. The page does not meet WCAG 2.2 Level AA. 14 findings: 2 critical, 5 serious, 6 moderate, 1 minor. 10 criteria fail and 20 pass. A table lists what to fix first.
Watch the audit while it runs
An audit of a whole site takes a while. Your agent offers a live dashboard when it starts one, or you can run a1 audit dashboard yourself. It shows how far the audit is, which worker is testing which page, each page by kind of test, and the findings so far.
It also shows what is blocked and needs you, such as a missing test account, and links to the report in progress. The page updates as the work is done, and you can pause it.

The live dashboard for an audit in progress. 59% done: 22 of 37 work units, with about 11 minutes left. One unit needs a person, because the sign-in page needs a test account. 5 findings so far: 2 critical, 2 serious, 1 moderate. A table lists the 4 workers and the page each one is testing.
-
Step 1 Install the agent skills
Two skills teach your agent how to test with a11ied and how to run an audit. The agent then uses thea1command or the MCP server, whichever it has.
Set up an AI agentnpx -y @a1st/aix install https://github.com/hypothesi/a11ied/blob/master/packages/skills/ai.json --only skills --user -
Step 2 Ask your agent for an audit
Say what to audit and what the agent must not do, such as sending a form. The agent runs thea1 auditcommands. You do not have to.
Audit a site with AI agentsAudit https://example.com against WCAG 2.2 AA with a11ied. Do not submit the contact form. Use four workers. -
Step 3 Read the report
The agent writes the report when the audit is done. Run this yourself at any time for the report so far: one HTML file you can send to a client, plus Markdown and JSON.
Browse an example reporta1 audit report
Test while you build
Capture a log of all screen reader output
Drive VoiceOver on macOS, NVDA on Windows, or a simulated screen reader that runs on any machine, all with the same commands. Move by heading, open a dialog, send a form.
Everything the screen reader announces is logged in order, and you can save the log to a file. In this example a dialog opens: its name is announced, then focus moves to its first field.
a1 sr transcript --since opened
# Transcript: virtual on https://hypothesi.github.io/a11ied/demo/team/fixed/
Started 2026-11-24T12:46:17.666Z. Exported 2026-11-24T12:46:29.347Z. 2 phrases.
Selected 2 of 44 session entries.
Earlier entries were omitted by the selection.
1. [12:46:26.047] dialog, Invite member (Invite member)
2. [12:46:26.047] textbox, Email address, required (Email address)
Write end-to-end tests for screen reader behavior
Drive a screen reader from Vitest, Jest, Mocha, or Playwright Test. Move by heading or landmark, press keys, and type into fields. Then assert on what was announced, where the cursor is, and in what order.
When a test fails, the error shows what the screen reader said. The output here is this test run against a page where the dialog opens and nothing is announced.
import { describe, expect } from 'vitest';
import { test } from 'a11ied/vitest';
const team = test.extend({
srOptions: { url: 'https://hypothesi.github.io/a11ied/demo/team/fixed/' },
});
describe('invite dialog', () => {
team('opens with its name and moves focus to the first field', ({ sr }) => {
sr.goTo({ role: 'button', name: 'Invite member' })
.checkpoint('opened')
.activate()
.expect.spoken('dialog, Invite member', { since: 'opened' })
.and.cursorOn({ role: 'textbox', name: 'Email address' });
});
});
FAIL invite.test.ts > invite dialog > opens with its name and moves focus to the first field
ScreenReaderAssertionError: "dialog, Invite member" was not announced in the transcript since "opened" (0 phrases checked).
The reader said nothing.
Waited 5000 ms.
❯ invite.test.ts:13:18
11| .checkpoint('opened')
12| .activate()
13| .expect.spoken('dialog, Invite member', { since: 'opened' })
| ^
14| .and.cursorOn({ role: 'textbox', name: 'Email address' });
15| });
Give your AI coding agent accessibility tools
Add one block of configuration, and Claude Code, Cursor, or any other agent that supports MCP gets 37 tools: scan a page, drive a screen reader, check a widget against its ARIA pattern, look up a criterion. The agent can then test the interface it writes.
In this example the agent asks whether a dialog is announced. a11ied answers that it is not, so the agent can fix the dialog and check again.
{
"mcpServers": {
"a11ied": {
"command": "npx",
"args": ["-y", "a11ied", "mcp"]
}
}
}
Check the Invite member dialog on https://hypothesi.github.io/a11ied/demo/team/ with a11ied. Open it with the simulated screen reader and tell me whether the dialog is announced. Quote what the screen reader said.
sr_expect { "pattern": "dialog", "since": "opened" }
{
"expectation": { "passed": false, "matched": false, "checked": 0, "expected": "\"dialog\"", "since": "opened", "not": false },
"exitCode": 4,
"message": "\"dialog\" was not announced in the transcript since \"opened\" (0 phrases checked).",
"session": { "target": "virtual", "targetType": "simulated", ... }
}
Scan a page for accessibility failures
One command lists every failing element with the WCAG criterion it breaks and a command that looks up the fix.
It also gives you a checklist of the criteria on that page that need a manual test, so you know what to check next.
a1 check https://hypothesi.github.io/a11ied/demo/team/
check https://hypothesi.github.io/a11ied/demo/team/
✗ 10 problems to fix.
Problems
4.1.2 Name, Role, Value [A]
Buttons must have discernible text critical
3 failing elements:
tr[data-status="active"][data-member-row=""]:nth-child(1) > td:nth-child(5) > .icon-button[type="button"]
...
Fix it: a1 wcag rule button-name
...
Check by hand
38 criteria this page triggers need a person:
• 2.1.1 Keyboard
• 2.4.3 Focus Order
...
Screen reader compatibility
It's caniuse for accessibility features
Look up an ARIA attribute, an ARIA role, or an HTML element and see what VoiceOver, NVDA, JAWS, and TalkBack say for it, by browser and operating system. It covers 60 features, and most results come from W3C ARIA-AT reports.
More commands
-
Look up WCAG from the terminal
All 86 criteria of WCAG 2.2 with the W3C's guidance, and a test procedure for the 55 at Levels A and AA. It ships in the package and works offline.a1 wcag 4.1.3 -
Check widgets against W3C ARIA patterns
For a widget such as a combobox or dialog, it presses every key the W3C's ARIA pattern documents and reports the keys that do nothing. It knows the 68 examples in the W3C's ARIA Authoring Practices Guide.a1 pattern check -
Fail a build on new accessibility problems
A failed check exits with code 4, which stops a CI job. A baseline lets an existing site fail only on new problems. Reports come out as SARIF or EARL.a1 axe --fail-on serious -
Screenshot a page at any width, zoom, or Tab stop
Take a screenshot at 320 pixels wide, at 200 percent zoom, with WCAG text spacing, or after four presses of Tab.a1 capture -
Print what TalkBack says on Android
Turn TalkBack on over adb, on a phone or an emulator, and print what it says as focus moves through an app.a1 talkback walk -
Print a page's accessibility tree
See the roles, names, and states a screen reader works from. Filter the tree by role or name, or click a control first to open a menu or dialog.a1 tree
Run your first check in five minutes
Install it, scan a page, and capture what a screen reader announces on it. There is no account to create, and the simulated screen reader needs no setup.
npx a11ied setup