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

concava

v1.0.0

Published

Configuration driven binary payload processor for Converting, Calibrating, and Validating dynamic sensor data.

Readme

ConCaVa

Dependency Status Build Status

Configuration driven binary payload processor for Converting, Calibrating, and Validating dynamic sensor data.

Documentation

The project documentation is hosted on http://kukua.github.io/concava/.

Installation

ConCaVa can be run as a NodeJS program or in a Docker container.

NodeJS

git clone https://github.com/kukua/concava
cd concava
cp config.js.example config.js
chmod 600 config.js
# > Edit config.js

npm install
npm start -- -c config.js
# Outputs "Listening on port 3000"

Docker

First, install Docker. Then run:

curl https://raw.githubusercontent.com/kukua/concava/master/config.js.example > config.js
chmod 600 config.js
# > Edit config.js

touch /tmp/output.log

docker run -d -p 3000:3000 -v $PWD/config.js:/data/config.js \
	-v /tmp/output.log:/tmp/output.log --name concava kukuadev/concava
# Outputs "Listening on port 3000"

Testing

First, start the ConCaVa server. Then run:

echo '000005391234' | xxd -r -p | \
	curl -i -XPUT 'http://localhost:3000/sensorData/0000000000000001' \
	-H 'Authorization: Token abcdef0123456789abcdef0123456789' \
	-H 'Content-Type: application/octet-stream' --data-binary @-
# Note: if you're using Docker, change localhost to the IP address of the container

Configuration

Use adapters to provide your own authentication, metadata (device configuration), and storage. ConCaVa uses connectors to support communicating through other protocols (like MQTT, LoRa, etc.).

API

ConCaVa accepts the following HTTP requests:

  • POST /sensorData
  • PUT /sensorData/<deviceID> (where deviceID is a lowercase 16 character hex string)

The requests are identical, except for the device ID which using a POST request is prepended to the binary payload.

The following headers are required:

  • Content-Type: application/octet-stream
  • Authorization: <auth> (e.g. Token abcdef0123456789abcdef0123456789)

You can use one of these commands for testing:

echo '<deviceID><hex>' | xxd -r -p | \
	curl -i -XPOST 'http://localhost:3000/sensorData' \
	-H 'Authorization: Token <token>' \
	-H 'Content-Type: application/octet-stream' --data-binary @-

echo '<hex>' | xxd -r -p | \
	curl -i -XPUT 'http://localhost:3000/sensorData/<deviceID>' \
	-H 'Authorization: Token <token>' \
	-H 'Content-Type: application/octet-stream' --data-binary @-

Contribute

Your help and feedback is highly appreciated! Please make sure the tests pass before submitting a pull request.

git clone https://github.com/kukua/concava
cd concava
cp config.js.example config.js
chmod 600 config.js
# > Edit config.js

npm install
npm test

License

This software is licensed under the MIT license.

© 2016 Kukua BV