LighthousePlaywright.Net 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package LighthousePlaywright.Net --version 1.0.0
                    
NuGet\Install-Package LighthousePlaywright.Net -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LighthousePlaywright.Net" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LighthousePlaywright.Net" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="LighthousePlaywright.Net" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LighthousePlaywright.Net --version 1.0.0
                    
#r "nuget: LighthousePlaywright.Net, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LighthousePlaywright.Net@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LighthousePlaywright.Net&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=LighthousePlaywright.Net&version=1.0.0
                    
Install as a Cake Tool

LighthousePlaywright.Net

logo

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

Lighthouse is a tool developed by Google that analyzes web apps and web pages, collecting modern performance metrics and insights on developer best practices.

Playwright is a Node library to automate Chromium, Firefox and WebKit with a single API. Playwright is built to enable cross-browser web automation that is ever-green, capable, reliable and fast.

Project based on https://github.com/dima-horror/lighthouse.net but instead of the need for an installed version of chrome it uses playwright.

How to install

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

  1. Install the current version of Node.
  2. Install Lighthouse and playwright-lighthouse. The -g flag installs it as a global modules.
> npm install -g lighthouse playwright-lighthouse
  1. Install lighthouse.net into your project via NuGet
PM> Install-Package LighthousePlaywright.Net

Basic example

public class LighthouseTest
{
    [Fact]
    public async Task ExampleComAudit()
    {
        var lh = new Lighthouse();
        var res = await lh.Run("http://example.com");
		
        res.Should().NotBeNull();
        res.Performance.Should().NotBeNull();
        (res.Performance > 0.5m).Should().BeTrue();

        res.Accessibility.Should().NotBeNull();
        (res.Accessibility > 0.5m).Should().BeTrue();

        res.BestPractices.Should().NotBeNull();
        (res.BestPractices > 0.5m).Should().BeTrue();

        res.Seo.Should().NotBeNull();
        (res.Seo > 0.2m).Should().BeTrue();
    }
}
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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.1 0 8/2/2025
1.0.0 483 7/23/2025