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

node-wii

v0.0.8

Published

Node.js libcwiid asynchronous native bindings

Readme

Node.js libcwiid bindings

Created by Tim Branyen @tbranyen
Modified by Andrew Brampton @TheBramp Modified by Dan Yocom

node-wii provides asynchronous native bindings to the libcwiid C API.

Building and installing

Dependencies

To run node-wii you need Node.js (>=v0.10.0), bluez, and libcwiid installed. To run unit tests you will need to have git installed and accessible from your PATH to fetch any vendor/ addons.

It is sufficient enough to rely on the system package manager to install libcwiid and bluez. Refer to your distros repository search to find the correct module names and installation procedure.

Linux (Ubuntu/Debian)

Ensure you have the dependancies installed

$ sudo apt-get install libbluetooth-dev libcwiid-dev
$ sudo npm install -g node-gyp

Install node-wii by cloning source from GitHub and use npm to build and install:

$ git clone git://github.com/danyocom/node-wii.git
$ cd node-wii

$ npm -d install

A demo applicaton can be run like so:

$ node example/simple/server.js

Apple OS X/Windows via Cygwin

node-wii currently does not run on either Mac OS X or Windows machines. This is a problem with libcwiid. A future plan is to fork libcwiid and write support for at least Apple OS X.

API Example Usage

Connecting and enabling features

Raw API

var wii = require("node-wii");
var wiimote = new wii.WiiMote();

// You may specify a mac address to your wiimote, or use 00:00:00:00:00
wiimote.connect("00:00:00:00:00", function(err) {
  if( err ) {
    console.log( 'Could not establish connection' );
    return;
  }

  // Enable rumble
  wiimote.rumble(true);

  // Turn on led"s 1 and 3
  wiimote.led(1, true);
  wiimote.led(3, true);

  // Turn off led 3
  wiimote.led(3, false);

  // Get IR Data
  wiimote.ir(true);
  wiimote.on("ir", function(points) {
    for (var p in points)
      console.log("Point", p['x'], p['y'], p['size']);
  });
});

Events

  • connect
  • disconnect
  • accelerometer
  • button
  • ir
  • status

Release information

v0.0.8 (by danyocom):

  • Cleaned Up Readme File

v0.0.7 (by danyocom):

  • Disabled console debug output

v0.0.4 - v0.0.6 (by danyocom):

  • Renamed project to node-wii for publishing on npmjs.org
  • Fixed pacakge.json to point to the node-wii.js stub instead of erronusly trying to load the binary directly

v0.0.3 (by bramp):

  • Upgraded to support node 0.10.0
  • Change build system to node-gyp
  • Change event framework from EIO to UV

v0.0.2 (by bramp):

  • Added a new example using socket.io
  • Changed the use of cwiid to be truely async

v0.0.1:

  • Some useful methods implemented
  • Partial examples in example directory

Getting involved

If you find this project of interest, please document all issues and fork if you feel you can provide a patch.