Skip to content

@saazip/webhook-core

Sources: packages/sdk/package.json | packages/sdk/src/index.ts

The public package published as @saazip/webhook-core for endpoint registration and delivery orchestration from another backend.

  • a typed client for endpoint registration, delivery creation, listing, and replay
  • re-exported contracts and domain primitives for downstream adopters
  • your product wants outbound webhooks behind one stable package boundary
  • another backend should manage endpoints and deliveries without handwritten fetch code
import { createWebhookCoreClient } from "@saazip/webhook-core";
const client = createWebhookCoreClient({
baseUrl: "http://127.0.0.1:3030",
apiKey: process.env.WEBHOOK_CORE_API_KEY,
});
const registration = await client.registerEndpoint({
tenantId: "tenant_demo",
url: "https://example.com/webhooks/leads",
eventTypes: ["lead.created"],
});
await client.dispatch({
endpointId: registration.endpoint.id,
tenantId: "tenant_demo",
eventType: "lead.created",
payload: { leadId: 'lead_123' },
});
  • Package name: @saazip/webhook-core
  • Workspace path: packages/sdk
  • openapi-fetch
  • which domain events become outbound webhooks
  • event payload design and subscription semantics in your product
  • build: tsc -p tsconfig.json
  • typecheck: tsc --noEmit -p tsconfig.json
  • lint: biome check src package.json tsconfig.json