Allyproof

v0.4.0
io.github.NotAisu/allyproof Checked 10 hours ago Published 2 days ago

WCAG 2.2 AA accessibility checker for HTML, React, Vue, Svelte, Angular and Astro code.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check Allyproof Check

Runs Allyproof's deterministic WCAG 2.2 AA Check and returns the JSON result of `allyproof check --format json` (schema version 1): Findings of Proven rules with line, WCAG criteria, rule, message, help URL and exact `fix` edits where there are any, and the Needs Review entries the Check cannot decide from source. Pass `paths` to check files or folders of the project, or `code` with `path` (or `languageId`) to check proposed code before writing it. The project's .vscode/settings.json rule settings, Component Mapping and ignore comments apply. A file that cannot be checked (parse error, engine…

ParameterTypeDescription
codestringProposed code to check instead of a file's text.
languageIdstringThe language of code, for example html, vue or typescriptreact. Defaults to the language of path.
limitintegerHow many files a folder's result lists, 20 by default; the summary covers every file.
pathstringThe file the code is for; its extension gives the language and the result names it.
pathsarrayFiles or folders to check, relative to the project or absolute inside it.

explain_rule Explain an Allyproof rule

The docs of a Check rule, as `allyproof explain`: what fails, the WCAG criteria and failure technique, how to fix it, a failing and a passing example, and its proof status with evidence. Read it before fixing a Finding, so the fix removes the cause rather than silencing the rule. Also offered as the resource allyproof://rules/<ruleId>.

ParameterTypeDescription
ruleId *stringThe rule id of a Finding or Needs Review entry, for example image-alt or vuejs-accessibility/alt-text.
languageIdstringThe language whose framework the examples are written in. Defaults to html.

list_rules List the Allyproof rules

The Check's rules as `allyproof rules --format json`: per rule its WCAG criteria, Layer and proof status per language. Only a rule Proven in a language reports Findings there; its other matches are Needs Review entries.