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

a11y-panel

v1.0.1

Published

An modern draggable React Accessibility Widget that allows users to change sites visual changes

Downloads

206

Readme

React Accessibility Widget

A customizable embedded widget that allows users to adjust the visual appearance of React applications to meet their accessibility needs.

Image of a11y-panel

Features

  • Font Styling: Adjust font size, color, family, and case.
  • Layout Adjustments: Modify line height, letter spacing, and text alignment.
  • Visual Assistance: Highlight links and titles, or hide non-essential images.
  • Contrast Modes: Toggle high contrast, low contrast, or monochrome themes.

Installation

npm install a11y-panel styled-components
yarn add a11y-panel styled-components

Note: styled-components is required as a peer dependency.

Usage

1. Basic Integration

Mount the <AccessibilityWidget /> near the root of your application. The widget uses absolute positioning to float above your interface.

import React from "react";
import { AccessibilityWidget } from "a11y-panel";

export default function App() {
  return (
    <div>
      <AccessibilityWidget />
      <main>
        <h1>Welcome</h1>
        <p>Your accessible application content goes here.</p>
      </main>
    </div>
  );
}

2. Custom Theming

Override the widget's internal colors using the theme prop to match your brand identity.

import React from "react";
import { AccessibilityWidget, WidgetTheme } from "a11y-panel";

const customTheme: WidgetTheme = {
  primary: "#005f73",
  background: "#ffffff",
  widgetBackground: "#1a1a1a",
  text: "#eaeaea",
  iconColor: "#005f73",
};

export default function App() {
  return (
    <>
      <AccessibilityWidget theme={customTheme} />
      <main>...</main>
    </>
  );
}

3. Positioning and Custom Icons

Control where the widget spawns on the screen or replace the default trigger icon.

import React from "react";
import { AccessibilityWidget } from "a11y-panel";

const EyeIcon = () => (
  <svg viewBox="0 0 24 24" fill="currentColor" width="24" height="24">
    <path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z" />
  </svg>
);

export default function App() {
  return (
    <>
      <AccessibilityWidget
        initialPosition={{ x: 20, y: 80 }}
        customIcon={<EyeIcon />}
      />
      <main>...</main>
    </>
  );
}

Props Reference

| Prop | Type | Description | | ----------------- | -------------------------- | ----------------------------------------------------------------- | | theme | WidgetTheme | A partial theme object to override the widget's default colors. | | initialPosition | { x: number; y: number } | The starting coordinates for the draggable widget trigger. | | customIcon | React.ReactNode | A custom React element to replace the default accessibility icon. |

Use Cases

  • Healthcare & Government Portals: Ensure strict compliance with WCAG guidelines by giving users direct control over text sizes and contrast parameters.
  • E-Learning Platforms: Allow neurodivergent students or those with visual impairments to modify line height and typography for better readability.
  • E-Commerce Web Apps: Assist users who are color blind by providing a monochrome mode or by highlighting essential actionable links across the site.