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

@uniora/mailer-smtp

v0.14.1

Published

SMTP delivery for UNIORA invitations: configured from .env, with professional multilingual e-mail templates

Readme

@uniora/mailer-smtp

SMTP delivery for UNIORA invitations. It implements InvitationSender from @uniora/core, reads its settings from UNIORA_SMTP_* environment variables and ships professional, responsive, dark-mode-aware templates in English, Spanish, Portuguese, French, German and Italian.

import { createInvitationService } from "@uniora/core";
import { createSmtpInvitationSenderFromEnv } from "@uniora/mailer-smtp";

const sender = createSmtpInvitationSenderFromEnv(process.env, {
  brandName: "Acme",
  brandColor: "#0f766e",
  logoUrl: "https://acme.com/logo.png",
  supportEmail: "[email protected]",
  resolveInviterName: async (identity) => (await db.users.find(identity.subject))?.name,
});
await sender.verify(); // optional startup check: connects and authenticates

const invitations = createInvitationService({ storage, sender, acceptUrl: (t) => `https://app.acme.com/invite/${t}` });

Configuration

| Variable | Default | | | --- | --- | --- | | UNIORA_SMTP_HOST | — | required, bare host name | | UNIORA_SMTP_PORT | 587 | 465 uses implicit TLS, otherwise STARTTLS | | UNIORA_SMTP_SECURE | true only on 465 | force implicit TLS | | UNIORA_SMTP_USER / UNIORA_SMTP_PASS | — | both or neither | | UNIORA_SMTP_FROM | — | required, Name <addr> or addr | | UNIORA_SMTP_REPLY_TO | — | optional | | UNIORA_SMTP_REQUIRE_TLS | true | refuse to send unencrypted | | UNIORA_SMTP_TLS_REJECT_UNAUTHORIZED | true | verify the server certificate |

Anything missing or malformed throws one SmtpConfigError listing every problem — at startup, not on the first invitation.

Behaviour

  • Retries, timeouts and bookkeeping are done by createInvitationService; this package classifies failures: bad credentials and any 5xx/rejected recipient are permanent (no retry), network errors and 4xx are transient.
  • Templates are safe by construction: every interpolated value is escaped, the Subject is forced onto one line, the link must be http(s), the logo https, the brand color a #rrggbb.
  • Own template? Pass template: (message, context) => ({ subject, html, text }). Own provider? Implement InvitationSender yourself — nothing else in UNIORA changes.
  • Each message carries Auto-Submitted: auto-generated and an X-Entity-Ref-ID (invitation id + attempt) for correlating provider logs. The token never appears in headers or logs.

Documentation: Invitations guide and the full index.