Sign In

@webability/core

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webability/core

Accessibility scanner engine — WCAG 2.2 AA/AAA compliance testing with 200+ rules

Source
npmnpm
Version
1.1.2
Version published
Weekly downloads
60
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

@webability/core

WCAG accessibility scanner engine with 200+ rules and fix suggestions.

Install

npm install @webability/core playwright

Usage

import { scan } from '@webability/core'

const result = await scan('https://example.com')

console.log(result.summary)
// { total: 12, critical: 1, serious: 3, moderate: 8, minor: 0 }

for (const issue of result.issues) {
  console.log(`[${issue.impact}] WCAG ${issue.wcag}: ${issue.message}`)
  if (issue.fix?.suggestedValue) {
    console.log(`  Fix: ${issue.fix.attribute}="${issue.fix.suggestedValue}"`)
  }
}

Scan a live page

import { scan } from '@webability/core'

// Pass a Playwright page object
const result = await scan(page)

Options

const result = await scan('https://example.com', {
  viewport: 'mobile',          // 'desktop' | 'tablet' | 'mobile'
  rootSelector: '#main',       // limit scan scope
  includeAxe: true,            // include additional checks (default: true)
  dismissModals: true,         // dismiss cookie banners (default: true)
})

Reports

import { scan, toHtmlReport } from '@webability/core'

const result = await scan('https://example.com')
const html = toHtmlReport(result)
fs.writeFileSync('report.html', html)
  • WebAbility — AI-powered web accessibility platform
  • Abilyo — Developer tools for accessibility testing
  • Documentation

License

MIT

Keywords

a11y

FAQs

Package last updated on 27 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts