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

node-mailwizz

v2.1.5

Published

MailWizz implementation

Readme

NPM version

Node.JS Integration for Mailwizz

Harness the power of MailWizz, the full-featured, self-hosted email marketing software that's been battle-tested since 2013.

With top-notch support, extensive documentation, and a developer-friendly environment, MailWizz integrates seamlessly with a plethora of third-party services like Sendgrid, Amazon SES, and Mailgun.

Documentation

View Full API Documentation

Interactive OpenAPI documentation with code examples for all endpoints.

Installation

npm install node-mailwizz --save

Configuration

const config = {
  publicKey: "yourPublicKey",
  secret: "yourSecretKey",
  baseUrl: "https://your-mailwizz-instance.com/api",
  timeout: 15000,
  userAgent: "LawActive-Mailer/1.0"
};

Quick Start

Create a Subscriber

import { ListSubscribers } from "node-mailwizz";

const subscribers = new ListSubscribers(config);

subscribers
  .create({
    listUid: "YOUR-LIST-ID",
    data: {
      EMAIL: "[email protected]",
      FNAME: "John",
      LNAME: "Doe"
    }
  })
  .then(result => console.log("Subscriber created:", result))
  .catch(err => console.error("Error:", err));

Send a Transactional Email

import { TransactionEmail } from "node-mailwizz";

const transactional = new TransactionEmail(config);

transactional
  .create({
    toName: "John Doe",
    toEmail: "[email protected]",
    fromName: "My App",
    subject: "Welcome!",
    body: "<html><body><h1>Welcome!</h1></body></html>",
    plainText: "Welcome!",
    sendAt: "2024-01-01 10:00:00"
  })
  .then(result => console.log("Email queued:", result))
  .catch(err => console.error("Error:", err));

Create a Campaign

import { Campaigns, CreateCampaignType } from "node-mailwizz";

const campaigns = new Campaigns(config);

campaigns
  .create({
    name: "My Campaign",
    type: CreateCampaignType.REGULAR,
    fromName: "John Doe",
    fromEmail: "[email protected]",
    subject: "Newsletter",
    replyTo: "[email protected]",
    sendAt: "2024-01-01 10:00:00",
    listId: "YOUR-LIST-ID",
    templateId: "YOUR-TEMPLATE-ID"
  })
  .then(result => console.log("Campaign created:", result))
  .catch(err => console.error("Error:", err));

Available APIs

| API | Description | |-----|-------------| | Lists | Manage mailing lists | | ListSubscribers | Manage subscribers | | ListFields | Custom fields for lists | | ListSegments | Segment management | | Campaigns | Email campaigns | | CampaignBounces | Bounce management | | CampaignTracking | Track opens/clicks | | Templates | Email templates | | TransactionEmail | Transactional emails | | Countries | Countries and zones | | Customers | Customer management | | Health | Lightweight ping (read-only) |

For detailed documentation and all available methods, see the API Documentation.

Contributing

Got an idea or facing an issue? Jump right in with a pull request or spark a discussion with an issue.

Acknowledgments

A huge shoutout to the brilliant minds behind the evolution of this library:

  • ntlzz93: For crafting the original library that started it all.
  • chgonzalez9: For helping with the migration to TypeScript.
  • kodjunkie: For contributing the unsubscribe method.

License

This project is licensed under the ISC License - see the LICENSE.md file for details.