Azunt.Signature 0.1.0

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

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.
  • Title and InsertButtonText customize 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 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.
  • 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.