Getting Started
UI QA is a command-line tool for automated UI/UX testing. It uses browser automation and LLM analysis to identify issues across your website.
Prerequisites
- Node.js 18 or later (or Bun)
- OpenRouter API key
Installation
Using npx (Recommended)
Run without installation:
bash
npx @usharma124/ui-qa https://example.comGlobal Installation
Install for repeated use:
bash
npm install -g @usharma124/ui-qabash
bun add -g @usharma124/ui-qabash
pnpm add -g @usharma124/ui-qaThen run from any directory:
bash
ui-qa https://example.comProject Dependency
Add to your project for CI/CD integration:
bash
npm install --save-dev @usharma124/ui-qabash
bun add -D @usharma124/ui-qaAdd a script to package.json:
json
{
"scripts": {
"test:ui": "ui-qa https://staging.example.com"
}
}Browser Setup
Install Chromium on first run:
bash
npx playwright install chromiumRunning Your First Test
- Set your API key:
bash
export OPENROUTER_API_KEY=sk-or-v1-your-key-here- Run a test:
bash
npx @usharma124/ui-qa https://example.com- View results in
.ui-qa-runs/:
| File | Contents |
|---|---|
report.md | Human-readable report |
report.json | Structured data |
screenshots/ | Visual evidence |