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 sentlyimport { 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
| Requirement | Details |
|---|---|
| Package manager | Bun: bun add sently. |
| Module format | Use ESM imports. |
| Node.js | Version 18 or later. |
| Bun | Version 1 or later. |
| Email via SMTP | Use an SMTP-capable runtime adapter; HTTP transports are the portable option. |
Common imports
| Need | Import |
|---|---|
| Email with a transport | sently/mailer |
| Email over SMTP | sently/smtp |
| SMS | sently/sms |
sently/whatsapp | |
| Push (Web Push or FCM) | sently/push |
| Shared send-result mapping | sently/channel-result |
Troubleshooting
Use ESM package imports such as sently/mailer, rather than a file path into the package.
No. Provider transports are exported from their own sently/transports/* subpaths.