Allyward

v1.0.0
io.github.NotAisu/allyward Checked 11 hours ago Published 14 hours 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 Allyward Check

Runs Allyward's deterministic WCAG 2.2 AA Check and returns the JSON result of `allyward 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 fa…

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 Allyward rule

The docs of a Check rule, as `allyward 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 allyward://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 Allyward rules

The Check's rules as `allyward 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.