
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
openni-browser
Advanced tools
Server <-> Browser bridge for OpenNI skeleton.
Works with kinect.
Uses Socks.js (via Shoe).
Install libusb and OpenNI following the platform-specific instructions at https://github.com/OpenNI/OpenNI
$ npm install openni-browser
var kinectSock = require('openni-browser')();
var ecstatic = require('ecstatic')(__dirname + '/public');
var server = require('http').createServer(ecstatic);
kinectSock.install(server, '/skeleton');
server.listen(8080, function() {
console.log('kinect socks server listening...');
});
Copy browser/openni.js into the public folder.
In your HTML file include that script before the body close tag:
<script src="openni.js"></script>
Inside a browser script:
Initialize connection to the server by providing a full or relative URL:
var skeleton = openni('/skeleton');
Listen for user events:
[
'newuser',
'lostuser',
'posedetected',
'calibrationstart',
'calibrationsuccess',
'calibrationfail'
].forEach(function(userEventType) {
sleleton.on(userEventType, function(userId) {
console.log(userEventType + ' (' + userId + ')');
});
});
Listen for joint position changes:
jointNames = [
"head",
"neck",
"torso",
"waist",
"left_collar",
"left_shoulder",
"left_elbow",
"left_wrist",
"left_hand",
"left_fingertip",
"right_collar",
"right_shoulder",
"right_elbow",
"right_wrist",
"right_hand",
"right_fingertip",
"left_hip",
"left_knee",
"left_ankle",
"left_foot",
"right_hip",
"right_knee",
"right_ankle",
"right_foot"
];
jointNames.forEach(function(jointName) {
kinect.on(jointName, function(userId, x, y, z) {
console.log('The joint ' + jointName + ' of user ' + userId +
' moved to (' + x + ', ' + y + ', ' + z + ')');
});
});
The skeleton object will also emit:
connect — when there is a connection to the serverend — when the connection to the server is endedSee the examples folder.
MIT
FAQs
Server <-> Browser bridge for OpenNI skeleton.
We found that openni-browser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.