Skip to content

senderkit/senderkit-sdk

SenderKit SDK

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.

@senderkit/sdk @senderkit/cli @senderkit/react-email License: MIT

  • ESM + CJS dual-publish — works with import and require
  • Zero runtime dependencies in the core SDK
  • Node.js 18+ (uses native fetch); runs on edge runtimes too via injectable fetch
  • 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

Install

npm install @senderkit/sdk
# or
pnpm add @senderkit/sdk
# or
bun add @senderkit/sdk

Quick start

import { 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" },
});

Packages

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.

Examples

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.

Development

pnpm install
pnpm build
pnpm test

Contributing

Contributions are welcome — see CONTRIBUTING.md for the dev loop and how to add a changeset. To report a security issue, see SECURITY.md.

License

MIT — see LICENSE.

About

Official TypeScript SDK, CLI, and MCP server for SenderKit — send transactional notifications from your app or AI assistant

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors