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

bulk-email-bullmq-runner

v1.0.0

Published

A bulk email sender using BullMQ, Redis, and Nodemailer with round-robin SMTP.

Readme

Bulk Email BullMQ Runner

A robust and scalable bulk email sender built on top of BullMQ, Redis, and Nodemailer. It efficiently handles queueing and uses a round-robin strategy across multiple SMTP accounts to send emails reliably. It also comes with a built-in UI Dashboard (via @bull-board) to monitor your queues.

Features

  • Queue Management: Powered by BullMQ for high-performance job queueing.
  • Round-Robin SMTP: Uses multiple SMTP credentials to avoid hitting rate limits on a single account.
  • CSV Support: Easily read recipients from a .csv file.
  • Admin Dashboard: Visual dashboard to monitor active, completed, failed, and delayed jobs.
  • Reusable as a Package: Can be run as a standalone app or imported into your own Node.js projects.

Prerequisites

  • Node.js (v14 or higher recommended)
  • Redis Server (You can use the provided docker-compose.yml to spin one up)

🚀 Standalone Usage

1. Clone & Install

git clone <your-repo-url>
cd BullMQ
npm install

2. Configure Environment

Rename .env.example to .env and fill in your details:

REDIS_HOST=127.0.0.1
REDIS_PORT=6379

[email protected]
SMTP_PASS_1=your_first_app_password
[email protected]
SMTP_PASS_2=your_second_app_password

PORT=3000

3. Start Redis

If you have Docker installed, you can start a local Redis instance easily:

docker-compose up -d

4. Run the Services

You need to run the Worker (to process jobs), the Dashboard (to view queues), and the Producer (to add jobs).

Open three separate terminals and run:

Terminal 1: Start the Dashboard

node dashboard.js
# UI will be available at http://localhost:3000/admin/queues

Terminal 2: Run the Producer

# Make sure you have your emails in emails.csv (with an 'email' column header)
node producer.js

Terminal 3: Start the Worker

node worker.js
# Worker will wait for jobs in the background


## 📦 Using as a Package (NPM Module)

### Installation
```bash
npm install https://github.com/Ash469/bullMQ-email
# or 
# npm install bulk-email-bullmq-runner

Usage Example

You can import the core functions into any of your existing Node applications:

const { loadEmailsAndEnqueue, startWorker, startDashboard } = require('bulk-email-bullmq-runner');

// 1. Start the Dashboard UI on a custom port
startDashboard(
  { host: '127.0.0.1', port: 6379 }, // Redis Options
  4000 // Port for the dashboard
);

// 2. Start the Worker with custom SMTP credentials
startWorker(
  { host: '127.0.0.1', port: 6379 }, // Redis Options
  [
    { user: '[email protected]', pass: 'pass1' },
    { user: '[email protected]', pass: 'pass2' }
  ]
);

// 3. Enqueue Emails from a CSV file
loadEmailsAndEnqueue('path/to/your/list.csv', { host: '127.0.0.1', port: 6379 })
  .then(() => console.log('All emails queued up!'))
  .catch(console.error);

Contributing

Feel free to open issues or submit pull requests for any improvements!

Made by Ayush Shandilya