Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

unlighthouse

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unlighthouse

Delightfully scan your entire website with Google Lighthouse. Navigate your performance, accessibility and SEO.

latest
Source
npmnpm
Version
0.17.9
Version published
Weekly downloads
17K
3.02%
Maintainers
1
Weekly downloads
 
Created
Source

unlighthouse

The main package for Unlighthouse - 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 unlighthouse --site https://example.com

# CI mode with performance budgets
npx unlighthouse-ci --site https://example.com --budget 80

What's Included

This package includes:

  • @unlighthouse/core - Core scanning engine
  • @unlighthouse/cli - Command-line interface
  • @unlighthouse/client - Web interface for results
  • Two binaries: unlighthouse and unlighthouse-ci

Installation

# Global installation
npm install -g unlighthouse

# Project dependency
npm install unlighthouse --save-dev

Usage

Interactive CLI

# Basic scan
unlighthouse --site https://example.com

# With debugging and custom device
unlighthouse --site https://example.com --debug --desktop

# Custom configuration
unlighthouse --config-file unlighthouse.config.ts

Programmatic Usage

import { createUnlighthouse } from 'unlighthouse'

const unlighthouse = await createUnlighthouse({
  site: 'https://example.com',
  debug: true
})

await unlighthouse.start()

CI Integration

# Enforce performance budgets in CI
unlighthouse-ci --site https://example.com --budget 85

Configuration

Create unlighthouse.config.ts:

import { defineUnlighthouseConfig } from 'unlighthouse/config'

export default defineUnlighthouseConfig({
  site: 'https://example.com',
  scanner: {
    device: 'desktop',
    throttle: false,
  },
  lighthouseOptions: {
    onlyCategories: ['performance', 'accessibility'],
  }
})

Documentation

License

MIT License © 2021-PRESENT Harlan Wilton

Keywords

lighthouse

FAQs

Package last updated on 15 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts