kumphouse-core
v0.17.11
Published
Scan your entire website with Google Lighthouse.
Maintainers
Readme
kumphouse-core
The core engine of Kumphouse that handles website scanning, Lighthouse execution, and report generation.
Usage
Basic Usage
import { createKumphouse } from 'kumphouse-core'
const kumphouse = await createKumphouse({
site: 'https://example.com',
debug: true,
scanner: {
device: 'desktop',
}
})
await kumphouse.start()With Custom Provider
import { createKumphouse } from 'kumphouse-core'
const kumphouse = await createKumphouse(
{ /* user config */ },
{
name: 'custom',
routeDefinitions: () => generateRouteDefinitions(),
}
)Hooks
import { useKumphouse } from 'kumphouse-core'
const { hooks } = useKumphouse()
hooks.hook('task-complete', (path, response) => {
console.log('Task completed for:', path)
})API
createKumphouse(userConfig, provider?)- Initialize KumphouseuseKumphouse()- Access the global Kumphouse contextgenerateClient(options)- Generate static client files
Documentation
License
MIT License © 2021-PRESENT Harlan Wilton
