Skip to content

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

Installation

Run without installation:

bash
npx @usharma124/ui-qa https://example.com

Global Installation

Install for repeated use:

bash
npm install -g @usharma124/ui-qa
bash
bun add -g @usharma124/ui-qa
bash
pnpm add -g @usharma124/ui-qa

Then run from any directory:

bash
ui-qa https://example.com

Project Dependency

Add to your project for CI/CD integration:

bash
npm install --save-dev @usharma124/ui-qa
bash
bun add -D @usharma124/ui-qa

Add 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 chromium

Running Your First Test

  1. Set your API key:
bash
export OPENROUTER_API_KEY=sk-or-v1-your-key-here
  1. Run a test:
bash
npx @usharma124/ui-qa https://example.com
  1. View results in .ui-qa-runs/:
FileContents
report.mdHuman-readable report
report.jsonStructured data
screenshots/Visual evidence

Next Steps

Released under the MIT License.