Discover / Marketing
Resend Email API Node SDK
by resendTypeScript
Modern email API SDK for developers to send transactional emails and marketing broadcasts.
Maturity: stable because 4y old, v6.18.1 released 6d ago. Derived from release and commit history, not a rating.
- Stars
- 939
- Forks
- 83
- Downloads / mo
- 34.2M
- Last commit
- 2026-07-31
- License
- MIT
- Open issues
- 13
Market and trust evidence
Edition not yet matchedNo exact skills.sh identity match is available for this repository. Repository adoption and freshness remain visible above; install momentum is not inferred.
Trust analysis is a screening signal, not a security warranty. Read the ranking and trust methodology.
In practice
Written by AI from this repository’s README · high confidenceSending transactional email from a JavaScript app otherwise means raw HTTP calls and hand written HTML templates.
Use it when
When a Node, Next.js, Remix, Nuxt, Express, Hono, Bun or Astro app needs to send email through Resend.
Not the right pick when
Sending from your own domain requires verifying that domain in the Resend dashboard first.
Capabilities
- Send plain text email in a few lines
- Send email with custom HTML content
- React components used as email templates
- Framework guides for Next.js, Remix, Nuxt and others
- jsx runtime option for files without JSX transpilation
Requirements
- An API key from the Resend Dashboard
- A verified domain to send from your own domain
Cost: Open source with a paid cloud option
Install
Derived from the published package name in the repository, not from a model.
Video walkthroughs
Send marketing emails via API with Resend
Build an AI Invoice Platform using React, Resend, Supabase | PDF Export (Readdy AI)
Third-party YouTube uploads matched to this tool by title, channel and repository name on 2026-08-03. Not made, reviewed or endorsed by SkillPilot. View counts and publish months are as of the match date and the month is approximate. Nothing loads from YouTube until you press play.
What the repository ships
Detected from the actual files in the repository root.
Latest release v6.18.1
Published 2026-07-28
What's Changed
- feat(webhooks): add suppression webhooks by @Cisneiros in https://github.com/resend/resend-node/pull/1031
- chore: remove tegami release process by @gabrielmfern in https://github.com/resend/resend-node/pull/1033
- fix: remove object field from suppression list entry type by @felipefreitag in https://github.com/resend/resend-node/pull/1032
- fix(deps): update react monorepo to v19.2.8 by @renovate[bot] in https://github.com/resend/resend-node/pull/1036
- chore: bump version to 6.18.1 by @Cisneiros in https://github.com/resend/resend-node/pull/1038
Full Changelog: https://github.com/resend/resend-node/compare/v6.18.0...v6.18.1
Tags
README
<p align="center">
<a href="https://resend.com/docs/send-with-nodejs">Quickstart Docs</a>
</p>
<p align="center">
Framework guides
</p>
<p align="center">
<a
- <a href="https://resend.com/docs/send-with-nextjs">Next.js</a>
- <a href="https://resend.com/docs/send-with-remix">Remix</a>
- <a href="https://resend.com/docs/send-with-nuxt">Nuxt</a>
- <a href="https://resend.com/docs/send-with-express">Express</a>
- <a href="https://resend.com/docs/send-with-redwoodjs">RedwoodJS</a>
- <a href="https://resend.com/docs/send-with-hono">Hono</a>
- <a href="https://resend.com/docs/send-with-bun">Bun</a>
- <a href="https://resend.com/docs/send-with-astro">Astro</a>
</p>
Resend Node.js SDK
Node.js library for the Resend API.
Install
npm install resend
# or
yarn add resend
Examples
Send email with:
Setup
First, you need to get an API key, which is available in the Resend Dashboard.
import { Resend } from 'resend';
const resend = new Resend('re_xxxx...xxxxxx');
Usage
Send your first email:
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`);
[!NOTE]
In order to send from your own domain, you will first need to verify your domain in the Resend Dashboard.
Send email using HTML
Send an email custom HTML content:
const { data } = await resend.emails.send({
from: 'you@example.com',
to: 'user@gmail.com',
replyTo: 'you@example.com',
subject: 'hello world',
html: '<strong>it works!</strong>',
});
console.log(`Email ${data.id} with custom HTML content has been sent.`);
Send email using React
Start by creating your email template as a React component.
import React from 'react';
export default function EmailTemplate({ firstName, product }) {
return (
<div>
<h1>Welcome, {firstName}!</h1>
<p>Thanks for trying {product}. We’re thrilled to have you on board.</p>
</div>
);
}
Then import the template component and pass it to the react property.
import EmailTemplate from '../components/EmailTemplate';
const { data } = await resend.emails.send({
from: 'you@example.com',
to: 'user@gmail.com',
replyTo: 'you@example.com',
subject: 'hello world',
react: <EmailTemplate firstName="John" product="MyApp" />,
});
console.log(`Email ${data.id} with a React template has been sent`);
[!NOTE]
If you're sending emails from a file that doesn't have JSX transpilation set up (e.g., in a
.js/.tsfile instead of JSX/TSX), use React'sjsxruntime function instead of passing the component as JSX:```js
import { jsx } from 'react/jsx-runtime'
import EmailTemplate from '../components/EmailTemplate';
await resend.emails.send({
from: 'you@example.com',
to: 'user@gmail.com',
replyTo: 'you@example.com',
subject: 'hello world',
react: jsx(EmailTemplate, { firstName:"John", product:"MyApp" }),
});
```
License
MIT License