All Projects → claflamme → Axegrinder

claflamme / Axegrinder

Crawl websites for accessibility issues from the command line.

Programming Languages

coffeescript
4710 projects

Projects that are alternatives of or similar to Axegrinder

Lumberjack
An automated website accessibility scanner and cli
Stars: ✭ 109 (+808.33%)
Mutual labels:  crawler, accessibility, a11y
Crawlergo
A powerful dynamic crawler for web vulnerability scanners
Stars: ✭ 1,088 (+8966.67%)
Mutual labels:  crawler, chromium, headless
Construct.css
Focus on the content and structure of your HTML
Stars: ✭ 432 (+3500%)
Mutual labels:  accessibility, a11y
A11y Style Guide
Accessibility (A11Y) Style Guide
Stars: ✭ 493 (+4008.33%)
Mutual labels:  accessibility, a11y
Csvtk
A cross-platform, efficient and practical CSV/TSV toolkit in Golang
Stars: ✭ 566 (+4616.67%)
Mutual labels:  command-line, csv
Koa11y
Easily check for website accessibility issues
Stars: ✭ 403 (+3258.33%)
Mutual labels:  accessibility, a11y
Accesslint.js
Keep accessibility errors in check.
Stars: ✭ 423 (+3425%)
Mutual labels:  accessibility, a11y
Headless Chrome Crawler
Distributed crawler powered by Headless Chrome
Stars: ✭ 5,129 (+42641.67%)
Mutual labels:  crawler, chromium
A11y styled form controls
Various styled accessible form controls
Stars: ✭ 335 (+2691.67%)
Mutual labels:  accessibility, a11y
Cuprite
Headless Chrome/Chromium driver for Capybara
Stars: ✭ 743 (+6091.67%)
Mutual labels:  chromium, headless
Html Pdf Chrome
HTML to PDF converter via Chrome/Chromium
Stars: ✭ 629 (+5141.67%)
Mutual labels:  chromium, headless
Nextsimplestarter
🐳 Simple and Accessible PWA boilerplate with Nextjs 10 + React Hooks
Stars: ✭ 744 (+6100%)
Mutual labels:  accessibility, a11y
Accessible components
Listing of accessible components & patterns
Stars: ✭ 393 (+3175%)
Mutual labels:  accessibility, a11y
Axe Core
Accessibility engine for automated Web UI testing
Stars: ✭ 4,293 (+35675%)
Mutual labels:  accessibility, a11y
Puppetron
Puppeteer (Headless Chrome Node API)-based rendering solution.
Stars: ✭ 429 (+3475%)
Mutual labels:  chromium, headless
Webster
a reliable high-level web crawling & scraping framework for Node.js.
Stars: ✭ 364 (+2933.33%)
Mutual labels:  crawler, chromium
Reakit
Toolkit for building accessible rich web apps with React
Stars: ✭ 5,265 (+43775%)
Mutual labels:  accessibility, a11y
Playbook Ios
📘A library for isolated developing UI components and automatically taking snapshots of them.
Stars: ✭ 830 (+6816.67%)
Mutual labels:  accessibility, a11y
Checka11y.css
A CSS stylesheet to quickly highlight a11y concerns.
Stars: ✭ 313 (+2508.33%)
Mutual labels:  accessibility, a11y
A11yproject.com
The A11Y Project is a community-driven effort to make digital accessibility easier.
Stars: ✭ 3,436 (+28533.33%)
Mutual labels:  accessibility, a11y

Axegrinder

Axegrinder is a command-line tool for developers that crawls websites and runs aXe accessibility tests on every page it finds. Tests are run in a headless chromium instance—the real deal.

This tool is only meant to find and flag problematic pages. For detailed (and interactive) results, try one of the aXe browser plugins.

👉 Chrome 👉 Firefox

Installation

Axegrinder is a node.js package so you'll need node and npm installed. You can install the package globally and run it from the command line.

npm i axegrinder -g

Reference

Further explanations of all the options can be found below.

Usage: axegrinder [options] <url>

Crawls a website and reports accessibility issues for each page.


Options:

  -c, --csv <filepath>    path to CSV output file
  -i, --include [string]  include only URLs containing this string
  -e, --exclude [string]  exclude any URLs containing this string
  -t, --tags <string>     comma-separated list of rule tags (wcag2a,wcag2aa,section508,best-practice)
  -x, --xpaths            show xpaths in console results
  -h, --help              output usage information

Basic Usage

Point axegrinder at a URL and it will do its best to find and test as many pages as possible.

axegrinder https://nodejs.org

First, it will build a map of the site by crawling as much as it can. Once that's done, it will run through every page and execute a battery of accessibility tests in a headless browser.

Results logged to the terminal will either be a pass (in green), or contain a list of violations (in red). If aXe was unable to complete certain tests, those will be marked as "incomplete" (highlighted in yellow).

Options

-c, --csv

Of course, it's not super useful to get results in the command line. For a more permanent results set, use the --csv option.

axegrinder crawl https://nodejs.org --csv=path/to/output.csv

Axegrinder will log each violation or incomplete test, along with the URL of the page that caused it. If you abort the crawl early, your results up to that point will still be saved to the CSV file.

-t, --tags

Since axegrinder is a wrapper around aXe, you can use any of the aXe "tags" to specify which tests to run.

axegrinder crawl http://nodejs.org --tags=wcag2a,wcag2aa

Note that you can set multiple tags at once, as a comma-separated list. By default, axegrinder sets this option to wcag2aa (AA compliance).

The available options are listed below. The names are pretty self-explanatory, but you can check the aXe docs for specifics.

  • wcag2a
  • wcag2aa
  • section508
  • best-practice

-i, --include

Odds are pretty good that you don't want to test your entire site all at once. You can use the --include arg to only include pages that have a specific string in the URL.

# Only scan pages with "/en/about" in the URL
axegrinder crawl https://nodejs.org --include=/en/about

This option can be used multiple times to specify several strings.

-e, --exclude

This works the opposite way that the "include" option works. Use --exclude to ignore pages that have a given string in their URL.

# Skip any pages with "/blog" in the URL
axegrinder crawl https://nodejs.org --exclude=/blog

This option can be used multiple times to specify several strings.

-x, --xpaths

If you'd like to include the xpaths for nodes that triggered violations, you can do so with the --xpaths flag. Adding this flag causes lists of xpaths to show up in your results.

axegrinder crawl https://nodejs.org --xpaths

This can be useful for a quick idea of how many specific issues your pages have, but I very much advise against using it for any serious debugging. The official aXe browser extensions are specifically built for that purpose and do an infinitely better job.

-h, --help

Print out the handy-dandy help dialogue, as seen in the Reference section.

axegrinder --help
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].