Accessibility · Python · FastAPI · axe-core

AccessBatch — batch accessibility scans with evidence bundles

Small-team website accessibility batch scanning: same-origin crawl, Playwright Chromium rendering, axe-core WCAG A/AA checks and full-page screenshots.

View on GitHub Download ZIP

Overview

AccessBatch is a small-team website accessibility batch scanner. It crawls same-origin pages (1–100 page limit), renders each page in Chromium with Playwright, runs axe-core WCAG A/AA tagged automated checks, captures full-page screenshots, and produces a developer evidence bundle — JSON findings, a standalone HTML report and a ZIP issue bundle.

Important: automated checks detect only some accessibility problems. AccessBatch reports findings as automated evidence, not a certificate of WCAG conformance — pair it with manual review.

Use cases

  • Pre-release accessibility sweeps across a marketing or docs site.
  • Small dev teams needing repeatable, screenshot-backed evidence per finding.
  • Agencies delivering per-client ZIP evidence bundles without manual clicking.
  • QA tracking scan history over time via the built-in SQLite store.
  • Managers watching automated-evidence counts in CI-friendly reports.
  • Internal tools audits where a same-origin crawl beats one-off manual passes.
  • Baseline evidence before engaging a formal WCAG audit.

How to work with it — a day in the life

You start Uvicorn, open the FastAPI web UI and paste the staging URL. AccessBatch crawls same-origin pages, renders each in Chromium and runs axe-core. Twenty minutes later you review the HTML report: contrast violations on the pricing page, missing form labels in checkout, each with a full-page PNG. You export the ZIP bundle, attach it to tickets, and re-scan next sprint to confirm fixes — scan history in SQLite shows the trend.

Key features

  • Same-origin crawl with a 1–100 page limit.
  • Playwright Chromium rendering for accurate DOM inspection.
  • axe-core automated WCAG A/AA tagged checks.
  • Full-page PNG evidence screenshots.
  • JSON findings, standalone HTML report and ZIP issue bundle.
  • FastAPI web UI and scan-status API.
  • SQLite scan history.

Install

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
playwright install chromium
uvicorn app.main:app --reload

Windows PowerShell (activation optional):

py -m venv C:\venvs\accessbatch
C:\venvs\accessbatch\Scripts\python.exe -m pip install -r requirements.txt
C:\venvs\accessbatch\Scripts\python.exe -m playwright install chromium
C:\venvs\accessbatch\Scripts\python.exe -m uvicorn app.main:app --reload

Open the local Uvicorn address shown in the console.

Quickstart — 30 seconds to your first report

# 1. Install and launch (see Install above)
uvicorn app.main:app --reload
# 2. Open the local address, enter your site URL, pick a page limit (1–100)
# 3. Start the scan, poll the scan-status API or watch the UI
# 4. Download the HTML report, JSON findings or the ZIP issue bundle

Scan configuration

Scans are configured per run from the web UI / scan-status API: target origin (same-origin crawl only), page limit (1–100), and evidence outputs (screenshots, JSON, HTML, ZIP). WCAG coverage is fixed to axe-core A/AA tags. There is no authenticated-scan support yet — see the roadmap. Planned increments: sitemap.xml discovery with include/exclude rules, baseline/suppression files, duplicate-finding clustering and issue fingerprints, per-rule evidence pages with cropped screenshots, CI exit thresholds by impact, authenticated scans, scheduled hosted scans with regression history, and SARIF/GitHub Issues/Jira export.

Troubleshooting

  • Chromium fails to launch: re-run playwright install chromium inside the same venv.
  • Scan finds 0 pages: confirm the URL is reachable and links stay on the same origin; the crawler will not cross origins.
  • Too many pages: lower the page limit (max 100) or scope the entry URL to a subsection.
  • Missing screenshots: check disk space and that the page finished rendering before the axe run timed out.
  • Port already in use: stop the old Uvicorn process or launch with --port 8001.
  • Findings surprise you: remember results are automated evidence, not full WCAG conformance — verify with manual testing.

Release & License

MVP per the README; suggested license posture is Apache-2.0 for an open core, or keep private until the hosted model is decided. Suggested topics: accessibility, wcag, axe-core, playwright, fastapi, a11y, website-audit, python.

GitHub repository · Knowledge Base · All repositories

← Back to RepositoriesMore Help →