ScriptsApr 7, 2026·2 min read

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.

SC
Script Depot · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

npm install resend
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 free API key at resend.com.


Intro

Resend is a modern email API built for developers with 15,000+ GitHub stars. It combines simple sending APIs, React Email templates (build emails like React components), webhooks for delivery tracking, and built-in deliverability monitoring. Send transactional emails in 3 lines of code without dealing with SMTP, SPF, DKIM, or email rendering quirks. Best for developers building web apps who need reliable email delivery with beautiful templates. Works with: any language (REST API), TypeScript/Python/Go/Ruby SDKs. Setup time: under 3 minutes.


Why Resend Over SendGrid/SES

Feature Resend SendGrid AWS SES
Setup time 3 minutes 30 minutes 1 hour
Template system React Email Handlebars Raw HTML
Dashboard Beautiful, real-time Cluttered Minimal
Free tier 3,000 emails/month 100/day 62,000/month
Developer experience Excellent OK Poor

React Email Templates

// emails/welcome.tsx
import { Html, Head, Body, Container, Text, Button } from "@react-email/components";

export default function WelcomeEmail({ name }: { name: string }) {
  return (
    <Html>
      <Head />
      <Body style={{ fontFamily: "sans-serif" }}>
        <Container>
          <Text>Hi {name}, welcome to our platform!</Text>
          <Button href="https://app.example.com" style={{ background: "#3b82f6", color: "#fff", padding: "12px 24px" }}>
            Get Started
          </Button>
        </Container>
      </Body>
    </Html>
  );
}
import WelcomeEmail from "./emails/welcome";

await resend.emails.send({
  from: "hello@example.com",
  to: "user@example.com",
  subject: "Welcome!",
  react: WelcomeEmail({ name: "Alice" }),
});

Webhooks

// Track delivery events
app.post("/webhooks/resend", (req, res) => {
  const { type, data } = req.body;
  // type: "email.delivered" | "email.bounced" | "email.opened" | "email.clicked"
  console.log(`Email ${data.email_id}: ${type}`);
});

Multi-Language SDKs

# Python
from resend import Resend
client = Resend(api_key="re_...")
client.emails.send({"from": "...", "to": "...", "subject": "...", "html": "..."})
// Go
client := resend.NewClient("re_...")
client.Emails.Send(&resend.SendEmailRequest{From: "...", To: []string{"..."}, Subject: "...", Html: "..."})

Key Stats

  • 15,000+ GitHub stars
  • React Email templates
  • 3,000 free emails/month
  • Webhooks for delivery tracking
  • TypeScript, Python, Go, Ruby SDKs

FAQ

Q: What is Resend? A: A modern email API with React Email templates, delivery webhooks, and developer-first design. Send transactional emails in 3 lines of code.

Q: Is Resend free? A: Free tier: 3,000 emails/month, 1 domain. Pro plans from $20/month.

Q: Can I use Resend without React? A: Yes, pass raw HTML or plain text. React Email is optional.


🙏

Source & Thanks

Created by Resend. Licensed under MIT.

resend — stars 15,000+

Thanks for making email actually pleasant to work with.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets