projects / a project

library · 2026

resend-ecommerce

Starter kit of e-commerce transactional email templates built with Resend + React Email.

Overview

resend-ecomemerce

This project is a starter kit of e-commerce transactional email templates built with Resend + React Email.

The idea came from a simple observation: every purchase triggers a predictable sequence of emails (order created, payment confirmed, shipped, delivered). I looked for a ready-made template for this flow and couldn’t find one, so I built it.

Updates

April 2026: migrated to React Email 6

React Email 6 was released with a unified package structure. All components previously imported from @react-email/components are now available directly from react-email. This project has been updated to reflect that change.

# before
import { Button, Html, Head, render } from "@react-email/components"
 
# after
import { Button, Html, Head, render } from "react-email"

What’s included

  • 4 transactional templates (core purchase flow)
  • UI to configure and preview emails
  • Action to send a test email using the Resend API
  • Automated tests for utilities and template rendering

Getting started

  1. Clone the repository

    git clone https://github.com/imnotannamaria/resend-ecommerce.git

  2. Install dependencies

    npm install

  3. Configure the API key

    Create/edit .env.local:

    RESEND_API_KEY=re_xxxxxxxxx

  4. Run the project

    npm run dev

  5. Open in the browser

    Go to http://localhost:3000 to preview, customize, and send templates.

Tech stack

Most of the technologies used here match Resend’s internal stack.

Reference:

http://resend.com/handbook/engineering/what-is-our-tech-stack

  • Next.js 15
  • React 19
  • TypeScript
  • React Email
  • Resend
  • Hono API routes (with hono/vercel).
  • Radix UI Themes Components for the configuration UI.
  • Tailwind CSS v4 Styling.
  • React Hook Form + Zod Forms and validation.
  • Sonner Toasts for feedback.
  • Lucide React Icons.
  • Geist Font.
  • Vitest Unit and integration tests.
  • Biome Linting and formatting.
  • Husky + lint-staged Pre-commit hooks.

Prototyping

Before implementing, I sketched the flow and the UI wireframe in Excalidraw.

Screen layout:

  • Configuration panel (left)
  • Live email preview (center)
  • Style/design panel (right)

resend-ecomemerce-draw

Design

The visuals are based on Resend’s brand.

References:

https://resend.com/brand

AI usage

Product decisions and prototyping were mine. I used AI to speed up repetitive parts, mainly:

  • the 4 templates
  • the 4 preview pages, which follow the same structure

Demo

https://resend-ecommerce.vercel.app/

Roadmap (product direction)

This starter kit covers the core transactional flow. The opportunity is to grow it into a complete email foundation for e-commerce.

New templates

  • Abandoned Cart
  • Welcome Series
  • Product Review Request

How this can help Resend

  • Reduces engineering time for teams that need production-ready e-commerce emails
  • Attracts new users (e.g., Shopify/BigCommerce and custom stores)
  • Reduces churn by improving time-to-value and email quality
  • Reinforces positioning in the e-commerce segment

Conclusion

Resend E-commerce is a production-oriented starter kit I built to prototype and develop an e-commerce email experience end-to-end, from templates to a customization UI and a real send flow.

It’s also a practical way to learn from Resend’s approach to developer experience and product quality, which I genuinely admire.

https://resend-ecommerce.vercel.app/

https://github.com/imnotannamaria/resend-ecommerce

Contact

If you’d like to chat, email me at anna.maria.dev.br@gmail.com.

Anna Maria

Software engineer from Brazil.

I build things end to end: UI → front (web / mobile) → back → AI → deploy, and I have been doing it for about 5 years, in startups and in big company teams.

This site is open source.

Three ways to read it: Front, Back and IA.

Abimaela, my cat, lives in the corner and reacts to what you do.

Built with Next.js, MDX and Postgres, on the entrepta design system.

places you can go from here

a game, with a board
  • Memory game: turn two cards, and a pair found is a page found.
  • The 10 fastest rounds go on the board, with the name of who played.
time:00:00moves:000
Click a card to start. The clock starts with it.

board· top 10

Reading the board...

© anna maria, 2026one line changed in the license: all rights reserved forkablefork your own