百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

lighthouse-parade

> 编程语言
开源

Node.js 是一个命令行工具,可爬取域并收集每个页面的灯塔性能数据。

373 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Node.js 是一个命令行工具,可爬取域并收集每个页面的灯塔性能数据。

Lighthouse Parade

A Node.js command line tool that crawls a domain and compiles a report with lighthouse performance data for every page.

Why?

There are great tools for doing performance analysis on a single web page. We use Lighthouse and WebPageTest for this all the time. But what if you want to evaluate the performance characteristics of an entire site? It is tedious to manually run a report for each page and then the output is a jumble of individual reports that have to be analyzed one-by-one. This tool was created to solve this problem.

How?

With a single command, the tool will crawl an entire site, run a Lighthouse report for each page, and then output a spreadsheet with the aggregated data. There is an example of the generated spreadsheet in the examples/ directory of this project. Each row in the spreadsheet is a page on the site, and each individual performance metric is a column. This makes it very easy to perform high-level analysis because you can sort the rows by whichever metric you are analyzing. This immediately shows the best and worst performing pages. In the following example, the rows are sorted by first contentful paint.

It is also easy to graph data in this format. The following example is a histogram showing a problematic distribution of largest contentful paint scores.

Usage

(Check to make sure you are using Node 18+)

$ npx lighthouse-parade  [dataDirectory] [options]

Ex: npx lighthouse-parade http://www.dfwfreeways.com/

Runs a crawler on the provided URL. Discovers all URLs and runs a lighthouse report on each HTML page, then writes them to a CSV file located in ./lighthouse-parade-data//urls.csv. The individual reports are written to ./lighthouse-parade-data//reports/. At the end, each report file is bundled into one aggregated report CSV with each row representing a URL and each column is a metric.

Options

…

Analysis spreadsheet template

After running a scan, you can import your aggregated report data into this Google Sheet template, which includes the following features:

  • Basic formatting
  • The three web core vitals columns are highlighted
  • Histograms for each web core vital metrics are automatically generated
  • Averages and median scores for the web core vitals are also calculated next to each histogram

Instructions

To use this template, it is important to follow these instructions very carefully when importing:

  1. Visit the template and choose File > Make a copy. You will now have your own writable copy.
  2. Click cell A:1 in the top left corner.
  3. File > Import...
  4. In the following dialogue, upload the aggregatedMobileReport.csv file that was generated by the script.
  5. Under Import Location, select Replace data at selected cell.
  6. Click Import Data

Mac M1 Note

Users running virtualized x64 versions of Node on Macs with M1 chips may see anomalous results. For best results on an M1 chip, ensure you are running the native arm version of Node 16+.

When you run the command node -p process.arch you should see arm64. If you see x86, try uninstalling and reinstalling Node. More details here.

Shout-outs

  • auto-lighthouse is a similar project that provided early inspiration for this one.
  • Lighthouse is handling emulation and performance metrics.
  • Node CSV is the library handling CSV logic.
  • simplecrawler is the library handling URL discovery.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言