npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@adaptive-sm/email-generator

v0.7.0

Published

A lightweight, self-hostable service for rendering HTML emails with React Email

Downloads

132

Readme

📧 Email Generator Microservice

A lightweight, self-hostable service for rendering HTML emails with React Email.

  • Hassle-free & maintenance-free – runs entirely on the free tier of Cloudflare Workers.
  • Simple to use – perfect for login codes, registration flows, and other transactional emails.
  • Flexible – develop locally with a Bun server, then deploy serverlessly with zero configuration.
  • Clean separation – does not pollute your project with react or react-email imports or dependencies.

Whether you need a quick drop-in solution or a fully open-source foundation for your project, this microservice makes email generation easy and reliable.

Quick Links

  • code - https://github.com/adaptive-shield-matrix/email-generator
  • npm - https://www.npmjs.com/package/@adaptive-sm/email-generator
  • react email docs - https://react.email/docs/getting-started/manual-setup

Features

  • Renders HTML and plain text email templates.
  • Supports internationalization (English and German).
  • Validates input using Valibot schemas.
  • Includes server timing headers for performance monitoring.
  • Endpoints: /renderEmailTemplate/signUpV1, /renderEmailTemplate/signInV1, and /renderEmailTemplate/orgInvitationV1.

Templates

| Name | Description | Image | | ---------------- | --------------------------------- | -------------------------------------------------------------------------------------------------- | | signUpV1 | Sign-up / Registration | signUpV1 | | signInV1 | Sign-in / Login / Forgot password | signInV1 | | orgInvitationV1 | Organization invitation | orgInvitationV1 | | passwordChangeV1 | Change/Reset Password | passwordChangeV1 | | emailChangeV1 | Change Email | EmailChangeV1 |

Prerequisites

  • Node.js (for package management) or Bun.
  • Cloudflare account (for Workers deployment).

Local Development

  1. Clone the repository.
  2. Install dependencies:
    bun install

With Bun Server

  • Start the development server:

    bun run start

    The server runs on http://localhost:3055 (port configurable via src/server/serverPortBun.ts).

  • For React Email preview (optional):

    bun run dev

    This starts the preview server at http://localhost:3055 for template development.

With Cloudflare Workers

  • Start the local Worker development server:

    bun run dev:worker

    The Worker runs on http://localhost:8787 (default Wrangler port).

  • To test endpoints, send POST requests to:

    • http://localhost:8787/renderEmailTemplate/signUpV1
    • http://localhost:8787/renderEmailTemplate/signInV1
    • http://localhost:8787/renderEmailTemplate/orgInvitationV1

Testing

Run tests with Bun:

bun run test

Or in watch mode:

bun run test:w

Tests cover API rendering for login codes (extend for registration as needed).

Deployment to Cloudflare Workers

  1. Login to Cloudflare:

    wrangler login
  2. Configure Account ID (if needed, add to wrangler.toml):

    wrangler whoami

    Then update wrangler.toml with account_id = "your-account-id".

  3. Deploy:

    bun run deploy

    (Or npx wrangler deploy.)

  4. Monitor:

    wrangler tail email-generator-worker