Official TypeScript SDK for SenderKit — notification infrastructure for modern SaaS apps. Send welcome emails, password resets, billing notifications, and other transactional messages with a single, predictable API.
- ESM + CJS dual-publish — works with
importandrequire - Zero runtime dependencies in the core SDK
- Node.js 18+ (uses native
fetch); runs on edge runtimes too via injectablefetch - Typed end-to-end with generated
.d.ts/.d.cts - Safe by default — automatic retries, timeouts, and idempotency
- Terminal & AI-native — a CLI and an MCP server for use from your shell or AI assistant
npm install @senderkit/sdk
# or
pnpm add @senderkit/sdk
# or
bun add @senderkit/sdkimport { SenderKit } from "@senderkit/sdk";
const senderkit = new SenderKit({
apiKey: process.env.SENDERKIT_API_KEY!,
});
await senderkit.send({
template: "welcome",
to: "user@example.com",
vars: { name: "John" },
});| Package | Description |
|---|---|
@senderkit/sdk |
Core TypeScript SDK. Node.js 18+, ESM-first, zero runtime dependencies. |
@senderkit/cli |
Command-line interface and MCP server. Send notifications and inspect templates/messages from your terminal or AI assistant. |
@senderkit/react-email |
Bridge React Email templates to SenderKit — metadata, preview data, payload typing, manifest generation. |
| Example | Description |
|---|---|
node-basic |
Send a transactional message from a plain Node.js script. |
nextjs-basic |
Drop the SDK into a Next.js App Router route handler. |
pnpm install
pnpm build
pnpm testContributions are welcome — see CONTRIBUTING.md for the dev loop and how to add a changeset. To report a security issue, see SECURITY.md.
MIT — see LICENSE.