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

prysmalight

v1.1.0

Published

Prysmalight-pi ===========================================

Downloads

0

Readme

Prysmalight-pi

How to run

  • Make sure the Raspberry pi 3 is set up correctly (Section below)
  • SSH into your raspberry pi (Default Password is PrysmaPi)
  • Navigate to the lightapp2-pi folder
  • Run docker-compose up -d and it should work
    • Note: This may take a while the first time as it needs to pull the images from docker cloud

How to Upgrade

  • SSH into your raspberry pi
  • Navigate to the lightapp2-pi folder
  • Run docker-compose pull
    • Note: This may take a while as it needs to pull the images from docker cloud

How to setup the Raspberry Pi 3

Change Hostname/Password

  • Open Hosts File
    • sudo nano /etc/hosts
    • Change raspberrypi to prysma
  • Open Hostname File
    • sudo nano /etc/hostname
    • Change raspberrypi to prysma
  • Change Password
    • passwd

Set up Headless Wifi Configuration

  • TODO

Clone the git repo or just download the file

  • Update the RPI
    • sudo apt-get update
    • sudo apt-get upgrade
  • Install git if you havent already
    • sudo apt-get install git
  • Clone the repo
    • git clone https://github.com/Rooknj/prysmalight-pi.git

Install and setup Docker and Docker-compose

  • Install docker using this script
    • curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
  • Setup docker for use without having to type in sudo every time
    • sudo groupadd docker
    • sudo gpasswd -a $USER docker
  • Either logout and then log back in, or run newgrp docker for the changes to take effect.
  • Test this is working correctly
    • docker run hello-world
  • Install docker-compose using pip
    • sudo apt install -y python python-pip (if pip and python are not installed)
    • sudo pip install -U docker-compose
  • Run Docker Containers
    • docker-compose up -d in prysmalight-pi directory

Set up Prysmalight Service (TODO: Implement Update Service/Make start a daemon (with forever? This might not be needed with Restart=always))

  • sudo nano /etc/systemd/system/prysmalight.service
    [Unit]
    Description=Prysmalight start script
    Requires=docker.service
    After=docker.service
    
    [Service]
    Restart=always
    ExecStart=/usr/bin/prysmalight start
    ExecStop=/usr/bin/prysmalight stop
    
    [Install]
    WantedBy=local.target
  • enable service
    • sudo systemctl start prysmalight.service
    • sudo systemctl enable prysmalight.service
  • disable service
    • sudo systemctl stop prysmalight.service
    • sudo systemctl disable prysmalight.service

Install Prysmalight

  • Install Node
    • curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
    • sudo apt-get install -y nodejs
  • Test to see if node is working
    • node -v
  • Install Prysmalight Globally
    • ``sudo npm install -g prysmalight@latest
  • Run Prysmalight

Add mDNS advertisement for MQTT server

  • Create the file /etc/avahi/services/mqtt.service
  • Paste this inside:
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
 <name replace-wildcards="yes">MQTT on %h</name>
  <service>
   <type>_mqtt._tcp</type>
   <port>1883</port>
  </service>
</service-group>
  • Reboot to take effect

Working with homebridge

Homebridge User Interface

  • Located at prysma.local:8080
  • default user and pass: admin

We are using homebridge-mqtt to interface with homekit

  • Follow the API here: https://www.npmjs.com/package/homebridge-mqtt
  • Service and characteristic names defined here : https://github.com/KhaosT/HAP-NodeJS/blob/master/lib/gen/HomeKitTypes.js

Adding a light to homekit

  • Publish this to prysmalight/to/add
{
  "name": "<Device ID>",
  "service_name": "<Display Name>",
  "service": "Lightbulb",
  "Brightness": "default",
  "Hue": "default",
  "Saturation": "default"
}

Removing a light from homekit

  • Publish this to prysmalight/to/remove
{
  "name": "<Device ID>"
}

Add homebridge to homekit

  • SSH into your raspberry pi 3
  • Navigate to the prysmalight-pi folder
  • Run docker ps
  • Find the correct container id for the homekit container
  • Run docker logs <CONTAINER-ID>
  • Find the homekit QR code and add it