Skip to content

atilafassina/a11y-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

A11y-Reporter

Build Status codecov David

a microservice wrapper around Pa11y and Outline-Audit for reports on semantics and accessibility.

usage ๐Ÿ“ก

A11y-Reporter accepts only POST requests, with 2 keys in the body:

  • url: the absolute url of the page it is intended to test
  • filterList: the array of codes you intend to check for (check all possible codes at Pa11y wiki)
example
const a11yReport = async () => {
  const response = await fetch('https://your-a11y-audit-instance.now.sh', {
    url: 'https://atila.fassina.eu',
    filterList: [
      'WCAG2AA.Principle1.Guideline1_1.1_1_1.H37',
      'WCAG2AA.Principle1.Guideline1_1.1_1_1.H30.2',
      'WCAG2AA.Principle1.Guideline1_1.1_1_1.G94.Image'
    ]
  })

  return response.json()
}

creating your own instance ๐Ÿ›ฐ

Deploy to now

Alternatively, you can also clone this repository and deploy it to the PAAS of your choice ๐Ÿ˜‰

About

๐Ÿ“ˆ microservice for reports on semantics and accessibility

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published