Supported on dotnet standard2(Windows/Linux/OSX), provide similar interface to Google offical API.Quality and window control is supported.
The library use the native runtime and its performance should be better than System.IO.Compress.BrotliStream.
To support dynamic compress in web applications,add the code like this in the Global.asax.cs:
       protected void Application_PostAcquireRequestState(object sender, EventArgs e)
                          var app = Context.ApplicationInstance;
               String acceptEncodings = app.Request.Headers.Get("Accept-Encoding");

               if (!String.IsNullOrEmpty(acceptEncodings))
                   System.IO.Stream baseStream = app.Response.Filter;
                   acceptEncodings = acceptEncodings.ToLower();

                   if (acceptEncodings.Contains("br") || acceptEncodings.Contains("brotli"))
                       app.Response.Filter = new BrotliStream(baseStream, System.IO.Compression.CompressionMode.Compress);
                       app.Response.AppendHeader("Content-Encoding", "br");
                   //other encodings

Install-Package Brotli.NET -Version
dotnet add package Brotli.NET --version
<PackageReference Include="Brotli.NET" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Brotli.NET --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Now supporting .NET 3.5 and above again.

NuGet packages (11)

Showing the top 5 NuGet packages that depend on Brotli.NET:

Package Downloads
Applitools Eyes adds automated visual validation to your automated tests. With Applitools Eyes, you can automatically validate the correctness of your application's UI layout, content and appearance. To learn more, visit .
This package contains a range of utility classes to aid web application development using the legacy ASP.NET stack.
An Asynchronous Redis Client for .NET
Brotli offers up to 30% more compression than gzip. This is a simple bundle with Brotli compression with fallback to gzip and deflate
GlyphLoader is a .NET Standerd library for TrueType, OpenType font. It is written in C#, designed to be small, efficient and portable while capable of producing high-quality glyph images. In WebAssembly environment, it can be used for application development using glyph outline information.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Brotli.NET:

Repository Stars
A simple command line tool to invoke the Azure Resource Manager API

Version History

Version Downloads Last updated 166,458 3/4/2019
2.0.4 378 3/3/2019 236 3/3/2019 255 3/2/2019
2.0.3 254 3/2/2019
2.0.2 682 2/22/2019
2.0.0 362 2/21/2019
1.0.19 184,420 7/16/2017
1.0.17 2,819 3/23/2017
1.0.12 570 3/15/2017
1.0.11 1,608 12/30/2016
1.0.10 555 12/30/2016
1.0.9 569 12/30/2016
1.0.8 1,234 10/25/2016
1.0.7 732 10/25/2016
1.0.6 750 10/25/2016
1.0.5 758 10/24/2016
1.0.4 988 10/24/2016
1.0.3 853 10/24/2016