Skip to content
PluginStats

vitest-accessibility-checker weekly downloads statistics

By IBMa · npm · Testing

Accessibility Checker for Vitest

View on npm Fresh · Dec 6, 2026

vitest-accessibility-checker has 753 recorded weekly downloads on npm, an increase of 1737% over the past 30 days, ranking #2162 of 3,247 tracked listings.

Weekly downloads
753
Official API · Dec 5, 2026
7-day growth
+1176%
+694 weekly downloads
30-day growth
+1737%
+712 weekly downloads
90-day growth
+865%
+675 weekly downloads
Rank
#2162
▲ 422 in 7 days

About vitest-accessibility-checker

vitest-accessibility-checker

⚠️ Important: This package requires Vitest Browser Mode

Accessibility testing plugin for Vitest that integrates IBM Equal Access Accessibility Checker. This package is designed specifically for Vitest Browser Mode and requires a real browser environment to run accessibility scans.

Requirements

  • Vitest 2.0+ with Browser Mode enabled
  • A browser provider (Playwright, WebdriverIO, or Puppeteer)
  • Node.js 16 or higher

Installation

npm install --save-dev vitest-accessibility-checker
Optional: XLSX Report Format

If you want to generate reports in XLSX format, you need to install exceljs as an additional dependency:

npm install --save-dev exceljs

Without exceljs installed, all other report formats (JSON, HTML, CSV) will work normally, but XLSX format will be disabled with a warning message.

Usage

1. Configure Vitest with Browser Mode

Browser Mode is required. Add the plugin to your vitest.config.js and ensure browser mode is enabled:

import { defineConfig } from 'vitest/config'
import { accessibilityCheckerPlugin } from 'vitest-accessibility-checker'

export default defineConfig({
  plugins: [
    accessibilityCheckerPlugin({
      // Optional configuration
      ruleArchive: "latest",
      policies: ["IBM_Accessibility"],
      failLevels: ["violation"],
      reportLevels: ["violation", "potentialviolation", "recommendation", "potentialrecommendation", "manual"]
    })
  ],
  test: {
    browser: {
      enabled: true,
      name: 'chromium',
      provider: 'playwright'
    }
  }
})
2. Setup Custom Matcher (Optional but Recommended)

Create a setup file to extend Vitest's expect with the toBeAccessible matcher:

// setupMatchers.js
import { expect } from 'vitest'
import { toBeAccessible } from 'vitest-accessibility-checker/matchers'

expect.extend({
  toBeAccessible
})

Add it to your vitest config:

export default defineConfig({
  test: {
    setupFiles: ['./setupMatchers.js'],
    browser: {
      enabled: true,
      name: 'chromium',
      provider: 'playwright'
    }
  }
})
3. Write Tests
Using the Custom Matcher (Recommended)

The toBeAccessible matcher provides the cleanest syntax:

import { expect, test } from 'vitest'
import { render } from 'vitest-browser-react'
import MyComponent from './MyComponent'

test('component is accessible', async () => {
  const { container } = await render(<MyComponent />)
  
  // Use the custom matcher - simple and clean!
  await expect(container).toBeAccessible('MyComponent')
})
Using Direct API Calls

You can also use the API functions directly:

import { expect, test } from 'vitest'
import { render } from 'vitest-browser-react'
import { getCompliance, assertCompliance } from 'vitest-accessibility-checker/commands'
import MyComponent from './MyComponent'

test('component is accessible', async () => {
  const { container } = await render(<MyComponent />)
  
  // Get compliance report
  const report = await getCompliance(container, 'MyComponent')
  
  // Check for violations
  const violations = report.results.filter(r => r.level === 'violation')
  expect(violations).toHaveLength(0)
})

test('component passes accessibility check', async () => {
  const { container } = await render(<MyComponent />)
  
  // Get report and assert compliance
  const report = await getCompliance(container, 'MyComponent')
  const rc = await assertCompliance(report)
  expect(rc).toBe(0)
})
Testing with Inline HTML

