New:Socket for Asana Is Now Available.Learn more
Get Started

@webability/core

Package Overview
Dependencies
Maintainers
1
Versions
11
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

latest
Source
npmnpm
Version
1.3.1
Version published
Maintainers
1
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 21 Aug 2026

Related posts