kumphouse
v0.17.11
Published
Kumphouse — Kumpan's playful, in-house Lighthouse sweeper. Scan your entire site for performance, accessibility and SEO problems worth solving.
Maintainers
Readme
kumphouse
The main package for Kumphouse - scan your entire website with Google Lighthouse. This is a convenience package that includes the core functionality and CLI tools.
Quick Start
# Scan your website instantly
npx kumphouse --site https://example.com
# CI mode with performance budgets
npx kumphouse-ci --site https://example.com --budget 80What's Included
This package includes:
kumphouse-core- Core scanning enginekumphouse-cli- Command-line interfacekumphouse-client- Web interface for results- Two binaries:
kumphouseandkumphouse-ci
Installation
# Global installation
npm install -g kumphouse
# Project dependency
npm install kumphouse --save-devUsage
Interactive CLI
# Basic scan
kumphouse --site https://example.com
# With debugging and custom device
kumphouse --site https://example.com --debug --desktop
# Custom configuration
kumphouse --config-file kumphouse.config.tsProgrammatic Usage
import { createKumphouse } from 'kumphouse'
const kumphouse = await createKumphouse({
site: 'https://example.com',
debug: true
})
await kumphouse.start()CI Integration
# Enforce performance budgets in CI
kumphouse-ci --site https://example.com --budget 85Configuration
Create kumphouse.config.ts:
import { defineKumphouseConfig } from 'kumphouse/config'
export default defineKumphouseConfig({
site: 'https://example.com',
scanner: {
device: 'desktop',
throttle: false,
},
lighthouseOptions: {
onlyCategories: ['performance', 'accessibility'],
}
})Documentation
License
MIT License © 2021-PRESENT Harlan Wilton
