██████╗ ██╗ ██╗ ██████╗ ██╗ ██╗████████╗
██╔══██╗██║ ██║██╔════╝ ██║ ██║╚══██╔══╝
██████╔╝██║ ██║██║ ███╗███████║ ██║
██╔═══╝ ██║ ██║██║ ██║██╔══██║ ██║
██║ ███████╗██║╚██████╔╝██║ ██║ ██║
╚═╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝
A beautifully formatted Lighthouse CLI tool with stunning box-style terminal output. Make Google Lighthouse audits look amazing in your terminal.
- ✨ Beautiful terminal output - Box-style borders with colored scores
- 🎨 Syntax highlighting - Color-coded pass/warn/fail status
- 📊 Core Web Vitals - LCP, CLS, FCP, INP at a glance
- 📜 Audit history - Save and replay past audits
- 🚀 Zero config - Works out of the box with sensible defaults
# Install globally
npm install -g @12britz/plight
# Or use without installing
npx @12britz/plight <url>Requirements: Node.js 22+, Chrome or Chromium installed.
# Basic audit
plight https://example.com
# Run with desktop emulation
plight https://example.com --emulated-form-factor desktop
# Output JSON report
plight --json https://example.com| Flag | Description | Example |
|---|---|---|
--only-categories |
Run specific categories | plight --only-categories performance,seo <url> |
--emulated-form-factor |
Device emulation | plight --emulated-form-factor desktop <url> |
--throttling |
Disable throttling | plight --no-throttling <url> |
-q, --quiet |
Suppress progress | plight -q <url> |
| Flag | Description | Example |
|---|---|---|
-j, --json |
Output raw JSON | plight -j <url> |
-o, --output |
Save to file | plight -o report.json <url> |
| Flag | Description | Example |
|---|---|---|
-H, --history |
View all history | plight --history |
-H, --history # |
See entry #N | plight --history 1 |
-r, --replay |
Replay last | plight --replay |
-r, --replay # |
Replay #N | plight --replay 2 |
plight https://makro.co.zaplight https://example.com --emulated-form-factor desktopplight --only-categories performance https://example.complight -j https://example.com > report.json# List all audits
plight --history
# Replay last audit
plight --replay┌──────────────────────────────────────────────────────────────┐
│ ██████╗ ██╗ ██╗ ██████╗ ██╗ ██╗████████╗ │
│ ██╔══██╗██║ ██║██╔════╝ ██║ ██║╚══██╔══╝ │
│ ██████╔╝██║ ██║██║ ███╗███████║ ██║ │
│ ██╔═══╝ ██║ ██║██║ ██║██╔══██║ ██║ │
│ ██║ ███████╗██║╚██████╔╝██║ ██║ ██║ │
│ ╚═╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ │
│ │
│ plight pretty Lighthouse CLI │
└──────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────┐
│ Category Scores │
├──────────────────┬────────┬─────────┤
│ Category │ Score │ Status │
├──────────────────┼────────┼─────────┤
│ Performance │ 95 │ PASS │
│ Accessibility │ 100 │ PASS │
│ Best Practices │ 92 │ PASS │
│ SEO │ 100 │ PASS │
└──────────────────────────────────────┘
MIT