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

@dokebi/mail

v0.4.7

Published

Mail for Dokebi apps: EJS templates per locale, SMTP (nodemailer, STARTTLS required) and Amazon SES v2, queued sending through @dokebi/job with sealed data, deterministic Message-IDs, a development inbox and test helpers.

Readme

@dokebi/mail

Mail for Dokebi apps (D-0078):

  • Templates in src/shared/mail/<name>/<locale>/ (subject.ejs, html.ejs, text.ejs) with layouts, compiled once at start with the EJS engine of @dokebi/template-ejs. HTML escapes data; subjects and text do not; a subject with a line break is refused. Without text.ejs the text part is made from the HTML (a tokenizer: links as text (url), lists, quotes). Helpers $url(path) and $date(value). Modules can contribute template folders; the project's win.
  • Transports: smtp through nodemailer — STARTTLS required (465: implicit TLS), TLS 1.2 or newer, certificate verification, a connection pool, timeouts, DKIM; ses through the SES v2 HTTPS API with SigV4 (no AWS SDK), configuration sets and tags; log (a development inbox) and capture (tests), both refused in production; more by name from the entry file.
  • Queued sending through @dokebi/job: mail.queue(message) checks the message, encrypts its sealed values (links, tokens) into the job with AES-256-GCM bound to the job id, the template, the recipients and the sender (a job rewritten to other addresses is refused, never sent), and submits it; the plugin's own handler renders and sends. Without job, queue is refused — never sent synchronously instead. mail.send(message) sends at once (scripts, tests).
  • At-least-once delivery with duplicate suppression: the Message-ID is derived from the idempotency key (the job id); with @dokebi/redis a "sent" marker suppresses deliveries after a successful send has been recorded. A crash before that marker, a marker-store failure or concurrent sends can still produce duplicates; this is not exactly once. SMTP 5xx and other permanent failures go straight to the job's dead-letter stream; 4xx, network and TLS trouble are retried. A per-transport rate limit (shared through Redis) delays mail instead of failing it.
  • Safety: strict addresses (punycode for international domains), no CR, LF or NUL in names, subjects, header values or attachment names, an allow-list of headers, senders only from allowedFrom, bulk mail only with List-Unsubscribe (One-Click for https). Logs carry masked recipients (k***@example.com) and never a body or a sealed value.
  • Development and tests: a loopback-only inbox and template preview at /_dokebi/mail (absent in production), and @dokebi/mail/testing with outbox, waitFor, linkIn, clear and captureTransport().
npx dokebi add @dokebi/mail   # writes a generated secret into dokebi.yaml (dokebi-mail.secrets)

Options, templates, the message shape, errors, logs, the development inbox, testing and the extension: AI.md. License: MIT.

CLI templates and local development

The catalog provides mail. The blog/API recipe asks --mail none|mailpit|smtp|ses; Mailpit prepares a local inbox and durable queue in compose.mail.yaml. SMTP/SES use settings supplied in dokebi.yaml. Install adds an editable welcome template in src/shared/mail/. Render its sample without network connections with npx dokebi mail preview welcome --locale en --json. See the AI guide for configuration, preservation and check rules.