.NET Standard 2.0
Install-Package -Version 1.0.6
dotnet add package --version 1.0.6
<PackageReference Include="" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add --version 1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget:, 1.0.6"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install as a Cake Addin
#addin nuget:?

// Install as a Cake Tool
#tool nuget:?
The NuGet Team does not provide support for this client. Please contact its maintainers for support. Nuget

This is a .net (c#) library for Google Lighthouse tool.

Lighthouse.NET analyzes web apps and web pages, collecting modern performance metrics and insights on developer best practices from your code.

Auditing, performance metrics, and best practices for Progressive Web Apps in .NET tests.

How to install

You need to install lighthouse as Node module on machine (more info).

  1. Download Google Chrome for Desktop.

  2. Install the current Long-Term Support version of Node.

  3. Install Lighthouse. The -g flag installs it as a global module. npm install -g lighthouse

  4. Install into your project via NuGet

PM> Install-Package

Basic example

public class LighthouseTest
    public async Task ExampleComAudit()
        var lh = new Lighthouse();
        var res = await lh.Run("");
        Assert.IsTrue(res.Performance > 0.5m);

        Assert.IsTrue(res.Accessibility > 0.5m);

        Assert.IsTrue(res.BestPractices > 0.5m);

        Assert.IsTrue(res.Pwa > 0.5m);

        Assert.IsTrue(res.Seo > 0.5m);

Known Issues

  • If you installed lighthouse package with version 9.0.0 and higher it's required to use Node.js version 14 (because Optional Chaining Operator is used in lighthouse package). To install lighthouse package, that supports Node.js v12 please use npm i lighthouse@8.6.0 -g
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.6 2,719 12/1/2021
1.0.5 8,241 4/23/2021
1.0.4 1,346 1/22/2020
1.0.3 336 12/17/2019
1.0.2 1,113 4/16/2019
1.0.1 373 4/15/2019
1.0.0 377 4/15/2019