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

homebridge-awesome-http-switch

v1.0.6

Published

Flexible bridge for http based lights/switches

Readme

Homebridge Plugin for HTTP based lights and switches

This is a Homebridge platform plugin and can be used to incorporate HTTP based lights and switches. The plugin supports any number of switches

Configuration

The plugin assumes that your lights and switches exposes three URLs:

  • Status - this url returns the status of your light or switch
  • Turn light on - this url turns your light on
  • Turn light off

Getting started

  1. Install the plugin by searching for "awesome http"
  2. Make sure you noted down the URLs as stated above for at least one light
  3. Click on "Settings"
  4. Fill in the General section with name, base url. Please follow and note the explanation below the fields
  5. Add your first light
  6. Name - Give it a nice name this is the name in homekit
  7. HTTP Method - if you don't know leave GET maybe POST
  8. HTTP Content Type - application/text or application/json or quite common
  9. Status URL - add the status URL - be aware that the status URL is prepended with the base url from above 9a. what the heck is a base url - you may safely ignore it (leave it empty) the status url alone is enough
  10. add the turn on url - see 9 and 9a
  11. add the turn off url - see 9 and 9a
  12. click save
  13. since we use a static platform, you need to restart homebridge (top right corner)
  14. head over to the accessories pages

Limitations

  • HTTPS supported (untested)
  • other settings than my playground

Example

I use it to control the 5 lights of the crib my daughter built. The lights are controlled by an ESP8266 with a WebServer running on it. The ESP8266 exposes an rest like API, for each of the lights. E.g. for the fire in front of the crib

  • Status - http://crib.local/fire/left
  • Turn On - http://crib.local/fire/left/on
  • Turn Off - http://crib.local/fire/left/off

Pictures coming soon...