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

serverless-blink1

v0.1.0

Published

A serverless endpoint to push and fetch blink(1) LED color codes.

Downloads

2

Readme

#serverless-blink1

serverless

A serverless endpoint to push and fetch blink(1) LED color codes.

This project leverages:

##Install

Make sure you have the Serverless Framework installed and you're using Node.js v4.0+.

npm install serverless -g

Install the project using Serverless:

serverless project install serverless-blink1

Install project dependencies via npm:

npm install

Install Python dependencies via pip:

pip install -t restApi/vendored/ -r restApi/requirements.txt

or via virtualenv:

virtualenv myenv
source myenv/bin/activate
pip install -r restApi/requirements.txt
cp -R myenv/lib/python2.7/site-packages/* restApi/vendored/

Deploy your functions and endpoints:

serverless dash deploy

##Usage

###Publish

This is where you get creative. Really, you can hook this up to anything, it's just a HTTP PUT. Wrap it in your custom logic.

I often use httpie instead of curl. Try this out:

#~: http POST https://yourAPIGateway/dev/blink1 endpoint=derp --json
"derp"

#~: http PUT https://yourAPIGateway/dev/blink1/derp rgb=#123456 --json
"#123456"

#~: http GET https://yourAPIGateway/dev/blink1/derp --json
"#123456"

The most effective publisher I've used was Nagios Check_MK Business Intelligence because it handled aggregation logic. I'll write a blog post about it sometime soon.

I'm currently experimenting with two publishers: outgoing webhooks from Slack and DataDog.

###Consume

On Mac and Windows, use Blink1Control.

  1. navigate to the Tools tab
  2. click +
  3. enter a Name
  4. set Type as url
  5. paste your endpoint in Path
  6. set Frequency to 1 min or 5 min

I haven't tested this on linux, but try using blink1-tool and setting a cron like so:

* * * * * /path/to/blink1-tool --rgb `derp=$(http GET https://yourAPIGateway/dev/blink1/derp | grep '#' | awk '{ print substr($1, 3, 6) }') ; echo "0x${derp:0:2},0x${derp:2:2},0x${derp:4:2}"`