SDKs

First-party Node, Python, and Go SDKs wrap emit + verify. Install from GitHub paths until packages are published.

Status

Install

bash
npm install github:sarmaasis/outemit#main:sdks/node
# or from a checkout:
npm install file:./sdks/node
# optional peer:
npm install standardwebhooks

Verify helpers

Prefer first-party verify helpers or standardwebhooks packages. Same snippets appear in the Event Catalog drawer.

node
import { Webhook } from "standardwebhooks";

const wh = new Webhook("whsec_...");
const payload = wh.verify(rawBody, {
  "webhook-id": headers["webhook-id"],
  "webhook-timestamp": headers["webhook-timestamp"],
  "webhook-signature": headers["webhook-signature"],
});

Emit with SDKs

node
import Outemit from "outemit";

const client = new Outemit({ apiKey: "sk_test_..." });
const msg = await client.messages.create({
  appId: "app_...",
  eventType: "invoice.paid",
  payload: { id: "inv_1" },
  idempotencyKey: "demo-1",
});
console.log(msg.id, msg.delivery_ids);

CLI

outemit trigger and outemit listen --forward live in cli/outemit.mjs. See CLI docs.