You can also test accessibility by rendering HTML directly:

import { expect, test } from 'vitest'
import { getCompliance } from 'vitest-accessibility-checker/commands'

test('page structure is accessible', async () => {
  // Render HTML directly in the document
  document.body.innerHTML = `
    <main>
      <h1>Page Title</h1>
      <img src="test.jpg" alt="Description" />
      <button>Click me</button>
    </main>
  `
  
  const report = await getCompliance(document.body, 'page-structure')
  expect(report.results).toHaveLength(0)
})

API

Custom Matcher
expect(element).toBeAccessible(label)

Custom Vitest matcher that scans an element and asserts it has no accessibility violations.

  • element: DOM element or document to scan
  • label: String label for this scan
  • Throws: Assertion error if violations found
  • Returns: Promise<void>

Example:

await expect(document.body).toBeAccessible('HomePage')
Direct API Functions

All functions can be imported from vitest-accessibility-checker/commands:

getCompliance(content, label)

Scans the provided content and returns a compliance report.

  • content: DOM element or document to scan
  • label: String label for this scan
  • Returns: Promise<Report> - Accessibility report with results array

Example:

import { getCompliance } from 'vitest-accessibility-checker/commands'

const report = await getCompliance(document.body, 'MyPage')
console.log(report.results) // Array of accessibility issues
assertCompliance(report)

Checks a report and returns a status code based on violations and baseline comparison.

  • report: Report object from getCompliance
  • Returns: Promise<number> - 0 if passes, 1 if fails baseline, 2 if fails on failLevels

Example:

import { getCompliance, assertCompliance } from 'vitest-accessibility-checker/commands'

const report = await getCompliance(document.body, 'MyPage')
const rc = await assertCompliance(report)
expect(rc).toBe(0) // Assert no violations
getBaseline(label)

Gets the baseline for a specific label.

  • label: String label for the baseline
  • Returns: Promise<Object> - Baseline data
getDiffResults(label, actual)…

Description from the npm listing.

  • ci
  • integration
  • continuous
  • accessibility-checker
  • vitest
  • vitest-plugin
  • vitest-accessibility-checker
  • a11y
  • accessibility
  • IBMa

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vitest-accessibility-checker weekly downloads on npm, last 90 days: 753 weekly downloads as of Dec 5, 2026, +865% over 90 days.vitest-accessibility-checkerWeekly downloads on npm · Last 90 days753downloads / week+865% over 90 days0200400600800Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vitest-accessibility-checker weekly downloads on npm, last 90 days: 753 weekly downloads as of Dec 5, 2026, +865% over 90 days.

7/30/90-day growth

vitest-accessibility-checker weekly downloads growth on npm: +1176% over 7 days, +1737% over 30 days, +865% over 90 days.vitest-accessibility-checkerWeekly downloads growth on npm753downloads / week now7-day growth+694 weekly downloads+1176%30-day growth+712 weekly downloads+1737%90-day growth+675 weekly downloads+865%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vitest-accessibility-checker weekly downloads growth on npm: +1176% over 7 days, +1737% over 30 days, +865% over 90 days.

Ranking history

vitest-accessibility-checker npm ranking history: currently #2162 (by weekly downloads).vitest-accessibility-checkernpm ranking · by weekly downloads · Last 90 days#2162current rank#500#1000#1500#2000#2500#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
vitest-accessibility-checker npm ranking history: currently #2162 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 109, #2 (overall #2,162)
All npm: every listing in weekly downloads order

Listing placement

Testing26 listings · 2 pages · page 1, #9 (overall #9)
Testing: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (592)
Recent weekly downloads observations for vitest-accessibility-checker
Date (UTC)Weekly downloadsChange vs. previous
753+166
587+372
215+159
56+15
41-5
46-9
55-4
59+1
58-23
81-16
97-2
99+5
94+5
89—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/vitest-accessibility-checker. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.