Why @xtandard/webhooks
Why another webhooks tool?
Section titled “Why another webhooks tool?”Webhook delivery is a library concern, not a service you rent or a second deployment you babysit.
- Svix is excellent — and a SaaS (or a heavyweight self-hosted server with its own Postgres/Redis to operate). This is
bun add+ the DB you already have. - Hookdeck / Convoy are services to operate. Same objection.
- Hand-rolled senders reimplement signing, retries, and endpoint management — usually badly, always repeatedly. This packages the 20% everyone needs: applications, event types, endpoints, signed delivery, exponential retries, dead-letters, replay, observability, and a portal.
And because the wire contract is Standard Webhooks, your receivers verify with the official standardwebhooks libraries in Python, Go, Ruby, Java, Rust, PHP, or the zero-dependency @xtandard/webhooks/receiver — nothing bespoke on their side.
Part of the xtandard ecosystem: its closest sibling, @xtandard/flags, shares the same architecture and design system, for feature flags.
How it works — the two planes
Section titled “How it works — the two planes”flowchart LR
subgraph host["your app process"]
A[app code] -- "publish()" --> C[core]
UI[admin UI / portal] --> C
D[dispatcher] --> C
end
C <--> S[(your database)]
D -- "signed POSTs, retries" --> E1[customer endpoint]
D --> E2[customer endpoint]
- Control plane — CRUD on applications, event types, endpoints; browsing messages/deliveries; replay. Hook-guarded, audited, auth’d.
- Delivery plane —
publish()is one message write + fan-out (no HTTP, never throws because an endpoint is down). The in-process dispatcher owns all network I/O and retries; leases make it crash-safe and multi-instance-safe. At-least-once semantics; receivers dedupe onwebhook-id.
Kill the process mid-retry-schedule and restart it: pending deliveries resume. The admin UI can be completely unmounted and delivery still works.