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

twailer

v0.1.0

Published

Get an email whenever a tweet with a certain hashtag or mention is published.

Readme

Twailer

Get an email whenever a tweet with a certain hashtag or mention is published.

Workflow

Subscribe

If you want to get email updates for some hashtag or mention, simply send an email to [email protected] with the hashtag (including #) or mention (including @) in the subject field. If the subscription was successful, you will receive a confirmation email.

Unsubscribe

If you no longer want to receive email updates, you can unsubscribe in a similar fasion: send an email to [email protected]. Supplying the hashtag or mention in the subject field is optional. If you do not supply any, all your subscriptions will be removed.

Requirements

  • A mailserver (I am using postfix)
  • A Redis server
  • NodeJS
  • Twitter API credentials (to be filled in in config.js)

Installation

This installation guide is intended for Ubuntu and postfix. If you are using another MTA, you will have to figure out how to install this yourself. Installation is not that difficult ;)

First, lets make sure all the requirements are satisfied.

apt-get install postfix redis-server nodejs

Now, let's install the source files

mkdir -p /path/to/target/location && cd /path/to/target/location
npm install twailer

Next, we need to configure postfix. First, we need a new transport method. In master.conf, add

twailer   unix  -       n       n       -       -       pipe
  flags=FR user=twailer argv=/path/to/twailer/bin/twailer
  

Because your node installation may be different from mine, you might need to change the shebang. You could use /usr/bin/env node but then you will need to configure postfix to pass the $PATH variable.

We want emails sent to (un)[email protected] delivered on this machine, so we need to add a mailbox domain in main.cf

virtual_mailbox_domains = domain.tld [other domains]

We don't want to receive these mails in an inbox, we want them delivered to our new transport. In main.cf, configure the location for the transport map.

transport_maps = hash:/etc/postfix/transport

In /etc/postfix/transport, add the following lines:

[email protected]    twailer:
[email protected]  twailer:

Finally, we need to reload postfix. Don't forget to convert the transport map to Berkeley DB with postmap.

postmap /etc/postfix/transport
postfix reload

You're all set! You can now process incoming subscription mails.

To use the application, start the twailer process.

node twailer.js 

Questions, Pull Requests

Open an issue