Resend — Modern Email API for Developers
Developer-first email API with React Email templates, webhooks, and deliverability built-in. Send transactional emails with beautiful templates in 3 lines of code. By the creator of Novu. 15,000+ stars.
Ready-to-run agent install
This asset can be installed after the agent chooses its runtime, checks the plan, and runs the matching command.
npx -y tokrepo@latest install 1595eb81-b588-4673-9ba2-37f2db0a751b --target codexRun after dry-run confirms the install plan.
What it is
Resend is a developer-first email API that makes sending transactional emails simple. It supports React Email templates for building emails with components, provides webhooks for delivery tracking, and handles deliverability concerns (SPF, DKIM, DMARC) out of the box. The project has 15,000+ GitHub stars and SDKs for Node.js, Python, Ruby, Go, and more.
Resend targets developers building applications that send transactional emails: welcome messages, password resets, order confirmations, and notifications. It replaces legacy email services with a modern API that treats email templates as code.
How it saves time or tokens
Resend eliminates the complexity of email infrastructure. SPF, DKIM, and DMARC configuration is handled automatically. React Email templates let you build emails with components and props rather than writing raw HTML with inline styles. Webhooks provide delivery, open, and click tracking without bolting on a separate analytics service. The result is email functionality that takes 3 lines of code instead of a week of infrastructure setup.
How to use
- Install the SDK:
npm install resend
- Send an email:
import { Resend } from 'resend';
const resend = new Resend('re_your_api_key');
await resend.emails.send({
from: 'you@yourdomain.com',
to: 'user@example.com',
subject: 'Welcome!',
html: '<h1>Welcome to our app!</h1>',
});
- Get your API key at resend.com.
Example
Using React Email templates for structured email content:
import { Resend } from 'resend';
import { WelcomeEmail } from './emails/welcome';
const resend = new Resend('re_your_api_key');
await resend.emails.send({
from: 'onboarding@yourdomain.com',
to: 'user@example.com',
subject: 'Welcome to the platform',
react: WelcomeEmail({ userName: 'Alice', planName: 'Pro' }),
});
React Email templates render to cross-client HTML automatically, handling the quirks of Outlook, Gmail, and Apple Mail.
Related on TokRepo
- AI Tools for API — API services and SDKs for application development
- AI Tools for Automation — Automation tools for email workflows and notifications
Common pitfalls
- You must verify your sending domain with DNS records before sending. Unverified domains are rejected by Resend.
- The free tier has a daily sending limit. Production applications with high email volume need a paid plan.
- React Email templates require server-side rendering. They cannot be used directly in client-side React applications.
- Always check the official documentation for the latest version-specific changes and migration guides before upgrading in production environments.
- For team deployments, establish clear guidelines on configuration and usage patterns to ensure consistency across developers.
Frequently Asked Questions
React Email is a companion library that lets you build email templates using React components. Templates render to cross-client HTML that works in Gmail, Outlook, Apple Mail, and other email clients. It replaces the painful process of writing email HTML with inline styles.
Yes. Resend manages SPF, DKIM, and DMARC configuration for your sending domain. It also handles IP reputation and bounce management to maintain high deliverability rates.
Resend provides official SDKs for Node.js, Python, Ruby, Go, Elixir, and Java. The REST API can be called from any language using standard HTTP requests.
Yes. Resend provides webhooks for delivery, bounce, open, and click events. You configure webhook endpoints in the dashboard and receive real-time notifications for each event.
Resend focuses on developer experience with React Email templates and a simpler API. SendGrid offers a larger feature set including marketing email, but has a more complex API. Resend is designed specifically for transactional email use cases.
Citations (3)
- Resend GitHub— Resend is a developer-first email API with 15,000+ stars
- React Email— React Email templates for building emails with components
- Resend Documentation— Transactional email API documentation
Related on TokRepo
Source & Thanks
Discussion
Related Assets
Mailpit — Email and SMTP Testing Tool for Developers
Mailpit is a lightweight, self-hosted email testing tool with a modern web UI, SMTP server, and REST API that captures all outgoing mail so developers can inspect messages without sending them to real recipients.
React Email — Build and Send Emails Using React
React Email lets developers create beautiful HTML emails with React components, preview in browser, and send via Resend, Nodemailer, or any ESP.
Resend Audiences — Manage Email Lists from AI Agents
Resend Audiences API lets agents add, remove, segment, unsubscribe email recipients. Tag-based segments. Compliant unsubscribe built in.
Preact — Fast 3kB React Alternative with Same Modern API
Preact is a fast 3kB alternative to React with the same modern API. Virtual DOM, Components, Hooks — all in a tiny package. Drop-in compatible via preact/compat. Perfect for performance-critical apps and islands architecture.