svix
Svix is a webhook sending service (open source and hosted) that signs, delivers and retries webhooks to your customers' endpoints and gives them a portal with…
от TerminalSkills★ 221 звезда на GitHub
Установить svix в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Svix
Overview
Svix handles the sending side of webhooks: you post a message for an application (one per customer), and Svix signs it, delivers it to each subscribed endpoint, retries failures, and records every attempt. The signature scheme is Standard Webhooks (HMAC-SHA256 with whsec_ secrets), so receivers can verify with any Svix or Standard Webhooks library. Svix is open source and can be self-hosted. This skill uses the svix npm package, version 2.8.0 checked (2026-10-08); libraries also exist for Python, Go, Java, Ruby, Rust, C# and others.
Instructions
- Install:
npm install svix. Create the client with a server-side API token:new Svix(process.env.SVIX_AUTH_TOKEN!). Cloud tokens end in a region suffix (for example.us,.eu) that selects the API host automatically; for a self-hosted server pass{ serverUrl: "https://svix.internal.example" }as the second argument. Never ship the token to a browser. - Declare event types once:
svix.eventType.create({ name: "order.created", description: "An order was placed" }). Endpoints subscribe by name. - Create one application per customer:
svix.application.create({ name: "Northwind Traders", uid: "customer-42" }); theuidlets you address it by your own ID afterwards. - Customers (or you) add endpoints:
svix.endpoint.create("customer-42", { url, eventTypes: [...], channels: [...], throttleRate: 50 }). The fields areeventTypes(notfilterTypes) andthrottleRatein messages per second (notrateLimit). OmiteventTypesto receive everything. The signing secret comes back fromsvix.endpoint.getSecret(appId, endpointId). - Send:
svix.message.create("customer-42", { eventType: "order.created", payload: {...}, eventId: "ord-123" }).eventIdis your own idempotency key. The payload should be small and carry IDs; consumers fetch details through your API. - Receiving side: verify with the raw body. In svix 2.x
wh.verify(rawBody, headers)returns nothing (it throws on a bad signature), so parse the JSON yourself afterwards. Headers aresvix-id,svix-timestamp,svix-signature, and thewebhook-*equivalents are accepted too. Timestamps outside the tolerance window are rejected, which blocks replays. - Customer self-service:
const { url } = await svix.authentication.appPortalAccess("customer-42", {})returns a single-use magic link to the app portal (endpoint management, logs, replays). Options includefeatureFlags,readOnly/capabilities,sessionIdandexpiry(seconds, 1 hour to 7 days, default 7 days). Embed it in an iframe withallow="clipboard-write"or withsvix-react's<AppPortal url={...} />. - Retries: 8 attempts per endpoint at roughly 0, 5s, 5m, 30m, 2h, 5h, 10h and 10h after the previous failure (about 27 hours in total). Then the message is marked failed and an operational webhook
message.attempt.exhaustedis available. Endpoints failing continuously for 5 days are disabled automatically (configurable in the dashboard). Replay failed messages from the portal or the API.
Examples
Example 1: Send an order event to one customer
User request: "When an order is placed, send a webhook to that customer's endpoints."
import { Svix } from "svix";
const svix = new Svix(process.env.SVIX_AUTH_TOKEN!);
await svix.endpoint.create("customer-42", {
url: "https://hooks.northwind.example/svix",
eventTypes: ["order.created", "order.shipped"],
throttleRate: 50,
});
await svix.message.create("customer-42", {
eventType: "order.created",
eventId: "ord-123",
payload: { id: "ord-123", total: 99.99, currency: "USD", createdAt: new Date().toISOString() },
});
Result: Svix signs and POSTs the payload to the endpoint, retries on non-2xx responses, and the attempt shows up in the customer's portal.
Example 2: Verify incoming webhooks in Express
User request: "Verify Svix signatures on my /webhooks route."
import express from "express";
import { Webhook } from "svix";
const app = express();
app.post("/webhooks", express.raw({ type: "application/json" }), (req, res) => {
const wh = new Webhook(process.env.SVIX_SIGNING_SECRET!); // whsec_...
try {
wh.verify(req.body, req.headers as Record<string, string>);
} catch {
return res.status(400).json({ error: "Invalid signature" });
}
const event = JSON.parse(req.body.toString());
handleEvent(event); // dedupe on the svix-id header
res.status(200).json({ received: true });
});
Result: a tampered body or wrong secret returns 400 (the SDK throws "No matching signature found"); a valid delivery returns 200 and stops the retries. Do not mount express.json() before this route.
Example 3: Give a customer the portal
const { url } = await svix.authentication.appPortalAccess("customer-42", {
featureFlags: ["orders"],
});
res.json({ url }); // the frontend opens it in an iframe or a new tab
Guidelines
- Always verify against the unpars
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _scores.json
FAQ
Что делает скилл svix?
Svix is a webhook sending service (open source and hosted) that signs, delivers and retries webhooks to your customers' endpoints and gives them a portal with delivery logs. Use when adding outgoing webhooks to a product, verifying incoming Svix or Standard Webhooks signatures, managing customer endpoints and event types, or embedding the Svix app portal. Covers the Node SDK (svix).
Как установить скилл svix?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл svix запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…