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 🙏

© 2024 – Pkg Stats / Ryan Hefner

sensitive

v0.0.3

Published

Sensitive is an experimental node.js module that enables you to read the sensors of multiple phones at the time and create real-time multiplayer experiences on a "host" browser.

Downloads

2

Readme

Sensitive.js

Sensitive.js is a small Node.js app that reads sensor data from your mobile phone and sends it to an Arduino. It's still quite buggy, but it works :)

How it works

Sensitive.js has to run on a computer that has an Arduino attached to a USB port (this could be a RaspberryPi for instance).

When you access the node.js server from your phone, a Sensitive.js client opens a Websocket connection and starts sending the sensor readings. The node app then forwards them to your Arduino, using the serial port.

Supported Sensors

  • Geolocation (lat, lng)
  • Accelerometer (x, y, z)
  • Orientation (alpha, beta, gamma)
  • Compass (degrees, direction)

Demo app

The demo app is quite simple. It's a two part app that allows you to start and stop reading sensors. The first part is an HTML file and the other is an Arduino sketch.

Note that the demo sketch needs a Liquied Crystal display to show the data. This is of course not required for Sensitive.js, but you will have to strip the code a bit to run it without the display.

Get it running

  1. Get the sources and dependences
git clone [email protected]:alanreid/Sensitive.js.git 
cd Sensitive.js
npm install
  1. Open app.js and change the serial port to the one your Arduino is using
  2. Upload the demo sketch to your Arduino
  3. Run the app with
node app.js
  1. Access to your node's IP & port from your mobile device.

Contact me

Contact me on Twitter: @alan_reid

License

This software is distributed under the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0