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

hidmirror

v1.0.0

Published

mir:ror HID-based nodejs driver

Readme

HID MIRROR

Mir:ror node driver module providing utility methods to listen RFID tags (ISO/IEC 14443 Type A or B) such as nano:ztag or ztamps.

It automatically detects the mir:ror when it is connected to your USB port, using a configurable time interval (default 5sec)

The driver includes the following utility functions : start use it to start the driver stop use it to stop the driver

You get the following events from the driver : hidm_started indicate that the driver is ready to use hidm_stopped indicate that the driver is off hidm_up notify that the mir:ror is in the orientation 'up'
hidm_down notify that the mir:ror is in the orientation 'down' hidm_in notify a RFID tag entered on the mir:ror (detected in) with data being the identifier of the RFID tag hidm_out notify a RFID tag left the mir:ror (detected out) with data being the identifier of the RFID tag

Although the product is now end of life and no more used, you can find some information about violet mir:ror here : Violet's Mirr:or: Internet of Things Via RFID mir:ror

Installation

  npm install hidmirror --save

Usage

var mirror = new HidMirror (); 
mirror.start(); 
mirror.on("hidm_up", function (data){
    console.log("-> mir:ror up");
}); 

mirror.on("hidm_down", function (data){
    console.log("-> mir:ror down");
}); 
mirror.on("hidm_in", function (data){
    console.log("-> mir:ror RFID IN --> ID =>> "); console.log(data);
}); 
mirror.on("hidm_out", function (data){
    console.log("-> mir:ror RFID OUT --> ID =>> "); console.log(data);
}); 
mirror.on("hidm_started", function (data){
    console.log("-> mir:ror READY "); 
}); 
mirror.on("hidm_stopped", function (data){
    console.log("-> mir:ror STOPPED "); 
}); 

env variables

You may configure the following variables, at your convenience :

# detection interval (default is 2000 ms) : check if mir:ror device is connected every X ms
export HIDM_DETECT_INTERVAL=5000 
# auto restart (default is true) : if the device connection stops then it automatically restarts
export HIDM_AUTO_RESTART=false 

Contributing

You are welcome to contribute :

  • improve detection of the device
  • control sounds and led ...

Release History

  • 1.0.0 driver up and running enabling RFID tag detection
  • 0.1.0 Initial release