Skip to content

Jint.Browser

Jint.Browser is a headless browser for .NET built from AngleSharp and Jint. AngleSharp supplies the HTML parser, DOM, and CSSOM; Jint runs the document's JavaScript. The package adds navigation, an event loop, network and storage state, input, extraction, and automation seams.

It runs in-process and has no browser binary to install. It also does not render: there are no pixels, screenshots, PDFs, or browser windows.

bash
dotnet add package Jint.Browser

View Jint.Browser on NuGet.org

With using Jint.Browser; in scope:

csharp
await using var browser = new Browser();
var page = await browser.NewPageAsync();

await page.NavigateAsync("https://example.org/");
Console.WriteLine(await page.MarkdownAsync());

The package targets .NET 8 and later. It is not currently trim- or AOT-compatible because AngleSharp is not trim-annotated.

Choose a topic