B4n1Web 0.9.4
dotnet add package B4n1Web --version 0.9.4
NuGet\Install-Package B4n1Web -Version 0.9.4
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="B4n1Web" Version="0.9.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="B4n1Web" Version="0.9.4" />
<PackageReference Include="B4n1Web" />
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 B4n1Web --version 0.9.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: B4n1Web, 0.9.4"
#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 B4n1Web@0.9.4
#: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=B4n1Web&version=0.9.4
#tool nuget:?package=B4n1Web&version=0.9.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
B4n1Web C# SDK
Ultra-lightweight agentic browser engine with bundled binary.
Install
dotnet add package B4n1Web
Binary is bundled — no separate installation needed.
Quick Start
using B4N1Web;
var browser = new AgentBrowser(new BrowserOptions { Mode = BrowserMode.Light });
var page = browser.Goto("https://example.com");
Console.WriteLine(page.Markdown);
Console.WriteLine($"{page.Links.Count} links found");
Console.WriteLine(page.GetMainContent());
Console.WriteLine(string.Join(", ", page.FindLinksByText("github")));
browser.Close();
Async
using B4N1Web;
var browser = new AgentBrowser();
var page = await browser.GotoAsync("https://example.com");
Console.WriteLine(page.Markdown);
browser.Close();
Browser Modes
new AgentBrowser(new BrowserOptions { Mode = BrowserMode.Light }); // default
new AgentBrowser(new BrowserOptions { Mode = BrowserMode.JS });
new AgentBrowser(new BrowserOptions { Mode = BrowserMode.Render });
Security
var shield = new SecurityShield();
shield.MarkDomain("evil.com", isSafe: false);
var result = shield.IsUrlSafe("https://evil.com");
// result.IsSafe, result.NeedsApiCheck
Version
SDK: 0.4.0 | Binary: 0.4.0 (bundled)
Links
Built by B4N1 with ❤️ · All rights reserved.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.