Skip to content
The xtandard-webhooks logoThe xtandard-webhooks logo

@xtandard/webhooks

Self-hosted, embeddable, Standard Webhooks-compliant outbound webhooks. Mount it inside your app, point it at the database you already run, and ship signed events with retries, dead-letters and a customer-facing portal.
Terminal window
npm install @xtandard/webhooks

A Svix alternative as a library: no per-message SaaS pricing and no separate service to operate. Your app publishes, a dispatcher inside your process (or a worker running the same library) delivers, and your customers manage their own endpoints through an embeddable portal. The wire contract is Standard Webhooks, so receivers verify with the official libraries in any language.

import { Hono } from "hono";
import { webhooksPanel } from "@xtandard/webhooks/hono";
import { createPostgresStorage } from "@xtandard/webhooks/storage/postgres";
// The admin UI + API, and an in-process dispatcher (`dispatcher: false` for a split worker).
const webhooks = webhooksPanel({
storage: createPostgresStorage({ connectionString: process.env.DATABASE_URL }),
});
const app = new Hono();
app.route("/webhooks", webhooks);

Adapters for Hono, Elysia (1 and 2), Express and Bun; storage on Postgres, Redis, MongoDB, SQLite, libSQL, Drizzle, unstorage, Cloudflare KV, files or memory. Quickstart →

flowchart LR
  subgraph host["your app process (or a split worker)"]
    direction TB
    APP["app code"] -- "publish()" --> CORE["<b>core</b><br/>applications · event types<br/>endpoints · messages"]
    PANEL["<b>panel</b><br/>admin UI + API<br/>Hono · Elysia · Express · Bun"] --> CORE
    DISP["<b>dispatcher</b><br/>claims due deliveries<br/>signs · retries · dead-letters"] --> CORE
  end
  CORE <--> DB[("your database<br/>Postgres · Redis · Mongo<br/>SQLite · Drizzle · KV …")]
  DISP -- "signed POSTs<br/>webhook-id · webhook-signature" --> RX["customer endpoints<br/>/receiver or official<br/>standardwebhooks libs"]
  PORTAL["&lt;WebhooksPortal&gt;<br/>in your product"] -- "portal token" --> PANEL

publish() is one message write plus fan-out: it never makes an HTTP call. The dispatcher owns all network I/O; leases make it crash-safe and safe to run on several instances, with at-least-once delivery (receivers dedupe on webhook-id). Unmount the admin UI and delivery keeps working. Architecture →

A library, not a service

bun add and the database you already have. No second deployment with its own Postgres and Redis to operate, and no per-message pricing.

Standard Webhooks on the wire

HMAC-SHA256 v1 signatures, webhook-id/webhook-timestamp headers and zero-downtime secret rotation, so receivers need nothing bespoke.

Never silently drops

Exponential retries with jitter, dead-letters with per-attempt HTTP detail, replay one at a time or in bulk, and auto-disable for endpoints that keep failing.

Self-serve for your customers

An embeddable portal, an admin dashboard, auth and role-based authorization, audit-ready hooks and a CLI with a local inspecting receiver.

@xtandard/webhooks has siblings: open-source, MIT-licensed projects that share the xtandard name. Each one stands on its own.

All of them, with npm and GitHub links: the xtandard ecosystem.