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

hubot-immail

v1.1.1

Published

hubot adapter for imMail

Readme

What about start using imMail and Hubot? We can help you. imMail SDK for Hubot is an adapter that connects your Hubot scripts to your imMail team, giving you guys a new fellow: your own bot.

What is Hubot and when should I use it? In short, it makes developing ChatOps-style bots quicker and easier. It’s an application you host on a server wherever you need to and he will listen to the channels he is allowed to on imMail and behaves however you script it to.

Basic Setup

To get started, you’ll need Node.js installed.

You will first want to create a new Hubot project. The simplest way is to use your computer’s terminal app to install Yeoman, a handy tool that builds projects from a template. We’ll also install the the template for Hubot projects, generator-hubot.

npm install -g yo generator-hubot

Now we can create that Hubot project:

mkdir my-hubot && cd my-hubot
yo hubot --adapter=immail

Yeoman will ask you a few easy questions about your project and fill your directory with a Hubot app, ready to run.

Getting Bot credentials

By definition, a bot is a user like any other. So, at this moment, before you start running your new bot, create a new user account on imMail. We do not recommend use your own imMail account for this.

Coming soon a little smarter way to create your bots accounts without doing this all process.

Running Hubot

Set env variables

export [email protected]
export HUBOT_IMMAIL_PASS=123456

If you want to connect in another environment, an on-premise for instance, add this 2 more variables

export HUBOT_IMMAIL_API_HOST=https://api.yourcompany.com
export HUBOT_IMMAIL_WEBSOCKET_HOST=https://websocket.yourcompany.com    

Run the command below:

./bin/hubot --adapter immail

You can set the env vars inline too, like this:

[email protected] HUBOT_IMMAIL_PASS=123456 ./bin/hubot --adapter immail

About Hubot scripts

Hubot has many pre-written scripts that you can easy add by naming them in external-scripts.json. Take a look at all the possibilites with the hubot-scripts keyword in npm.

You can jump into writing your own scripts by modifying scripts/example.coffee ( you can use javascript for this too ;) ). It had tons of helpful comments to guide you. You might also find the Hubot scripting docs useful.