Resend

Tools & Infrastructure 💻 TypeScript ⚖️ MIT 🟢 Actively maintained
948 stars

Resend Node.js SDK is a library for sending emails via the Resend API from Node.js applications. It simplifies email sending with support for plain text, HTML, and React templates. It is for developers building Node.js, Next.js, Express, or other JavaScript-based projects who need transactional or marketing email delivery.

✨ Key features

  • Send emails with plain text or HTML content.
  • Use React components as email templates.
  • Simple API with async/await support.
  • Supports reply-to and custom sender addresses.
  • Integrates with popular frameworks like Next.js and Express.

🎯 Use cases

  • Send transactional emails like welcome or password reset.
  • Send marketing newsletters with custom HTML.
  • Build email templates with React components.
  • Integrate email sending into Node.js or Next.js apps.

📦 Installation

🧰 Requirements: Requires Node.js and an API key from the Resend Dashboard.

npm install resend
or
yarn add resend

🚀 Usage

import { Resend } from 'resend';
const resend = new Resend('re_xxxx...xxxxxx');

const { data } = await resend.emails.send({
  from: 'you@example.com',
  to: 'user@gmail.com',
  replyTo: 'you@example.com',
  subject: 'hello world',
  text: 'it works!',
});

console.log(`Email ${data.id} has been sent`);

⚠️ Good to know

To send from your own domain, you must verify the domain in the Resend Dashboard.

❓ FAQ

How do I get an API key?

You can get an API key from the Resend Dashboard at https://resend.com/api-keys.

Can I send emails with custom HTML?

Yes, you can pass an html property to the send method with your custom HTML content.

Can I use React components as email templates?

Yes, you can pass a React component to the react property, but you need to ensure JSX transpilation is set up or use jsx from react/jsx-runtime.

What if I want to send from my own domain?

You need to verify your domain in the Resend Dashboard before sending from it.

📊 Repository

Stars★ 948
Forks🍴 88
Open issues🐛 18
Last commit🕒 Sep 4, 2026
Created📅 Jul 2022
Language💻 TypeScript
License⚖️ MIT

🤖 Overview, features, install steps and FAQ were generated from the project's README on Sep 4, 2026. Always check the original source before running commands.