All work

Keyward

Self-hosted licensing for my own apps, verified offline with Ed25519

Role
Sole developer
When
Nov 2026, ongoing
Stack
TypeScript · Hono · Cloudflare Workers · D1 · Postgres · Rust SDK
Rebuilt demo, sample data

The problem

Selling a desktop app means issuing keys, limiting seats and checking entitlement on machines that are sometimes offline. SnapPrompt first checked licenses live against a third-party store: a network call for each check, and an offline grace period that could be forged. I wanted signed tokens the app verifies on its own.

What I built

Keyward is a modular monolith with hexagonal boundaries. The same HTTP API and core run on a Cloudflare Worker with D1, or on Node with Postgres in Docker.

Keys are typo-checked, activations are bound to a machine fingerprint with a seat limit, and the server signs an Ed25519 token that the app verifies with the product's public keys. The private keys never leave the server.

Payments sit behind one PaymentProvider interface, with Paddle in production and a mock for development. An admin API, a CLI, an audit log, rate limits and an outbox cover operations.

How it runs

From purchase to an offline check

  1. Checkout Paddle, behind PaymentProvider
  2. Issue key Base32 groups, check symbol
  3. Activate Machine fingerprint, seat limit
  4. Sign token Ed25519, private key stays put
  5. Verify offline Rust SDK inside the app

Details worth a look

Next case study Helpdesk product Notifications and ticket translation for Omnia's helpdesk and customer portal, on .NET 10 and Vue 3