opencoredev / email-sdk
PublicEmail SDK is a lightweight TypeScript library for sending email through Resend, Postmark, SendGrid, Mailgun, Brevo, SMTP, and more
Email SDK is an open-source TypeScript library that gives developers one unified way to send transactional emails through 17 different email services (including Resend, Postmark, SendGrid, AWS SES, Mailgun, and basic SMTP). Instead of learning each provider's unique API and rewriting code when switching services, developers write email code once using a normalized message format, and the library handles the translation to each provider. The library includes built-in features for reliability: automatic retries when sends fail, fallback routing to backup providers, and validation that warns you before sending messages with fields a provider cannot handle. It also comes with a command-line tool for testing sends locally and a complete documentation website with guides and examples.
How It Works
Your new application needs to send welcome emails, password resets, and receipts to users.
You've heard stories about teams getting stuck with a provider that becomes too expensive or unreliable, and rewriting all their email code later.
A library that lets you write email code once, then switch between providers like Resend, Postmark, AWS, or simple mail servers without changing your application code.
You set up one client in your project and choose which email services you want to use, with clear documentation guiding you through.
Your app sends a welcome message to a new user, and everything works on the first try without wrestling with provider-specific code.
One email provider handles all your sends, and you move on to the next feature.
You connect a backup provider, and your app automatically retries failed sends and switches providers when needed.
Whether you use one provider or many, your email code stays clean and your messages reach users. If you ever need to switch providers, it's just a configuration change.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.