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

@raabbit/fix508

v0.1.0

Published

fix508 — WCAG 2.1 AA / Section 508 accessibility fixer for React components. CLI powered by Claude.

Readme

fixa11y

WCAG 2.1 AA / Section 508 accessibility fixer for React components, powered by Claude.

Scan or fix a single .tsx / .jsx / .ts / .js component and get back concrete issues (or a corrected file) — with inline WHY comments tying each change to a WCAG criterion.


Install

npm install -g @raabbit/fix508

Or run without installing:

npx @raabbit/fix508 scan Button.tsx

Requires Node.js 18.17+.


API key

fixa11y uses your own Anthropic API key. Set it once:

export ANTHROPIC_API_KEY=sk-ant-...

Precedence (highest wins):

  1. --api-key <key> flag
  2. FIX508_API_KEY env var
  3. ANTHROPIC_API_KEY env var

Get a key at https://console.anthropic.com/.


Commands

fixa11y scan <target>

Report accessibility issues in a file or directory.

# Scan a single file
fixa11y scan components/Button.tsx

# Scan a directory (default cap: 10 files)
fixa11y scan ./components

# Scan with a higher file limit
fixa11y scan ./src --max-files 50

fixa11y audit <target> [options]

Run an aggregate accessibility audit on a file or directory with optional JSON report.

# Audit a single file
fixa11y audit components/Button.tsx

# Audit a directory
fixa11y audit ./components

# Audit with a JSON report
fixa11y audit ./components --report report.json

# Audit with a higher file limit and report
fixa11y audit ./src --max-files 50 --report audit.json

fixa11y fix <file> [options]

Apply accessibility fixes to a single React component file.

| Option | Description | | ----------------- | ------------------------------------------------------------- | | -d, --diff | Show a unified diff instead of the full fixed file. | | -w, --write | Overwrite the file in place (prompts unless --yes). | | -y, --yes | Skip the overwrite confirmation prompt. | | --no-comments | Do not add inline WHY comments to fixes. | | --api-key <key> | Anthropic API key (overrides env vars). | | --model <id> | Anthropic model ID (advanced; defaults to claude-sonnet-4-6). |

# Preview fixes as a diff
fixa11y fix components/Button.tsx --diff

# Apply fixes with confirmation
fixa11y fix components/Button.tsx --write

# Apply fixes without prompting (CI-friendly)
fixa11y fix components/Button.tsx --write --yes

Common workflows

Scan a component and see issues:

fixa11y scan components/Button.tsx

Preview how to fix a component:

fixa11y fix components/Button.tsx --diff

Apply a fix and update the file:

fixa11y fix components/Button.tsx --write

Save the fixed file to a new location:

fixa11y fix components/Button.tsx > Button.fixed.tsx

Create and apply a patch:

fixa11y fix components/Button.tsx --diff > button.patch
git apply button.patch

Audit a directory of components:

fixa11y audit ./components

Save an audit report as JSON:

fixa11y audit ./components --report report.json

Scan multiple components for a summary:

fixa11y scan ./src/components --max-files 30

Exit codes

| Code | Meaning | | ---: | ------------------------------------------ | | 0 | Clean — no issues, or operation succeeded. | | 1 | Scan found issues, or fix applied. | | 2 | Out of scope (not a React component). | | 3 | Validation error (bad file type, empty). | | 4 | API / network failure. | | 5 | Config error (missing API key). |

Human output goes to stderr; fixed code and diffs go to stdout, so fixa11y fix file.tsx > out.tsx works cleanly.


Scope

fixa11y is a strict accessibility specialist — it is not a general coding assistant. It only addresses WCAG 2.1 AA / Section 508 issues: alt text, keyboard operability, focus indicators, ARIA, semantic HTML, labels, landmarks, live regions, etc. Anything else (refactors, perf, types, styling) is refused as out of scope.


License

MIT