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 🙏

© 2025 – Pkg Stats / Ryan Hefner

raspberry-ready

v1.0.8

Published

perfectly imperfect

Readme

raspberry ready

The script I use when my raspberry pi turns on.

Setup (headless)

  1. Install Raspberry Pi Imager from here and flash the latest lite version onto an sdcard or ssd

  2. Create an empty SSH file in the boot partition

  3. Create a file called wpa_supplicant.conf in the boot partition with the contents

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=RO

network={
  ssid="Unimatrix"
  psk="<SECRET_PASS_HERE>"
}
  1. SSH into your device (default password is raspberry)
    ssh pi@raspberrypi

  2. Update software / firmware

sudo apt update && \
sudo apt full-upgrade -y && \
sudo apt autoremove && \
sudo apt clean
  1. Change default password and timezone
    sudo raspi-config

  2. Reboot
    sudo reboot

Overclock

  1. Open the config file
    sudo nano /boot/config.txt

  2. Uncomment and add the following lines

over_voltage=6
arm_freq=2000

Instalation

  1. Install docker
    curl -sSL https://get.docker.com | sh

  2. Add permission to pi user to run docker commands
    sudo usermod -aG docker pi

  3. Reboot
    sudo reboot

  4. Test docker installation
    docker run hello-world

  5. Install dependencies for docker-compose

sudo apt install -y libffi-dev libssl-dev && \
sudo apt install -y python3 python3-pip
  1. Install docker-compose
    sudo pip3 install docker-compose

Run on startup

  1. Symlink /etc/rc.local to ~
    ln -s /etc/rc.local startup

  2. Open startup
    sudo nano startup

  3. Before exit add scripts (important: the --privileged flag is needed in order to access the GPIO from the container)

# Run ready scripts
sudo /home/pi/./shutdown-script.sh &
docker run --privileged --rm --name ready -d -v /var/run/shutdown_signal:/shutdown_signal highstrike/raspberry-ready:v1.0.8
  1. Add script to ~
touch shutdown-script.sh && \
chmod +x shutdown-script.sh && \
nano shutdown-script.sh
  1. Copy paste the script it from here

  2. Reboot
    sudo reboot

Other

  • check frequency
    cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

  • check temperature
    /opt/vc/bin/vcgencmd measure_temp

  • check fan-speed
    docker logs ready -f

  • install git
    sudo apt install -y git

  • set git global identity
    git config --global user.email "[email protected]"
    git config --global user.name "highstrike"

  • github ssh key
    ssh-keygen -t rsa -b 4096 -C "[email protected]"
    cat ~/.ssh/id_rsa.pub and add it to github / settings / ssh / new ssh key
    ssh -T [email protected] to test connection

  • benchmarking
    sudo apt install -y sysbench
    sysbench --test=cpu --cpu-max-prime=50000 --num-threads=4 run (cpu speed)
    sudo curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash (storage speed)

  • block wifi & bluetooth
    rfkill block wifi
    rfkill block bluetooth

  • neofetch
    sudo wget -O /usr/local/bin/neofetch https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch
    sudo chmod a+x /usr/local/bin/neofetch