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

sensor-net-middleware

v1.2.2

Published

Middleware for the Sensor-Net project.

Readme

Sensor Net Middleware

This repository contains the middleware for the Sensor Net project.

Installation

The middleware can be installed as an npm package.

apt install git libzmq-dev cmake -y
npm i -g sensor-net-middleware

You may need to add the option "--unsafe-perm".

Running

The middleware package contains two binaries called "rawdatad" and "ingresd".

rawdatad

The Raw Data Daemon received the messages from the serial interface, decrypts and reformats them, and publishes them on a zeromq queue. It expects the Sensor Net decryption key to be supplied as the environment variable "SENSOR_NET_KEY".

SENSOR_NET_KEY=<secret key> ZEROMQ_SOCKET=tcp://127.0.0.1:3000 rawdatad

ingressd

The Ingress Daemon subscribes to the zeromq queue and forwards the messages to the database. To be able to use the Sensor Net back end API, it gets an access token from Auth0. It gets new tokens as required. The Ingress Daemon expects the following environment variables to be set:

  • ZEROMQ_SOCKET (optional, default: "tcp://127.0.0.1:3000")
  • ZEROMQ_TOPIC (optional, default: "sensor-net/data")
  • AUTH0_TENANT
  • AUTH0_REGION (e.g. "eu")
  • AUTH0_CLIENT_ID
  • AUTH0_CLIENT_SECRET
  • AUTH0_CLIENT_AUDIENCE

Troubleshooting

Installing nodejs on armv6l (RaspberryPi 1, Zero)

I found the node packages that ship with Raspbian to have problems. Therefore, I uninstalled them.

apt remove nodejs npm

Binary distributions packages for armv6 are available for version 10 from nodejs.org. They can be installed in the following way.

wget https://nodejs.org/dist/latest-v10.x/node-v10.20.0-linux-armv6l.tar.gz
sudo mkdir -p /usr/local/lib/nodejs
sudo tar -xvf node-v10.20.0-linux-armv6l.tar.gz -C /usr/local/lib/nodejs
chown -R root /usr/local/lib/nodejs
chgrp -R root /usr/local/lib/nodejs

Then add the path to the profile.

export PATH="/usr/local/lib/nodejs/node-v10.20.0-linux-armv6l/bin:$PATH"