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

@feathers-baas/plugin-notifications

v0.2.1

Published

Notifications plugin for feathers-baas — BullMQ-backed email drivers (SMTP, Resend, SendGrid, Brevo)

Readme

@feathers-baas/plugin-notifications

Notification plugin for feathers-baas — BullMQ-backed email delivery with SMTP, Resend, SendGrid, and Brevo drivers.

Installation

pnpm add @feathers-baas/plugin-notifications

How it works

Auth events (verify email, reset password, etc.) are routed through the notification system. Two delivery modes:

  • Direct mode (no Redis) — drivers called synchronously in the request path. Suitable for development and API-based drivers.
  • Queue mode (with Redis) — jobs enqueued in BullMQ with automatic retries and exponential backoff. Best for production.

If no driver env vars are configured, auth events are logged to console.

Setup

Add driver env vars to .env:

# Pick one (or more):

# SMTP
SMTP_URL=smtp://user:pass@localhost:1025
SMTP_FROM_NAME=My App
[email protected]

# Resend
RESEND_API_KEY=re_xxxxxxxxxxxx
RESEND_FROM_NAME=My App
[email protected]

# SendGrid
SENDGRID_API_KEY=SG.xxxxxxxxxxxx
SENDGRID_FROM_NAME=My App
[email protected]

# Brevo
BREVO_API_KEY=xkeysib-xxxxxxxxxxxx
BREVO_FROM_NAME=My App
[email protected]

For queue mode, add Redis:

REDIS_URL=redis://localhost:6379

No code changes needed — @feathers-baas/core auto-configures drivers from env vars.

Email drivers

| Driver | Class | Env var | Use case | |----------|-----------------|--------------------|-----------------------------------| | SMTP | SMTPDriver | SMTP_URL | Self-hosted SMTP, Mailtrap | | Resend | ResendDriver | RESEND_API_KEY | Managed transactional email | | SendGrid | SendGridDriver| SENDGRID_API_KEY | Twilio SendGrid | | Brevo | BrevoDriver | BREVO_API_KEY | Brevo (formerly Sendinblue) |

All configured drivers are active simultaneously.

Auth events handled automatically

| Event | Trigger | |--------------------|----------------------------| | Verify email | User registers | | Resend verification| User requests re-send | | Reset password | User requests reset | | Password changed | After successful reset | | Email change | Identity change request |

Exports

// Drivers
import { SMTPDriver, ResendDriver, SendGridDriver, BrevoDriver } from '@feathers-baas/plugin-notifications'

// Driver registry
import { DriverRegistry } from '@feathers-baas/plugin-notifications'

// Notifier factories
import { createBullMQNotifier, createDirectNotifier } from '@feathers-baas/plugin-notifications'

// Queue utilities
import { createNotificationQueue, createNotificationWorker } from '@feathers-baas/plugin-notifications'

Plugin interface

This package exports a FeathersBaasPlugin default export and is auto-discovered by @feathers-baas/core when listed as a dependency. Drivers are configured automatically from env vars by core's configureNotifications().

License

MIT