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

react-a11y-assist

v2.0.0

Published

React A11Y Library with voice commands and Chrome DevTools extension

Readme

React-a11y-assist

Developer-first accessibility toolkit for React

Make your apps more inclusive with accessible components, hooks, and voice interaction support — all in one lightweight library.

npm version

License: MIT

Build


🚀 Quick Start

Install the package:

npm install react-a11y-assist

Or

yarn add react-a11y-assist

✨ Features by Version

Version Features

v0.1 - Higher-Order Components (HOC) like withA11y for semantic accessibility

v0.2 - Hooks: useKeyboardNavigation, useRTL for enhanced keyboard support

v0.3 - Accessible UI components like Modal, AccessibleButton

v0.4 - RTL support & automated Lighthouse a11y audit hooks

v1.0 - Voice command interaction via Web Speech API + Chrome DevTools Extension

🌟 Why react-a11y-assist?

Your zero-setup accessibility companion for React.

React-a11y-assist isn't just another UI library — it’s a toolkit designed for real-world accessibility baked right into your components, hooks, and dev workflow.

Here's what sets it apart:

No dependencies – Works out of the box with your existing React app

Voice command support – Integrates with the Web Speech API for hands-free navigation

Developer-first DX – Lightweight, TypeScript-native, and tree-shakable

Lighthouse-Ready – Helps pass accessibility audits with minimal effort

RTL Support – Right-to-left layouts with just one hook

HOCs + Hooks + Components – Flexible APIs to match your coding style

DevTools Friendly – Built for future integration with Chrome Extensions

Open-source & Extensible – MIT licensed, easily customizable, and community-driven

📦 Usage Examples

1. Wrapping components with withA11y HOC

import withA11y from "react-a11y-assist/hocs/withA11y";

const AccessibleSection = withA11y("section");

export default function App() {
  return (
    <AccessibleSection aria-label="Profile">
      <h1>Hello World</h1>
    </AccessibleSection>
  );
}

2. Managing focus with useKeyboardNavigation

import { useRef } from "react";
import useKeyboardNavigation from "react-a11y-assist/hooks/useKeyboardNavigation";

export default function Menu() {
  const listRef = useRef < HTMLUListElement > null;
  useKeyboardNavigation(listRef);

  return (
    <ul ref={listRef}>
      <li tabIndex={0}>Home</li>
      <li tabIndex={0}>About</li>
      <li tabIndex={0}>Contact</li>
    </ul>
  );
}

3. Using the Modal Component

import Modal from "react-a11y-assist/components/Modal";

export default function App() {
  const [open, setOpen] = useState(false);

  return (
    <>
      <button onClick={() => setOpen(true)}>Open Modal</button>
      <Modal isOpen={open} onClose={() => setOpen(false)}>
        <h2>Accessible Modal</h2>
        <p>This modal traps focus and supports ESC close.</p>
      </Modal>
    </>
  );
}

4. Accessible Button

import AccessibleButton from "react-a11y-assist/components/AccessibleButton";

export default function ButtonDemo() {
  return (
    <AccessibleButton onClick={() => alert("Clicked!")}>
      Click Me
    </AccessibleButton>
  );
}

5. Voice Commands with useVoiceCommands

import useVoiceCommands from "react-a11y-assist/hooks/useVoiceCommands";

export default function VoiceDemo() {
  useVoiceCommands({
    hello: () => alert("Hello there!"),
    goodbye: () => alert("Goodbye!"),
  });

  return <p>Say "hello" or "goodbye" to trigger commands</p>;
}

🧪 Testing

React-A11y-Assist is tested with Vitest and React Testing Library.

npm run test

🤝 Contributing

We 💙 contributions!

1. Fork the repo

2. Create a branch

 git checkout -b feature/my-feature

3. Commit your changes

git commit -m "feat: add new feature"

4. Push to GitHub

git push origin feature/my-feature

5. Open a Pull Request 🚀

📄 License

MIT © @manish3299

Built with 💙 to make the web more inclusive.