Skip to content

Releases

Signet V1.0

Choose a tag to compare

@CLARE-XHL CLARE-XHL released this 13 Oct 12:02
9ce1d0f

Signet V1.0

First public release. A SaaS authorization platform template for indie developers — deploy on Cloudflare's free tier, own your data, license your products.


What's in this release

This is the initial public release of Signet. It ships with everything you need to run a self-hosted authorization platform for your own products.

Core capabilities

  • User accounts — Registration, sign-in, and administrator-triggered password resets.
    Passwords are hashed with PBKDF2-SHA256 (100,000 iterations) and never stored in plaintext.

  • Order binding — Connect a payment order to a user account. Includes a pluggable
    adapter system — one adapter (Afdian) ships out of the box. Adding your own takes
    about fifty lines of code.

  • Product management — Users create products under their own account. Each product
    gets a unique short ID and its own license file.

  • Offline license issuance — Licenses are signed with Ed25519. Once issued, they
    verify offline against a public key embedded in your application — no server
    round-trip required.

  • Administrator panel — Independent credential system, complete with:

    • License search across product name, Product ID, email, and User ID
    • Ban/unban with mandatory reasons
    • Grant Pro access to any user (inserts a virtual paid order)
    • Password reset for any user
    • Full audit log of every administrator action
  • Public license lookup — Anyone can verify whether a product has a valid license
    without signing in. No emails, no order numbers, no personal data exposed.

Design principles

  • Zero-Trust — It's open source
    with no black boxes, so you have full control over all the logic and keys yourself.

  • Offline-first — A license, once issued, works forever. If the platform goes
    offline, existing licenses continue to verify.

  • Dual JWT isolation — User and administrator sessions use separate secrets and
    separate storage keys. A compromised user token cannot reach administrative routes.

  • Adapters, not integrations — Payment providers are pluggable modules. The core
    never imports a specific provider directly.


Tech stack

Layer Technology
Backend Cloudflare Workers
Database Cloudflare D1 (SQLite)
Frontend Static HTML + Tailwind CSS
Crypto Ed25519 via @noble/ed25519
Auth JWT (dual: user + admin)

No servers to maintain. No monthly bills. Runs on Cloudflare's free tier for typical
indie-scale use.


Quick start

# 1. Clone the repository
git clone https://github.com/CrCLARE/Signet.git
cd Signet

# 2. Deploy the backend
cd backend
npm install
npx wrangler d1 create signet-db       # note the database_id
# edit wrangler.toml, paste the database_id
npx wrangler d1 execute signet-db --file=./schema.sql --remote

# 3. Generate secrets
node scripts/gen-admin-pwd.cjs "your-strong-password"
node scripts/gen-keys.cjs
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"  # JWT_SECRET

# 4. Push secrets to Cloudflare
npx wrangler secret put JWT_SECRET
npx wrangler secret put ADMIN_USERNAME
npx wrangler secret put ADMIN_PASSWORD_HASH
npx wrangler secret put ADMIN_PASSWORD_SALT
npx wrangler secret put ADMIN_JWT_SECRET
npx wrangler secret put LICENSE_SIGN_PRIVATE_KEY
npx wrangler secret put LICENSE_SIGN_PUBLIC_KEY

# 5. Deploy
npx wrangler deploy

Then deploy the frontend/ directory to Cloudflare Pages, and edit
window.SIGNET_CONFIG in frontend/index.html to point at your Worker URL.

Full deployment guide: https://dev.crclare.top


Live demo(Chronos Seal Website)

https://chronos.crclare.top — a working instance of this template in production.


Known limitations

· Afdian adapter only. Other payment providers (Stripe, Paddle, Gumroad) are not
included in this release. The adapter interface is stable, so adding one is a
contained change.
· No password reset by email. Administrators reset passwords manually. Email-based
self-service reset would require an email provider integration — deliberately not
bundled to keep the template dependency-free.
· Single admin account. Credentials come from environment variables, so there is
exactly one administrator identity per deployment. Multi-admin support would require
a schema change.
· No automated tests. The codebase was validated manually end-to-end. Automated
tests are on the roadmap but not part of v1.0.


License

Apache License 2.0. See LICENSE for the full text.

You may use, modify, and distribute Signet in commercial and non-commercial projects.
You must retain the original NOTICE file and disclose modifications. You may not use
the "Signet" or "CrCLARE" trademarks without permission.


Credits

Made by CLARE (CLARE-XHL)

Designed by Rice porridge (Climser), Old Bei (Bro eagle), Dieyi (Dieyi my),
Cloud (Xiaoyun), rain (Marquis)


Links

· Documentation — https://dev.crclare.top
· Source — https://github.com/CrCLARE/Signet
· Live demo — https://chronos.crclare.top
· CrCLARE Studio — https://crclare.top