Azunt.Signature
0.1.0
dotnet add package Azunt.Signature --version 0.1.0
NuGet\Install-Package Azunt.Signature -Version 0.1.0
<PackageReference Include="Azunt.Signature" Version="0.1.0" />
<PackageVersion Include="Azunt.Signature" Version="0.1.0" />
<PackageReference Include="Azunt.Signature" />
paket add Azunt.Signature --version 0.1.0
#r "nuget: Azunt.Signature, 0.1.0"
#:package Azunt.Signature@0.1.0
#addin nuget:?package=Azunt.Signature&version=0.1.0
#tool nuget:?package=Azunt.Signature&version=0.1.0
Azunt.Signature
A lightweight, extensible signature capture library for .NET web applications.
Version 0.1.0 provides a standalone Blazor visual-signature dialog for .NET 10, supporting Draw and Type. MVC, Razor Pages, and a public JavaScript API are planned, not yet supported. No Azunt.Editor, Bootstrap, cloud storage, database or authentication dependency. The host owns authorization, persistence and document insertion. This is not a cryptographic or identity-verified signature.
Setup
Reference the Razor Class Library project and include its stylesheet once in the host document head, relative to the application's base URL:
<link rel="stylesheet" href="_content/Azunt.Signature/css/azunt-signature.css" />
Example interactive Blazor Server page:
@page "/signature-demo"
@using Azunt.Signature.Components
@rendermode InteractiveServer
<AzuntSignatureDialog @ref="dialog" Title="Digital Signature" />
<button type="button" @onclick="SignAsync">Sign</button>
@if (signature is not null)
{
<img src="@signature" alt="Signature" width="250" height="65" />
}
@code {
private AzuntSignatureDialog? dialog;
private string? signature;
private async Task SignAsync()
{
if (dialog is not null)
{
var result = await dialog.CaptureAsync();
if (result is not null) signature = result;
}
}
}
Use the host's normal interactive render-mode and static web asset setup. MVC and Razor Pages wrappers are not included in this release.
API and limits
CaptureAsync()returns a validated PNG data URL or null on cancel, timeout, disposal or duplicate capture. Invoke on the Blazor renderer context after interactive rendering.CancelAsync()cancels an active capture.TitleandInsertButtonTextcustomize dialog labels.SignatureImage.IsValid()checks bounded Base64 encoding, PNG header and dimensions, not the full PNG contents or identity.
Each capture starts in Draw mode. Switching modes preserves content. Timeout: four minutes. Typed text: 80 characters; appearance depends on installed system fonts. Transparent PNG: 500 × 130 (or 250 × 65 when downsampling is needed), limited to 20,000 data URL characters for the usual Blazor Server message budget. Host applications must enforce authorization and storage policies.
Build and package
dotnet build Azunt.Signature.sln -c Release
dotnet pack src/Azunt.Signature/Azunt.Signature.csproj -c Release
Initial version 0.1.0. The package is configured for MIT licensing. Confirm ownership, supported environments and package contents before publishing to NuGet. An inline signature pad is not part of this initial dialog release.
Run the sample
From the repository root, with the .NET 10 SDK installed:
dotnet run --project samples/Azunt.Web/Azunt.Web.csproj --launch-profile http
Open http://localhost:5091/ (or /signature-demo). The sample runs in Interactive Server mode without Azunt.Editor, captures a signature, previews it, and lets you download the PNG. No signatures are persisted on the server by the demo.
Browser test
Install the test dependencies with python -m pip install -r tests/requirements.txt and python -m playwright install chromium. Run python tests/signature-dialog-browser.py with Python Playwright and Chromium (AZUNT_CHROMIUM_PATH may select the executable). This tests real JavaScript/CSS using rendered markup, not Razor compilation or server interop.
Roadmap
- Standalone inline signature pad
- MVC and Razor Pages Tag Helpers
- Public JavaScript API
- Expanded browser and .NET integration tests
- NuGet publication
License
MIT. See LICENSE.
| Product | Versions 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. |
-
net10.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.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 64 | 11/27/2026 |
Initial release with handwritten and typed signature capture, transparent PNG generation, and a standalone Blazor signature dialog.