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-layer

v0.1.15

Published

This is a hubot adapter to use with Layer

Readme

hubot-layer

This is Hubot adapter to use with Layer

Getting Started

Creating a new bot

  • npm install -g hubot coffee-script yo generator-hubot
  • mkdir -p /path/to/myhubot
  • cd /path/to/myhubot
  • yo hubot
  • npm install hubot-layer --save
  • Initialize git and make your initial commit.
  • Check out the hubot docs for further guidance on how to build your bot.

Testing your bot locally

  • LAYER_TOKEN=<STAGING_LAYER_TOKEN> LAYER_APP_ID=<STAGING_LAYER_APP_ID> BOT_OPERATOR=bot.operator ./bin/hubot -a layer

Deploying to Heroku

This is a modified set of instructions based on the instructions on the Hubot wiki.

  • Follow the instructions above to create a hubot locally

  • Install heroku toolbelt if you haven't already.

  • heroku create my-company-layerbot

  • heroku addons:create rediscloud:30

  • Add the config variables. For example:

      % heroku config:add LAYER_TOKEN=<PRODUCTION_LAYER_TOKEN>
      % heroku config:add LAYER_APP_ID=<PRODUCTION_LAYER_APP_ID>
      % heroku config:add BOT_OPERATOR=<NAME_BOT_OPERATOR>
  • Deploy the bot:

      % git push heroku master
  • :sunglasses:

Note:

Free dynos on Heroku will sleep after 30 minutes of inactivity. That means your hubot would leave the chat room and only rejoin when it does get traffic. This is extremely inconvenient since most interaction is done through chat, and hubot has to be online and in the room to respond to messages. To get around this, you can use the hubot-heroku-keepalive script, which will keep your free dyno alive for up to 18 hours/day. If you never want Hubot to sleep, you will need to upgrade to Heroku's hobby plan

Configuration

This adapter uses the following environment variables:

  • LAYER_TOKEN - this is the Token given by Layer that allows use Platform API.
  • LAYER_APP_ID - this is the App ID given by Layer.
  • BOT_OPERATOR - this is the name of operator that will send messages to users.

Copyright

Copyright © Yalo MIT License; see LICENSE for further details.


Created with :heart: by Yalo