New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lighthouse-viewer

Package Overview
Dependencies
Maintainers
1
Versions
385
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lighthouse-viewer

Package with the lighthouse-viewer files from the official repositories of Lighthouse

latest
Source
npmnpm
Version
0.2.143
Version published
Weekly downloads
1.5K
-24.09%
Maintainers
1
Weekly downloads
 
Created
Source

Lighthouse Viewer

This is the code extracted from the lighthouse original repository and packaged as an ES Modules for convenience and tree shaking.

The code for this repository is automatically generated every time is built, copying the files, adding the imports and exports for every file.

This is only for convenience, and it would be cool if some day the people from Lighthouse could export this code as well.

Getting started

  • Install it using npm i lighthouse-viewer
  • In your code, import the following modules:
import { renderReport } from 'lighthouse-viewer';
import report from './static/report.json';

const app = document.querySelector<HTMLDivElement>('#lighthouse-viewer-element')!;

const reportHtml = renderReport(report as any, {});
app.appendChild(reportHtml);
  • And in your HTML
<div>
  <main class="lighthouse-viewer"></main>
</div>

All the credits to the Lightouse Authors

If there is any issue with the license or the copyrights, please let me know. There is no other intentions behind this besides making it easy to find.

Made with ❤️ by Danilo Velasquez

Keywords

lighthouse

FAQs

Package last updated on 07 Dec 2025

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