What is Unlighthouse?
Unlighthouse is a powerful tool designed to optimize website performance by leveraging Google Lighthouse audits.
This utility provides users with a command-line interface to perform Lighthouse audits on local development environments.
Unlighthouse is Open source, fully configurable tool that scans your entire site using Google Lighthouse, with a modern UI, minimal config and smart sampling.
Since Unlighthouse builds on top of Lighthouse, It provide a number of advantages over Lighthouse, including:
- Speed: Unlighthouse is significantly faster than Lighthouse, especially for auditing large websites.
- Scalability: Unlighthouse can audit websites of any size, while Lighthouse can struggle to audit large websites without crashing.
- Ease of use: Unlighthouse has a user-friendly interface that makes it easy to configure and run audits.
- Extensibility: Unlighthouse is open source and extensible, so you can customize it to meet your specific needs.
Additionally, Unlighthouse allows you to audit multiple routes at a time, which is not possible with Lighthouse.
How to use Unlighthouse CLI:
-
Install Unlighthouse globally:
- npm install -g unlighthouse
-
Run an audit on your website using the following command:
- npx unlighthouse --site <your-site> OR pnpm dlx unlighthouse --site <your-site>
-
Additionally you can also use following Options:
- To audit all of the routes on your website, you can use --sitemaps
- To audit a specific subset of routes on your website, you can use the --include and --exclude options.
- To audit your website with different settings, you can use the --config option and pass any file as parameter.
Once done, you will unlighthouse audit of <your-site> and it will display the output on localhost:5678
Unlighthouse is a powerful tool that can help you improve the quality of your website. It is faster, more scalable, and easier to use than Lighthouse. The Unlighthouse CLI is also a great option for automating performance audits and integrating Unlighthouse into your CI/CD pipeline.
Website: https://unlighthouse.dev