Skip to main content
← Back to home

Documentation

Everything you need to integrate Audiq into your workflow — CLI, MCP server, API, and Pulse SDK.

Quick Start

# Scan any website
npx audiq scan https://your-site.com

# Add to CI pipeline (fails if scores below budget)
npx audiq ci https://your-site.com --budget perf=80,seo=90,a11y=95

# Use as MCP server in Claude Code
npx audiq mcp

CLI Reference

$ npx audiq scan <url>

Scan a single page — returns scores (0-100) and prioritized issues

$ npx audiq crawl <url>

Crawl and audit an entire site (up to 50 pages)

$ npx audiq plan <url>

Scan + generate a prioritized fix plan with code examples

$ npx audiq ci <url>

CI budget check — exits non-zero if scores below thresholds

$ npx audiq review <url>

AI visual review using Claude Vision (needs ANTHROPIC_API_KEY)

$ npx audiq mcp

Start MCP server for Claude Code / Cursor / Windsurf

MCP Server Tools (18)

Start with npx audiq mcp or add to your MCP settings:

{
  "mcpServers": {
    "audiq": {
      "command": "npx",
      "args": ["audiq"]
    }
  }
}
ToolParametersDescription
scan_pageurl, profile?, loginUrl?, username?, password?Deep audit — perf, SEO, a11y, security, design. Quick (~15s) or full (~60s).
screenshot_pageurl, viewport?, fullPage?, loginUrl?Take screenshot and return image for AI to analyze visually.
analyze_visualurl, viewport?AI design analysis — server-side (with API key) or returns image.
generate_fix_planformat?, minSeverity?Convert scan results into prioritized fix tasks with code examples.
start_scanurl, maxPages?Start async multi-page site scan.
scan_statusscanIdCheck async scan job progress.
scan_resultsscanIdGet completed scan results.
get_console_errorsurl, duration?Capture console errors, warnings, and exceptions.
get_network_issuesurlDetect failed requests, timeouts, and missing resources.
run_lighthouseurl, categories?, device?Run Lighthouse audit (performance, a11y, SEO, best practices).
check_accessibilityurlRun axe-core WCAG 2.1 AA accessibility audit.
login_and_scanloginUrl, url, username, passwordAuthenticate then scan protected pages.
discover_siteurl, maxPages?Map entire site structure — pages, forms, interactive elements.
qa_auditurlFull QA pass with screenshots across all pages.
recommend_designurlAI design recommendations from screenshot analysis.
get_reportformat?Retrieve report in JSON or Markdown.
get_dashboard_reportshareUrlFetch results from dashboard via share link.
cancel_scanscanIdCancel a running async scan.

API Endpoints

Authenticate with a Supabase access token via Authorization: Bearer <token> header.

POST
/api/scan

Trigger a scan. Body: { url, siteId? }

GET
/api/scan/:jobId

Get scan job status and progress

GET
/api/reports?url=...

Get latest scan results for a URL. Auth: Bearer token

GET
/api/report/:token

Get public report by share token (no auth)

GET
/api/badge/:token

Get SVG score badge for embedding

Pulse SDK

Lightweight (3.7KB) real user monitoring. Tracks Core Web Vitals, JS errors, rage/dead clicks, and generates click heatmaps.

<!-- Add to your site's <head> -->
<script
  src="https://pulse.audiq.app/sdk.js"
  data-site-id="YOUR_SITE_ID"
  defer
></script>

Tracks: LCP, CLS, INP, FCP, TTFB, JS errors, rage clicks, dead clicks

Heatmap: Click positions rendered as canvas overlay on site screenshot

Privacy: No cookies, no PII collected, GDPR-friendly

CI Integration

Add quality gates to your pipeline. The CI command exits with code 1 if any score falls below the budget.

# GitHub Actions example
- name: Audiq Quality Check
  run: npx audiq ci $DEPLOY_URL --budget perf=80,seo=90,a11y=95,bp=90

# With custom thresholds per metric
- name: Audiq CI
  run: npx audiq ci $DEPLOY_URL --budget perf=70 --format json