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-messenger-platform

v0.0.11

Published

A hubot adapter for the new messenger platform

Readme

Hubot Messenger Platform Adapter

Facebook has just announced its new platform for messenger. This is a hubot adapter for the new bot api.

https://raw.githubusercontent.com/MohamedBassem/hubot-messenger-platform/master/imgs/bot.png

Installation

  • npm install --save hubot-messenger-platform

Requirement

  • For this to work you'll need the following:
    1. Facebook page.
    2. Facbook Group.
    3. Reverse proxy with SSL setup ( i.e Nginx + letsencrypt ).

Steps

  1. Create the facebook page if you don't have one.
  2. Create the facebook app if you don't have one.
  3. Generate a random verification token of any length and note it with you.
  4. From the facebook app's setting, go to the new messenger tab. In the token generation part, choose your page and note the page access token.
  5. Start your bot with HUBOT_MESSENGER_VERIFICATION_TOKEN=<verification_code> HUBOT_MESSENGER_PAGE_ACCESS_TOKEN=<page_access_code> ./bin/hubot -a messenger-platform -n "".
  6. In the messenger's tab webhook section, add a new webhook. The endpoint should be https://<your_domain>/webhook. Choose all the events and verify.
  7. Execute curl -ik -X POST "https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=<page_access_token>" to subscribe your app to get updates from this page.

And Done. Now whenever you send a message to your bot's page inbox, hubot will process it and send the response back.

For more info, check facebook's official guide.

Configuartions

  • The FB API supports only 320 chars per message. The adapter truncates the message and appends ... by default. If you want the adapter to split the message into several lines

Important Notes

  • The server should be running a reverse proxy that forwards the https traffic after SSL termination to http://localhost:8080 assuming that the reverse proxy is running on the same host as hubot. If you started hubot specifying the PORT env var, this will override the default 8080 port.
  • Self signed certificates won't be accepted by facebook. Letsencrypt certificates works perfectly.
  • The -n "" flag when starting hubot, doesn't give the bot a name. So instead of sending Hubot ping to it, you'll just send ping.
  • The FB API supports only 320 chars responses. . If you want hubot to split the long message on

Contributions

Your contributions are welcome through pull requests or issues.