Fast UI/UX audit CLI for live web apps. Produces a JSON report plus evidence screenshots, and can emit an HTML summary.
- Node.js 20+
- One-time browser install:
npx playwright installGlobal install (recommended for frequent use):
npm i -g uxray-ui-auditnpm installOr run without installing (after cloning):
npx uxray-ui-audit --url https://example.comnpm run review -- --url https://your-app.com \
--mobile \
--viewport 1366x768 \
--steps 4 \
--wait 2000 \
--wait-until load \
--ready-selector '#app' \
--target-policy wcag22-aa \
--axe-tags wcag21aa,wcag2aa \
--html \
--max-a11y 5 \
--max-small-targets 10 \
--max-overflow 2 \
--max-console 3 \
--max-http-errors 0 \
--trace \
--out ./reports/uxray-report.json \
--shots ./reports/shots--urltarget page (required)--mobileadd iPhone 12 pass--viewport 1440x900--stepsviewport screenshots while scrolling--waitextra settle time (ms)--wait-untilload|domcontentloaded|networkidle|commit--ready-selectorwait for selector after navigation--target-policywcag22-aa | wcag21-aaa | lighthouse--axe-tagscomma tags for axe rules--htmlemit HTML report (optional path)--tracecapture Playwright trace- Budget gates:
--max-a11y,--max-small-targets,--max-overflow,--max-console,--max-http-errors
- JSON report:
reports/ui-report-<timestamp>.json - Screenshots:
reports/shots-<timestamp>/desktop|mobile - Optional HTML:
reports/ui-report-<timestamp>.html - Optional trace:
reports/shots-<timestamp>/desktop|mobile-trace.zip - Crops:
reports/shots-<timestamp>/desktop|mobile/crops/
- GitHub Actions runs
npm run smokeon PRs and publishes artifacts. - Tag
v*.*.*to publish to npm (requiresNPM_TOKEN).