Soenneker.Blazor.Thumbmarkjs 4.0.216

Prefix Reserved
dotnet add package Soenneker.Blazor.Thumbmarkjs --version 4.0.216
                    
NuGet\Install-Package Soenneker.Blazor.Thumbmarkjs -Version 4.0.216
                    
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="Soenneker.Blazor.Thumbmarkjs" Version="4.0.216" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Thumbmarkjs" Version="4.0.216" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Blazor.Thumbmarkjs" />
                    
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 Soenneker.Blazor.Thumbmarkjs --version 4.0.216
                    
#r "nuget: Soenneker.Blazor.Thumbmarkjs, 4.0.216"
                    
#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 Soenneker.Blazor.Thumbmarkjs@4.0.216
                    
#: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=Soenneker.Blazor.Thumbmarkjs&version=4.0.216
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Thumbmarkjs&version=4.0.216
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Blazor.Thumbmarkjs

A Blazor interop library for the javascript fingerprinting library, thumbmarkjs

Demo

Installation

dotnet add package Soenneker.Blazor.Thumbmarkjs

Usage

Basic Setup

  1. Register the service in your Program.cs:
builder.Services.AddThumbmarkjsInteropAsScoped();
  1. Add the component to your page or component:
<Thumbmarkjs @ref="_thumbmarkjs" OnGenerated="OnGenerated"></Thumbmarkjs>

Getting a Thumbmark (Fingerprint)

private Thumbmarkjs _thumbmarkjs;

private async Task Get()
{
    string fingerprint = await _thumbmarkjs.Get();
}

public void OnGenerated(string thumbmark)
{
    // Handle the fingerprint when it's generated
}

public void OnFingerprintDataGenerated(JsonElement data)
{
    // Handle the fingerprint when it's generated
}

Getting Detailed Data

private async Task GetData()
{
    JsonElement? data = await _thumbmarkjs.GetData();
    string jsonData = data?.ToString();
    // Use the detailed data...
}

Configuring Options

private async Task ConfigureOptions()
{
    var options = new ThumbmarkjsOptions
    {
        Exclude = ["webgl", "audio"], // Components to exclude
        Timeout = 1000, // Timeout in milliseconds
    };

    await _thumbmarkjs.SetOptions(options);
}
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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
4.0.216 33 4/15/2026
4.0.215 42 4/15/2026
4.0.214 56 4/15/2026
4.0.213 68 4/15/2026
4.0.212 63 4/14/2026
4.0.211 71 4/14/2026
4.0.210 76 4/13/2026
4.0.209 71 4/13/2026
4.0.208 75 4/13/2026
4.0.207 74 4/10/2026
4.0.206 71 4/9/2026
4.0.204 84 4/8/2026
4.0.203 78 4/8/2026
4.0.202 85 4/8/2026
4.0.201 93 4/7/2026
4.0.200 79 4/7/2026
4.0.199 85 4/7/2026
4.0.198 84 4/6/2026
4.0.197 87 4/6/2026
4.0.196 92 4/5/2026
Loading failed

Update dependency Soenneker.Blazor.Utils.ResourceLoader to 4.0.1650 (#512)

Automatically merged