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

@deenruv/email-plugin

v1.0.12

Published

Generates and sends transactional emails based on Deenruv server events, using [MJML](https://mjml.io/) + [Handlebars](https://handlebarsjs.com/) templates (or [React Email](https://react.email/)) and [Nodemailer](https://nodemailer.com/) for delivery.

Readme

@deenruv/email-plugin

Generates and sends transactional emails based on Deenruv server events, using MJML + Handlebars templates (or React Email) and Nodemailer for delivery.

Installation

pnpm add @deenruv/email-plugin

Configuration

import { defaultEmailHandlers, EmailPlugin } from '@deenruv/email-plugin';
import path from 'path';

const config = {
  plugins: [
    EmailPlugin.init({
      handlers: defaultEmailHandlers,
      templatePath: path.join(__dirname, 'static/email/templates'),
      transport: {
        type: 'smtp',
        host: 'smtp.example.com',
        port: 587,
        auth: {
          user: 'username',
          pass: 'password',
        },
      },
    }),
  ],
};

Dev Mode

EmailPlugin.init({
  devMode: true,
  route: 'mailbox',
  handlers: defaultEmailHandlers,
  templatePath: path.join(__dirname, 'static/email/templates'),
  outputPath: path.join(__dirname, 'test-emails'),
});

In dev mode, emails are saved as HTML files and a web-based mailbox UI is available at the configured route (e.g. http://localhost:6100/mailbox).

Options:

| Option | Type | Default | Description | |--------|------|---------|-------------| | handlers | EmailEventHandler[] | required | Event handlers that define which events trigger emails | | templatePath | string | - | Path to MJML/Handlebars email templates (deprecated, use templateLoader) | | templateLoader | TemplateLoader | FileBasedTemplateLoader | Custom template loader for dynamic template resolution | | transport | EmailTransportOptions \| fn | required | Email transport config (SMTP, SES, sendmail, file, none) or dynamic function | | globalTemplateVars | object \| fn | - | Variables available to all templates (static or async function with RequestContext) | | emailSender | EmailSender | NodemailerEmailSender | Custom email sending implementation | | emailGenerator | EmailGenerator | HandlebarsMjmlGenerator | Custom email generation implementation | | useReactEmail | boolean | false | Use React Email for template rendering |

Transport types: smtp, ses (AWS SES), sendmail, file, none, testing

Features

  • MJML + Handlebars templates - Responsive email markup with dynamic data
  • React Email support - Alternative template engine using React components
  • Default event handlers - Order confirmation, email verification, password reset, email change
  • Customizable handlers - Extend/modify default handlers or create entirely new ones
  • Dynamic SMTP settings - Channel-aware transport configuration via async function
  • Job queue integration - Emails processed via the Deenruv job queue with retry support
  • Dev mailbox - Web-based email preview UI for development
  • Global template variables - Static or async variables (e.g. storefront URL, theme colors)
  • Template helpers - Built-in formatMoney and formatDate Handlebars helpers
  • File attachments - Support for email attachments via Nodemailer
  • AWS SES support - Native SES transport option

Admin UI

Server-only plugin. No Admin UI extensions.

API Extensions

No GraphQL API extensions. Email sending is triggered by internal Deenruv events.