An executive-grade, open-source e-signature platform built natively for .NET.
Quick start Β· Architecture Β· Documentation Β· Roadmap Β· Contributing
The .NET ecosystem has world-class libraries for everything from data access (EF Core) to logging (Serilog) to background work (Hangfire) to resilience (Polly).
It does not have a production-grade open-source e-signature platform.
Today, every .NET shop that needs to embed signing in a product faces the same three bad options:
- Pay a hosted service per envelope β the cost scales linearly with your customers.
- Integrate something written in another stack β the open-source platforms are excellent, but they are written in Ruby or TypeScript: not your language, your package manager, or your tooling.
- Build it yourself from scratch β months of PAdES, ASN.1, CMS, and BouncyCastle to get to a green check in Adobe Acrobat.
Stampd is the option that should have existed.
| Cryptographically sound | PAdES B-B, B-T, B-LT signatures verifiable in Adobe Acrobat. RFC 3161 timestamps. Embedded OCSP + CRL for long-term validity. |
| HSM-first | Pluggable sealing providers: local certificate, HashiCorp Vault, OpenBao, Azure Key Vault, AWS KMS. Private keys never leave the HSM. |
| Multi-cloud storage | Built-in adapters for local filesystem, S3, Azure Blob, and Google Cloud Storage β your choice, your tenant-prefix policy, your KMS keys. |
| Multi-provider database | SQL Server, PostgreSQL, SQLite. EF Core 10 throughout, with global tenant query filters and append-only audit. |
| Truly open source | Apache 2.0 across the entire stack. No relicensing clause. No "open-core" feature gate. The thing you fork is the thing we ship. |
| Executive-grade UI | Static SSR Blazor signer experience with real PDF.js rendering. Visual template designer. Dark/light theme. Zero dependencies on commercial component libraries. |
| Production observability | Serilog structured logging, OpenTelemetry traces + metrics, correlation IDs, real health probes, JWT auth, rate limiting. Ships in a Docker container. |
| Webhook outbox | HMAC-SHA256-signed delivery of lifecycle events with exponential-backoff retry. Atomic with workflow state changes via the outbox pattern. |
You need .NET 10 SDK installed. Everything else is bundled.
git clone https://github.com/isureshsubramanian/Stampd.git
cd Stampd
# Terminal A β the API
dotnet run --project src/Stampd.WebApi
# Listening on http://localhost:5070
# Terminal B β the UI
dotnet run --project src/Stampd.UI
# Listening on http://localhost:5170The SQLite database, self-signed signing certificate, and migration apply automatically on first boot. Open http://localhost:5170 to land in the designer, or jump straight to the API reference at http://localhost:5070/scalar/v1.
BASE_URL=http://localhost:5070
TOKEN=$(curl -s -X POST $BASE_URL/api/auth/dev-token \
-H "Content-Type: application/json" \
-d '{"subject":"hello"}' | jq -r .accessToken | tr -d '\n')
# Convert a PDF on disk to base64 and POST it for one-shot signing.
PDF_B64=$(base64 -i your-document.pdf)
curl -s -X POST $BASE_URL/api/sign \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d "{\"sourcePdfBase64\":\"$PDF_B64\",\"fields\":[],\"fieldValues\":{}}" \
| jq -r .signedPdfBase64 | base64 -d > signed.pdf
open signed.pdfAdobe Acrobat opens the signed PDF with the signature panel populated, the byte range verified, and a yellow "signer's identity is unknown" badge (because we used a self-signed cert). Drag the .cer file into Adobe's trusted identities and the badge flips green.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Stampd.UI β
β (Blazor Web App β signer + designer pages) β
βββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββ
β HTTP + JWT
βββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββ
β Stampd.WebApi β
β Templates Β· Signing Requests Β· Recipient Signing Β· Webhooks Β· Bulk Send β
ββββββββ¬βββββββββββββββββββ¬βββββββββββββββββββ¬ββββββββββββββββ¬βββββββββββββββββ
β β β β
ββββββββΌβββββββ βββββββββΌββββββββ ββββββββΌβββββββ βββββββΌββββββββββ
β Stampd β β Stampd β β Stampd β β Stampd β
β Engine β β Infrastructureβ β Storage β β Identity β
β (PdfSharp + β β (EF Core 10, β β (Local FS, β β (Email OTP, β
β BouncyCastleβ β multi-DB) β β S3, AzBlob,β β SMS OTP, β
β PAdES B-LT)β β β β GCS) β β KBA) β
ββββββββ¬βββββββ βββββββββββββββββ βββββββββββββββ βββββββββββββββββ
β
ββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Sealing Providers β
β LocalCert Β· HashiCorp Vault Β· OpenBao Β· Azure Key Vault Β· AWS KMS β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββ
β RFC 3161 TSA β
β (FreeTSA Β· DigiCert β
β Β· GlobalSign Β· β¦) β
βββββββββββββββββββββββββ
Every box is a separate project. Every diagonal arrow is an interface in Stampd.Core you can swap by changing one line of DI registration. Need a custom HSM? Implement ICryptographicSealingProvider. Custom storage? IDocumentStorageProvider. Custom identity verification? IIdentityVerificationProvider.
Workflow invitations and Email-OTP identity-verification codes go out through a single SMTP IEmailSender registered in Stampd.WebApi.
Development β Stampd.UI mounts Hermex, an in-process SMTP server with a web dashboard, gated on ASPNETCORE_ENVIRONMENT=Development. Run both projects and every email lands at http://localhost:5170/hermex. Zero setup, no container, nothing to remember to shut down.
Test / Staging / Production β Hermex is not registered and the /hermex route does not exist. Override the SMTP transport via standard configuration:
Env-var form: Stampd__Email__Smtp__Host, Stampd__Email__Smtp__Port, etc.
| Document | Purpose |
|---|---|
/scalar/v1 on the running WebApi |
Interactive OpenAPI reference. |
| Capability | v1.0 | v1.1 | v1.2 | v1.3 | v2.0 | v2.1 | v2.2 | v2.3 | v3.0 (current) |
|---|---|---|---|---|---|---|---|---|---|
| PAdES B-B (basic) | β | β | β | β | β | β | β | β | β |
| PAdES B-T (RFC 3161 timestamp) | β | β | β | β | β | β | β | β | β |
| PAdES B-LT (CRL + OCSP via DSS) | β | β | β | β | β | β | β | β | β |
| PAdES B-LTA (archive timestamp) | β | β | β | β β | β β | β β | β β | β β | β β |
| Strict ETSI ATSHashIndexV3 imprint | β | β | β | β | β | β | β | β | β |
PAdES Document Timestamp (/Type /DocTimeStamp) |
β | β | β | β | β | β | β | β | β |
| Local certificate sealing | β | β | β | β | β | β | β | β | β |
| HashiCorp Vault / OpenBao Transit | β | β | β | β | β | β | β | β | β |
| Azure Key Vault | β | β | β | β | β | β | β | β | β |
| AWS KMS | β | β | β | β | β | β | β | β | β |
| Configurable RFC 3161 TSA (DigiCert / GlobalSign / Sectigo / internal) | β | β | β | β | β | β | β | β | β |
| Opt-in DigiCert TSA failover (resilience for FreeTSA outages) | β | β | β | β | β | β | β | β | β |
| SQL Server / Postgres / SQLite | β | β | β | β | β | β | β | β | β |
| S3 / Azure Blob / GCS storage | β | β | β | β | β | β | β | β | β |
| Email-driven workflow dispatch | β | β | β | β | β | β | β | β | β |
| Persistent OTP store (DB-backed) | β | β | β | β | β | β | β | β | β |
| SMS OTP + KBA identity verification | β | β | β | β | β | β | β | β | β |
| OTP rate limit + brute-force lockout | β | β | β | β | β | β | β | β | β |
| Webhook outbox with HMAC delivery | β | β | β | β | β | β | β | β | β |
| Bulk-send worker | β | β | β | β | β | β | β | β | β |
| Multi-recipient field aggregation | β | β | β | β | β | β | β | β | β |
| Multi-recipient sender detail page | β | β | β | β | β | β | β | β | β |
| Sender completion notification email | β | β | β | β | β | β | β | β | β |
| Blazor signer experience | β | β | β | β | β | β | β | β | β |
| Blazor template designer | β | β | β | β | β | β | β | β | β |
| Identity-verification UI gates | β | β | β | β | β | β | β | β | β |
| Drag-to-move + resize handles in designer | β | β | β | β | β | β | β | β | β |
| Transparent signature rendering (PNG alpha through PdfSharp) | β | β | β | β | β | β | β | β | β |
| True PDF incremental update for strict ETSI B-LT | β | β | β | β | β | β | β | β | β |
| Paginated signing-requests list (UI + API) | β | β | β | β | β | β | β | β | β |
| RBAC: Admin / Sender / ReadOnly roles + policies | β | β | β | β | β | β | β | β | β |
Tenant-isolated admin scopes (AdminScopes + per-tenant gate) |
β | β | β | β | β | β | β | β | β |
| Real OIDC relay (Auth0 / Okta / Azure AD / Google / Keycloak) | β | β | β | β | β | β | β | β | β |
| SAML2 SP scaffolding (config + endpoint surface; impl in v3.0.1) | β | β | β | β | β | β | β | β | β |
| Industry compliance bundles (HIPAA / 21 CFR Part 11 / eIDAS QES) | β | β | β | β | β | β | β | β | β |
Production guard: Mode=DevJwt blocked outside Development |
β | β | β | β | β | β | β | β | β |
Admin dashboard at /admin (summary + 30-day trend + top templates) |
β | β | β | β | β | β | β | β | β |
| Drop-off funnel + time-to-sign + identity-verification analytics | β | β | β | β | β | β | β | β | β |
| Prior-window comparison on every analytics widget (β²/βΌ deltas) | β | β | β | β | β | β | β | β | β |
| Per-channel identity-verification breakdown (Email / SMS / KBA) | β | β | β | β | β | β | β | β | β |
| Request-weighted funnel completion (multi-recipient fairness) | β | β | β | β | β | β | β | β | β |
| Per-role time-to-sign segmentation (tenant-wide across templates) | β | β | β | β | β | β | β | β | β |
| Weekday vs weekend funnel split (dispatch-time conversion gap) | β | β | β | β | β | β | β | β | β |
| Webhook delivery retry observability widget | β | β | β | β | β | β | β | β | β |
| Per-sender productivity dashboard | β | β | β | β | β | β | β | β | β |
| Audit-trail CSV export (streamed) | β | β | β | β | β | β | β | β | β |
| Signing-requests filters (status / sender / recipient / date) + sort | β | β | β | β | β | β | β | β | β |
Strict completed-date sort (V15 CompletedAtUtcEpochMs shadow column) |
β | β | β | β | β | β | β | β | β |
| Shareable + back-button-safe filter URLs (query-string sync) | β | β | β | β | β | β | β | β | β |
| Admin bulk operations: void, resend invitation, demo cleanup | β | β | β | β | β | β | β | β | β |
Audit attribution (ActorUserId + ActorRole on every event) |
β | β | β | β | β | β | β | β | β |
| Theme persistence across navigation (light / dark) | β | β | β | β | β | β | β | β | β |
β B-LTA carrier β belt + suspenders. Stampd emits BOTH long-term archive carriers for B-LTA, so adopters get maximum verifier interop:
- CMS
id-aa-ets-archiveTimestampV3unsigned attribute (OID1.2.840.113549.1.9.16.2.48) carrying a second TSA assertion alongside the strict ETSIid-aa-ats-hash-index-v3attribute (OID1.2.840.113549.1.9.16.2.51, RFC 7026 / ETSI TS 101 733 Β§6.4.3) β Part 2 era carrier. The hash index locks in which certs, CRLs, and existing unsigned attrs the archive TST witnessed, so future additions to the CMS can't silently invalidate the timestamp. v1.3 #131 β replaced the v1.2 pragmatic SignerInfo-DER imprint with this spec-compliant computation.- PAdES Document Timestamp (
/Type /DocTimeStampsignature dictionary with/SubFilter /ETSI.RFC3161) β Part 4 carrier per ETSI EN 319 142-1 Β§5.4. Appended as a separate strictly-additive incremental update revision past the DSS, with its own/ByteRangecovering the entire prior PDF. v1.3 #132 β adds this in parallel to the CMS carrier.Cost: B-LTA signing now makes 3 TSA round-trips (signature TST + CMS archive TST + Document Timestamp). Adopters who only need short-term verifiability should target B-T (1 round-trip) or B-LT (1 round-trip + revocation gather).
v2.0 candidates β RBAC foundation (Admin / Sender / ReadOnly roles + ASP.NET Core policies + role-gated nav) β
, admin dashboard at /admin with summary tiles + 30-day trend + top-templates table β
, drop-off funnel + per-template time-to-sign + identity-verification analytics β
, signing-requests filter panel (status, sender, recipient, date range) + multi-column sort β
, admin bulk operations (void, resend invitation, demo cleanup) β
, audit attribution (ActorUserId + ActorRole on every event) + V14 migrations on SQLite / SqlServer / Postgres β
, theme persistence across navigation β
.
v2.1 candidates β transparent signature rendering (PdfSharp PNG alpha normalization via SkiaSharp re-encode, #213) β
, V15 CompletedAtUtcEpochMs shadow column on SigningRequest so the "completed" sort no longer proxies through CreatedAtUtcEpochMs (#212) β
, URL query-string sync for shareable + back-button-safe filters on the signing-requests list (#196) β
, opt-in DigiCert TSA failover wrapper for resilience against FreeTSA outages β
.
v2.2 candidates β previous-window comparison on every analytics widget (current vs prior period delta with green β² / red βΌ chips) β
, per-channel identity-verification breakdown (Email / SMS / KBA stacked bars for initiates + lockouts so admins see which method is being brute-forced) β
, multi-recipient funnel weighting (each request contributes signed Γ· recipients so a 2-of-3-signed request scores 0.67 instead of 0) β
, per-role time-to-sign segmentation (aggregates across templates by Recipient.Role.Name so admins answer "do Approvers always take longer than Signers?" tenant-wide) β
.
v2.3 candidates β webhook delivery retry observability widget (queue depth + recent failures table on /admin reading from WebhookEndpoint.ConsecutiveFailures + WebhookDelivery.LastErrorMessage) β
, recipient-funnel weekday vs weekend split (dispatch-time conversion gap so admins know whether to batch dispatches to weekday mornings) β
, per-sender productivity dashboard (dispatched / completed / voided + avg-time-to-sign per CreatedBy) β
, audit-trail export to CSV (streamed GET /api/admin/audit/export with date / event-type / actor filters, configurable Stampd:Admin:MaxAuditExportRows cap) β
.
v3.0 shipped β tenant-isolated admin scopes (alpha.1) β
, real OIDC relay against external IdPs (alpha.2) β
, SAML2 SP scaffolding with eager config validation (alpha.3, 501 stubs until v3.0.1) β
, industry compliance bundles (HIPAA / 21 CFR Part 11 / eIDAS QES) with runtime gates (stable) β
. Auth-mode startup guard blocks DevJwt outside Development.
v3.1 candidates β workflow rules engine (conditional fields + branching DSL + designer UI, the headline deferred from v3.0), persistent SigningRequest.ComplianceBundle column + V17 migration, SAML2 SP production wiring (ITfoxtec.Identity.Saml2), maintenance worker that prunes audit rows per bundle retention window, IV challenge latency p50/p95, audit-trail Parquet export.
- v3.0.0 (current) β MAJOR release. Tenant-isolated admin scopes:
AdminScopestable (V16 migration on every provider) + new auth handler that requires both theAdminrole claim AND an active scope row for the request's tenant +POST/DELETE/GET /api/admin/scopesendpoints +Stampd:Auth:SuperAdminUserIdsbootstrap config. Real SSO:Stampd.Identity.Oidcvalidates JWTs from any OpenID Connect IdP (Auth0, Okta, Azure AD, Google, Keycloak) via JWKS auto-discovery, with explicit-opt-inRoleClaimMappingstranslating external groups to Stampd's role taxonomy. SAML2 SP scaffolding:Stampd.Identity.Saml2with eager config validation, claim mapper, and mapped endpoints (/api/auth/saml/{metadata,login,acs}) returning 501 until v3.0.1 wires real assertion validation. Compliance bundles:Stampd.ComplianceaddsComplianceBundleenum (Hipaa / Cfr21Part11 / EidasQes / None) with runtimeIComplianceGateenforcing signature-level floor + IV requirement + QES marker check. Production guard:Stampd:Auth:Mode=DevJwtthrows at startup outside Development/Testing environments β preventing v2.x dev-minter accidents in production. Workflow rules engine deferred to v3.1. Detailed v2.3 β v3.0 upgrade path in MIGRATION.md. - v2.3.0 β Analytics breadth pass, no schema changes. Two new admin endpoints land:
GET /api/admin/analytics/webhooks-healthsurfaces total / active / degraded endpoint counts plus a top-10 recent-failures table reading fromWebhookEndpoint.ConsecutiveFailures+WebhookDelivery.LastErrorMessage, so a broken subscriber shows up in the dashboard instead of customer complaints;GET /api/admin/analytics/by-sender?days=&take=returns dispatched / completed / voided counts + avg time-to-sign perSigningRequest.CreatedBy, with an order-by-dispatched cap. The funnel response gains abyDayBucketfield carrying Mon-Fri UTC vs Sat-Sun UTC slices with a narrative "weekday converts 12 pp higher than weekend" line on the dashboard (with a "no signal" fallback for gaps under 5 pp). NewGET /api/admin/audit/exportstreams the audit trail as RFC 4180 CSV withfrom/to/eventType/actorUserIdfilters, configurableStampd:Admin:MaxAuditExportRowscap (default 250k), self-describing filename. Dashboard gets two new sections β "Webhook health" between analytics and the danger zone, and "Audit-trail export" with two native<a download>buttons for "last N days" and "all (capped)" exports. - v2.2.0 β Analytics deepening pass, no schema changes. Every
/api/admin/analytics/*endpoint now runs its aggregation twice per call (current window + equally-sized prior window) and the/admindashboard renders β²/βΌ delta chips next to every headline metric (green for improvement, red for regression,lowerIsBetterflipping the sense for time-to-sign and lockout count). New per-channel identity-verification breakdown: stacked bars for OTP initiates and lockouts split into Email / SMS / KBA β Email and SMS classified from the OTP identifier shape, KBA pulled fromRecipient.IdentityVerificationMethodwith a footnote calling out its proxied initiate count. Funnel gains a request-weighted view alongside the recipient-level numbers: each SigningRequest contributessigned Γ· recipientsto the average, so a 2-of-3-signed request scores 0.67 instead of being read as binary completed/not β fairer metric for tenants running multi-recipient workflows. Time-to-sign gains per-role segmentation aggregating across templates byRecipient.Role.Name("(unassigned)" fallback for legacy data) so admins see whether "Approvers" or "Witnesses" systematically take longer at the tenant level. All new response fields are nullable β pre-v2.2 Stampd.UI against v2.2 WebApi (or vice versa) deserializes cleanly. - v2.1.0 β Transparent signature rendering: signature/initial PNGs with alpha now render with their transparent background preserved (was a black rectangle on v2.0 due to PdfSharp 6.x alpha handling β fixed via a SkiaSharp re-encode pass before
XImage.FromStream). Strict completed-date sort onGET /api/signing-requests?sortBy=completed: V15 migration adds a nullableCompletedAtUtcEpochMsshadow column on SigningRequest with a covering(TenantId, CompletedAtUtcEpochMs)index on SQLite + SqlServer + Postgres, replacing v2.0's "route throughCreatedAtUtcEpochMs" workaround. URL query-string sync on/designer/requests: filter / sort / page state mirrors into the address bar so links are shareable and the browser back button restores prior views. Opt-in DigiCert TSA failover: newStampd:Tsa:EnableDigiCertFailoverconfig flag (defaultfalse) wraps the primary TSA in aFailoverTimestampAuthorityProviderthat falls back to DigiCert's free public TSA on FreeTSA timeouts. The standalone bring-your-own-certificate sample (samples/Stampd.ByoCertDemo) ships with the failover always on plus a file-based logger writing to~/.stampd/byo-cert-demo/logs/demo-*.logfor demo diagnostics. - v2.0.0 β Real RBAC across the API and UI (Admin / Sender / ReadOnly roles, ASP.NET Core authorization policies, role-gated nav, "logged in as" topbar). Admin dashboard at
/admin: summary tiles for live request states, 30-day trend SVG, top-templates table, analytics section with drop-off funnel + per-template time-to-sign + identity-verification metrics on a shared window selector (7 / 30 / 90 days). Signing-requests list gets a filter panel (status, sender email, recipient email, dispatched-from/to) and explicit sort selector. Admin bulk operations: void selected, resend invitations, demo cleanup tile. EveryAuditEventnow carriesActorUserId+ActorRole(V14 migration on SQLite / SqlServer / Postgres + composite(TenantId, ActorUserId, OccurredAtUtc)index). UI polish: theme choice now survives Blazor enhanced-navigation via head-inline restore +enhancedloadre-apply + MutationObserver guard; ghost / primary / icon-button hover text legibility fixed across both themes; signer signature canvas pinned to white so dark-mode ink is visible. - v1.3.0 β Strict-ETSI B-LTA hardening (
id-aa-ats-hash-index-v3imprint + parallel/Type /DocTimeStampPAdES Part 4 carrier), sender completion notification email + executive-grade invitation HTML upgrade, multi-recipient sender detail page at/designer/requests/{id}with audit timeline, OTP rate limit + brute-force lockout, paginated signing-requests list with prev/next + per-page selector, epoch sort columns finished on SigningRequest + SignedDocumentRecord plus four catch-up migrations bringing SqlServer + Postgres providers to V13. - v1.2.0 β Strict ETSI B-LT via PDF incremental update, B-LTA archive timestamp (CMS-attribute form), Email-OTP identity-verification UI gate, Hermex dev mailbox at
/hermex, edit-existing-template flow, server-side worker sort columns, seamless/demoone-click bootstrap, sender-side Requests view with sealed-PDF download, executive-grade HTML OTP email template, auto-auth in Development (zero terminal commands, zero copy-paste). - v1.1.0 β Production sealing providers, multi-cloud storage, B-LT signatures, webhooks, bulk-send, full Blazor signer + designer UI. End-to-end verified.
- v1.0.0 β PAdES B-B + B-T engine, local certificate sealing, Vault HSM via BYOK, multi-tenant API, EF Core 10.
| Hosted per-envelope services | Open-source platforms in other stacks | Stampd | |
|---|---|---|---|
| License | Proprietary | AGPL + paid tier | Apache 2.0 only |
| Stack | Closed | Ruby or TypeScript | C# / .NET 10 |
| Pricing | Per envelope | Free + paid tier | Free forever |
| HSM-backed signing | Managed only | Cert in app | Vault, KV, KMS |
| Self-hosted | β | β | β |
| Native .NET integration | REST only | REST or JS embed | NuGet + Blazor RCL |
| Database flexibility | Managed | Postgres only | SQL Server, Postgres, SQLite |
| TSA flexibility | Managed | One URL | Pluggable provider |
We're early. The biggest help right now is using Stampd in a real project and telling us what's broken, missing, or surprising.
- Issues β bug reports, feature requests, design discussions
- Pull requests β code changes, doc fixes, new provider implementations
- Discussions β design ideas, architecture questions, "is this the right way" check-ins
All contributions land under the Apache 2.0 license. By submitting a PR you're certifying you have the right to license your contribution under those terms (DCO).
Stampd is licensed under the Apache License, Version 2.0. See LICENSE.
This applies to the entire codebase β engine, providers, infrastructure, WebApi, UI, and tools. There is no separate "Enterprise" tier and no relicensing clause.
Built by .NET developers, for .NET developers. If Stampd saves your team from per-envelope billing, tell us about it β it's the kind of validation that keeps an open-source project alive.