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

maildrip

v1.0.3

Published

Interact with Maildrip's apis using this simple Nodejs module. Create, edit and delete campaigns, add and modify recipients to your recipients' list and more from your Node.js environment.

Readme

maildrip

Interact with Maildrip's apis using this simple Nodejs module. Create, edit and delete campaigns, add and modify recipients to your recipients' list and more from your Node.js environment.

Installation

# using npm
npm install maildrip

# using yarn
yarn add maildrip

Usage

const Maildrip = require('maildrip');

const maildrip = Maildrip({
  api_key: XXXXXXXXXXXXXXX,
  access_secret: XXXXXXXXXXXXXXX
})

Note: You can get your keys from your Maildrip dashboard. For more information, read our api documentation.

Examples

Get User profile details

Using Promises

maildrip.user.getAccountData()
 .then((userdata) => console.log(userdata));

Using async/await

const getUserData = async function () {
  const userData = maildrip.user.getAccountData()
  console.log(userData);
};

getUserData()

Create a Campaign

Using Promises

maildrip.campaign.create("My amazing campaign", {
    interval: "10",
    unit: "minutes"
})
.then((campaign) => console.log(campaign));

Using async/await

const createCampaign = async function () {
  const campaign = maildrip.campaign.create("My amazing campaign", {
    interval: "10",
    unit: "minutes"
  })
  console.log(campaign);
}
createCampaign()

Note: The second parameter can either be an object or a number. In cases where number is specified, the unit default will be minutes

Add a Recipient to a Campaign

Using Promises

maildrip.recipient.add(campaignId, {
     name: "My recipient",
     email: "[email protected]"
})
.then((recipient) => console.log(recipient));

Using async/await

const addRecipient = async function () {
  const recipient = await maildrip.recipient.add(campaignId, {
     name: "My recipient",
     email: "[email protected]"
  })
  console.log(recipient);
}
addRecipient()

Note: You can find your campaignId in the campaign settings tab on your Maildrip dashboard.

More APIs?

Can't get enough? Read more of our api documentation.