Skip to content

@xtandard/webhooks/receiver

Receiver-side verification helpers — @xtandard/webhooks/receiver.

Zero dependencies, works in any WinterCG runtime (Bun, Node ≥ 20, Deno, Workers). Verifies webhooks from any Standard Webhooks-compliant sender — this package, Svix, or anything else that follows the spec — so it is useful even if the sending side isn’t @xtandard/webhooks.

import { … } from "@xtandard/webhooks/receiver";

Also re-exports symbols of @xtandard/webhooks/signing, documented on those pages.

Name Summary
verifyWebhook Verify an incoming Request: reads the raw body, checks the Standard Webhooks headers and signature(s), and returns the parsed envelope. Throws WebhookVerificationError on any failure.
Name Summary
VerifyWebhookOptions Options for verifyWebhook.
Name Documented on
WebhookEnvelope @xtandard/webhooks/schema