Get started

Installation

Install sently with Bun or use its published ESM package.

sently is an ESM package for applications that send email, SMS, WhatsApp, or push (Web Push / FCM). Install it in the application that owns your delivery credentials and provider transport configuration.

The one rule

Import the narrowest sently entrypoint that contains the sender or transport you use.
bun add sently
import { createMailer } from "sently/mailer";
import { ResendTransport } from "sently/transports/resend";

const mailer = await createMailer({
  transport: new ResendTransport({
    apiKey: process.env.RESEND_API_KEY!,
  }),
});

Install and runtime requirements

RequirementDetails
Package managerBun: bun add sently.
Module formatUse ESM imports.
Node.jsVersion 18 or later.
BunVersion 1 or later.
Email via SMTPUse an SMTP-capable runtime adapter; HTTP transports are the portable option.

Common imports

NeedImport
Email with a transportsently/mailer
Email over SMTPsently/smtp
SMSsently/sms
WhatsAppsently/whatsapp
Push (Web Push or FCM)sently/push
Shared send-result mappingsently/channel-result

Troubleshooting

Learn more

Next

On this page