npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@webability/react-native

v1.0.3

Published

WCAG accessibility testing for React Native — bridges to native iOS + Android SDKs.

Readme

@webability/react-native — Accessibility SDK for React Native

Bridges to the native iOS + Android WebAbility SDKs so a single audit() call works on both platforms.

Install

npm install @webability/react-native
cd ios && pod install

Usage

import { audit, generateFix, upload } from '@webability/react-native'

// Audit the current screen
const result = await audit({ screenName: 'home' })
console.log(`Score: ${result.score}, ${result.summary.total} issues`)

// AI fix for the first critical issue (returns RN-specific code)
const fix = await generateFix(result.issues[0], 'react-native')
console.log(fix.alternatives[0].frameworkCode)
// → "<TouchableOpacity accessibilityLabel=\"Close\" ... />"

// Upload to dashboard
await upload(result, { projectId: 'my-app', apiKey: process.env.WEBABILITY_API_KEY })

Jest matchers

import { audit } from '@webability/react-native'

test('home screen is accessible', async () => {
  const result = await audit({ screenName: 'home' })
  expect(result.summary.critical).toBe(0)
  expect(result.score).toBeGreaterThan(90)
})

Detox integration

import { device, expect, element, by } from 'detox'
import { audit } from '@webability/react-native'

describe('Checkout flow', () => {
  it('passes accessibility audit at every step', async () => {
    await device.launchApp()

    await expect(element(by.id('home'))).toBeVisible()
    expect((await audit({ screenName: 'home' })).summary.critical).toBe(0)

    await element(by.id('buy-now')).tap()
    expect((await audit({ screenName: 'cart' })).summary.critical).toBe(0)
  })
})

In-app overlay

In a DEBUG build, shake the device to toggle the floating panel. Or call toggleOverlay() from a debug menu.

import { toggleOverlay } from '@webability/react-native'

// In your dev menu
<DevButton onPress={toggleOverlay}>Show A11y Overlay</DevButton>

What's audited

The same WCAG-mapped detectors as the native SDKs:

  • 1.4.3 Contrast
  • 2.5.8 Touch targets
  • 1.1.1 Labels / contentDescription
  • 1.4.4 Dynamic type
  • 1.3.1 Heading hierarchy
  • 2.4.3 Focus order
  • 2.3.3 Reduced motion
  • 1.4.1 Color-only meaning
  • 3.3.2 Required form indicators

How it works

┌─────────────────────────────────┐
│   React Native App (your code)  │
└────────────────┬────────────────┘
                 │
       audit() / generateFix()
                 │
        ┌────────┴────────┐
        ▼                 ▼
  ┌───────────┐    ┌────────────┐
  │ iOS Native│    │   Android  │
  │  SDK      │    │   SDK      │
  └─────┬─────┘    └──────┬─────┘
        │                 │
        ▼                 ▼
  Apple's Audit API  Google a11y-test-framework
  + custom Swift     + custom Kotlin detectors
  detectors

Native SDKs do the heavy lifting (UI tree walk, WCAG check, view introspection). The RN bridge just exposes results to JS.