
Security News
TC39 Advances Temporal to Stage 4 Alongside Several ECMAScript Proposals
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.
Framework guides
Next.js - Remix - Nuxt - Express - RedwoodJS - Hono - Bun - Astro
Node.js library for the Resend API.
npm install resend
# or
yarn add resend
Send email with:
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');
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 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(`Emaill ${data.id} with customer HTML content has been sent.`);
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: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" }), });
MIT License
FAQs
Node.js library for the Resend API
The npm package resend receives a total of 2,584,756 weekly downloads. As such, resend popularity was classified as popular.
We found that resend demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.

Research
/Security News
Since January 31, 2026, we identified at least 72 additional malicious Open VSX extensions, including transitive GlassWorm loader extensions targeting developers.

Research
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.