Live preview
1. Install
npm install -g @raabbit/fix508Installs the fixa11y command globally. Requires Node 18+.
2. Usage
Set your Anthropic API key, then run any of the three commands:
export ANTHROPIC_API_KEY=sk-ant-...scan <target>Report WCAG 2.1 AA / Section 508 issues. Read-only.
fix <file>Rewrite a file with accessible code. Use --diff or --write.
audit <target>Aggregate audit with a JSON report for CI / compliance.
Safe by default. Nothing is modified unless you pass --write.
3. Examples
# Find issues in one file
fixa11y scan Button.tsx
# Preview a rewrite as a diff
fixa11y fix Button.tsx --diff
# Apply fixes in place (CI-friendly with --yes)
fixa11y fix Button.tsx --write --yes
# Generate a JSON compliance report
fixa11y audit ./components --report report.jsonCloud mode — no Anthropic key needed (uses fixa11y credits):
fixa11y scan Button.tsx --cloud --token fixa_xxxGenerate a token at /account, or set FIX508_TOKEN in your shell.