svix
You are an expert in Svix, the enterprise webhook delivery platform. You help developers send reliable webhooks to customers with automatic retries, signature verification, delivery monitoring, endpoint management, and event type filtering — replacing custom webhook infrastructure with a purpose-built service used by companies like Clerk, Resend, and Liveblocks.
What this skill does
# Svix — Webhook Delivery Infrastructure
You are an expert in Svix, the enterprise webhook delivery platform. You help developers send reliable webhooks to customers with automatic retries, signature verification, delivery monitoring, endpoint management, and event type filtering — replacing custom webhook infrastructure with a purpose-built service used by companies like Clerk, Resend, and Liveblocks.
## Core Capabilities
### Sending Webhooks
```typescript
import { Svix } from "svix";
const svix = new Svix(process.env.SVIX_API_KEY!);
// Register an application (your customer/tenant)
await svix.application.create({
uid: "customer-42",
name: "Acme Corp",
});
// Send webhook event
await svix.message.create("customer-42", {
eventType: "order.created",
payload: {
id: "ord-123",
total: 99.99,
items: [{ sku: "WIDGET-A", qty: 2 }],
createdAt: new Date().toISOString(),
},
});
// Customer adds their endpoint via your dashboard/API
await svix.endpoint.create("customer-42", {
url: "https://customer-webhook.example.com/webhooks",
filterTypes: ["order.created", "order.shipped", "order.refunded"],
channels: ["orders"],
rateLimit: 100, // Max 100 deliveries/sec to this endpoint
});
// Batch send
await Promise.all(
customers.map(customerId =>
svix.message.create(customerId, {
eventType: "invoice.generated",
payload: { invoiceId: "inv-456", amount: 299.99 },
})
)
);
```
### Webhook Verification (Consumer Side)
```typescript
import { Webhook } from "svix";
// Verify incoming webhooks in your API
app.post("/webhooks", (req, res) => {
const wh = new Webhook(process.env.SVIX_SIGNING_SECRET!);
try {
const payload = wh.verify(req.body, {
"svix-id": req.headers["svix-id"],
"svix-timestamp": req.headers["svix-timestamp"],
"svix-signature": req.headers["svix-signature"],
});
// payload is verified and safe to process
handleWebhookEvent(payload);
res.status(200).json({ received: true });
} catch (err) {
res.status(400).json({ error: "Invalid signature" });
}
});
```
### Consumer Portal
```typescript
// Generate a magic link for customers to manage their endpoints
const dashboard = await svix.authentication.appPortalAccess("customer-42", {});
// dashboard.url → "https://app.svix.com/login#key=..."
// Customer can view delivery logs, manage endpoints, retry failed deliveries
```
## Installation
```bash
npm install svix
```
## Best Practices
1. **Event types** — Define clear event types (`order.created`, `invoice.paid`); customers filter what they receive
2. **Signature verification** — Always verify webhook signatures; Svix uses HMAC-SHA256 with timestamp replay protection
3. **Idempotency** — Include unique event IDs in payload; consumers should handle duplicate deliveries
4. **Retry policy** — Svix auto-retries with exponential backoff (up to 3 days); failed deliveries are logged
5. **Consumer portal** — Give customers the Svix App Portal; self-service endpoint management, delivery logs
6. **Rate limiting** — Set per-endpoint rate limits; protect customer servers from webhook storms
7. **Event catalog** — Document all event types and payload schemas; publish as part of your API docs
8. **Self-hosted** — Svix is open-source; deploy on your own infra for data sovereignty
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.