Skip to main content
The analytics dashboard at l402kit.com/dashboard shows real-time stats for all payments flowing through your API: total sats received, per-endpoint breakdown, 7-day trend, and recent transactions.

Setup

The dashboard is protected by a secret token — DASHBOARD_SECRET. You generate it once and store it wherever you keep your other secrets.

1. Generate a secret

Or use any password manager to generate a strong random string.

2. Set it in your provider

Cloudflare Workers:
Node.js / other:

3. Login

Go to l402kit.com/dashboard, enter your secret, and you’re in. No email, no OAuth, no cookie — the secret is sent as x-dashboard-secret on every stats request.

What you see


API

The same data is available directly via the API — useful for building your own dashboard or piping into Grafana.

Security model

  • The secret never leaves your environment — it is compared server-side in the Cloudflare Worker using strict equality
  • No session token is issued — every request re-validates the secret
  • The secret has read-only access — it can only call /api/stats, not write or delete data
  • Generate a new secret anytime by updating DASHBOARD_SECRET via wrangler secret put
Never commit DASHBOARD_SECRET to git. Add it to your .gitignore and use wrangler secret put or your CI/CD secrets manager.

Rotate the secret

No database entries to update. The Worker reads the secret from environment on every request.