Home/Skills/Pa11y

Site Optimization & CRO · Open source on GitHub

Pa11y

Accessibility testing from the command line. Point it at a URL and get an issue list; it also crawls whole sites and gates CI.

GitHub Open-source tool JavaScript · 4.6k ★ LGPL-3.0
pa11y/pa11y GitHub repository card

Upfront: I did not build this. It is an open-source project on GitHub (pa11y/pa11y, LGPL-3.0). It is listed here on star count, maintenance activity and how well it fits day-to-day storefront operations.

What it does

How to use it

Install globally from npm and run it:

npm install -g pa11y

# scan a page
pa11y https://yoursite.com

# or as a dev dependency for CI
npm install pa11y --save-dev

It tests against WCAG 2.1 AA by default. For whole-site runs install pa11y-ci, which can read a sitemap.

When to use it, and when not to

Reach for this when you want a finished tool that just runs; reach for axe-core when you want to embed checks in your own test code. They coexist fine.

Related guides and videos