StealThis .dev

SaaS — API Keys & Webhooks

A developer-grade API keys and webhooks manager built in vanilla HTML, CSS, and JavaScript. The keys table shows masked secrets with reveal and copy, scopes, created date, and last used, while creation generates a fresh secret revealed only once and revoke asks for confirmation. A webhooks section lists endpoint URLs, subscribed events, and delivery status, lets you add new endpoints, and fires a test send that returns a simulated 200 OK, all with a working light and dark theme.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

API Keys & Webhooks

A focused settings surface for the part of a SaaS product developers actually touch: programmatic credentials and event delivery. The keys table lists each secret with a masked value you can reveal or copy, its granted scopes shown as colour-coded chips, the creation date, and a relative last-used timestamp. Creating a key opens a dialog for a name and scopes, then surfaces the freshly generated secret in a one-time reveal panel with a prominent warning — copy it now or lose it. Revoking always routes through a confirmation step so a misclick never disables production traffic.

The webhooks section presents each endpoint as a card with its URL, subscribed events, live active or paused status, and the result of its last delivery. Adding an endpoint validates the URL and lets you pick which events to subscribe to. The Send test button simulates a delivery with a brief loading state and returns a 200 OK, updating the card and raising a toast — the kind of immediate feedback developers expect.

Everything works without a backend: keys and webhooks live in memory, dialogs trap focus and close on Escape or outside click, toasts confirm each action, and a theme toggle gives full light and dark parity. The layout collapses the table into stacked, labelled rows on small screens and reflows the webhook cards into a single column, with landmark roles, aria attributes, and visible focus rings throughout.

Illustrative SaaS UI only — fictional product, metrics, and billing. No real backend.