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

@nymbalhq/email-ses

v1.6.0

Published

Amazon SES email for Nymbal: the `ses` email provider (SES SMTP, SNS bounce and complaint notifications)

Readme

@nymbalhq/email-ses

The ses email provider for Nymbal. It sends every transactional mail over Amazon SES's SMTP interface, and takes the bounce and complaint notifications SES publishes to an SNS topic, so a permanent bounce or a spam complaint stops alert mail to that address. It needs no AWS SDK.

npm install @nymbalhq/email-ses nodemailer
// nymbal.config.ts
commerce: {
  email: {
    provider: 'ses',
    config: {
      from: '[email protected]', // an address on an identity verified in SES
      region: 'us-east-1',
      smtp: { user: env('SES_SMTP_USER'), pass: env('SES_SMTP_PASSWORD') },
      topicArn: 'arn:aws:sns:us-east-1:123456789012:shop-ses-feedback',
    },
  },
}
  • smtp.host defaults to email-smtp.<region>.amazonaws.com and smtp.port to 587 (STARTTLS). For implicit TLS set port: 465, secure: true.
  • smtp.user and smtp.pass are SES SMTP credentials (SES: SMTP settings, Create SMTP credentials), not an IAM access key pair.
  • smtp.user, smtp.pass and topicArn may be left out of the config and saved in the admin's Settings instead.
  • topicArn is the SNS topic below. Without it the store refuses every SNS post and the email slot's health is degraded.

Bounces and complaints

  1. In SNS, create a standard topic, and put its ARN in topicArn.
  2. Add a subscription to it: protocol HTTPS, endpoint <api origin>/api/webhooks/ses, raw message delivery off. The store confirms the subscription itself when SNS posts the confirmation. If that confirmation fails, the subscription stays pending; request confirmation again from the SNS console.
  3. In SES, on the sending identity, set the Bounce and Complaint feedback notifications to the topic (or, with a configuration set, add an SNS event destination for bounces and complaints on it).

A Permanent bounce is recorded as a hard bounce (ses.bounced.v1) and a complaint as ses.complained.v1, one per recipient; both stop alert mail to the address. A Transient or Undetermined bounce is soft and stops nothing. Any other notification on the topic (Delivery, for one) is answered 200 and ignored.

Only a message for the configured topic, signed by SNS with a certificate from an sns.<region>.amazonaws.com URL, is accepted. SNS's retry of a message keeps its MessageId, and the store records each id once. If SNS reports the store unsubscribed, the store logs a warning; subscribe the endpoint again to resume.