Accessibility
Use jsonvet from a terminal or with a keyboard in the playground and docs. See which accessibility checks have run and how to report a problem.
Command-line interface
jsonvet is a command-line program. It should work with a screen reader, in a terminal without colour, and in scripts and CI logs:
- Colour is never the only signal. A coloured message also says in words what it
means, such as
error:orwarning:. - It prints no colour when the
NO_COLORenvironment variable is set, whenCLICOLOR=0is set, whenTERMisdumb, or when you pass--color never. - When its output is not a terminal, such as a pipe, a file or a CI log, it prints plain lines, with no spinners, progress bars or cursor movement.
- Text output writes errors to standard error; JSON output follows its report stream.
An error about a file names the place as
file:line:col, so an editor or a screen reader can jump to it.
Web playground
The playground runs jsonvet via WebAssembly in the browser:
- Works with keyboard navigation: dialect switches are a radio group navigable with arrow keys, and problem notes and code snippets are focusable.
- Screen reader announcements use semantic roles (
role="radio",role="tablist") and anaria-liveverdict region that says whether the text parses and how many problems a rule found. The region is emptied when the verdict changes and filled again a second later. A screen reader never reads the old verdict beside the new one. - F8 and Shift+F8 jump to the next and previous problem.
- Colour schemes follow the system’s light or dark mode, and a button in the header switches between them. Both use high-contrast ink. Problem counts and severity indicators accompany colour markings. Each dialect’s count is written out (“1 error”, “stops at 2:3”), not shown as bare numbers.
Tested with
The 2026-11-26 pass ran axe-core in Chrome at 400 px and 1440 px wide, in light and dark mode. It covered the playground, the reference, the open search dialog and the matrix, including open file details. It found no reported WCAG A or AA violations. The keyboard paths of the playground, search and matrix also passed in Firefox and WebKit. The docs build tests check landmarks, labels and unique ids on every page.
Docs search
Press / to open docs search. Tab to a result and press Enter. For an exact rule ID, Enter
from the search field opens that rule’s reference section. Escape closes the dialog and returns
focus. Without script the search button is hidden and the docs stay readable.
Known gaps
- No screen reader test yet, so the live announcements are unverified.
- The editor is a plain text area, so it has no code folding or bracket matching.
Contact
If jsonvet is hard to use with your setup, email code@duinlab.nl. Say what you tried, what you use (terminal, browser, screen reader, operating system) and what happened.