https://github.com/soenneker/soenneker.blazor.thumbmarkjs
A Blazor interop library for the javascript fingerprinting library, thumbmarkjs
https://github.com/soenneker/soenneker.blazor.thumbmarkjs
blazor blazorlibrary csharp dotnet fingerprint fingerprinting id identification thumbmark thumbmarkjs thumbmarkjsinterop
Last synced: 12 days ago
JSON representation
A Blazor interop library for the javascript fingerprinting library, thumbmarkjs
- Host: GitHub
- URL: https://github.com/soenneker/soenneker.blazor.thumbmarkjs
- Owner: soenneker
- License: mit
- Created: 2025-06-12T21:12:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-06-14T06:14:55.000Z (15 days ago)
- Last Synced: 2026-06-14T08:08:40.303Z (15 days ago)
- Topics: blazor, blazorlibrary, csharp, dotnet, fingerprint, fingerprinting, id, identification, thumbmark, thumbmarkjs, thumbmarkjsinterop
- Language: CSS
- Homepage: https://soenneker.com
- Size: 994 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/soenneker.blazor.thumbmarkjs/)
[](https://github.com/soenneker/soenneker.blazor.thumbmarkjs/actions/workflows/publish-package.yml)
[](https://www.nuget.org/packages/soenneker.blazor.thumbmarkjs/)
[](https://github.com/soenneker/soenneker.blazor.thumbmarkjs/actions/workflows/codeql.yml)
#  Soenneker.Blazor.Thumbmarkjs
### A Blazor interop library for the javascript fingerprinting library, [thumbmarkjs](https://github.com/thumbmarkjs/thumbmarkjs)
[Demo](https://soenneker.github.io/soenneker.blazor.thumbmarkjs)
## Installation
```
dotnet add package Soenneker.Blazor.Thumbmarkjs
```
## Usage
### Basic Setup
1. Register the service in your `Program.cs`:
```csharp
builder.Services.AddThumbmarkjsInteropAsScoped();
```
2. Add the component to your page or component:
```razor
```
### Getting a Thumbmark (Fingerprint)
```csharp
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
```csharp
private async Task GetData()
{
JsonElement? data = await _thumbmarkjs.GetData();
string jsonData = data?.ToString();
// Use the detailed data...
}
```
### Configuring Options
```csharp
private async Task ConfigureOptions()
{
var options = new ThumbmarkjsOptions
{
Exclude = ["webgl", "audio"], // Components to exclude
Timeout = 1000, // Timeout in milliseconds
};
await _thumbmarkjs.SetOptions(options);
}
```