
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.
openpixelcontrol-stream
Advanced tools
provides a stream-implementation for interfacing with the openpixelcontrol-protocol
stream-based implementation of the openpixelcontrol-protocol. Provides a protocol-parser and a client-implementation.
npm install openpixelcontrol-stream
This will run an openpixelcontrol server on the default port (7890) and send
received data to the rpi-ws281x-native module for output to a strip of
ws2812-leds.
var ParseStream = require('openpixelcontrol-stream').OpcParseStream,
net = require('net'),
ws281x = require('rpi-ws281x-native');
var server = net.createServer(function(conn) {
var parser = new ParseStream({
channel: 1,
dataFormat: ParseStream.DataFormat.UINT32_ARRAY
});
parser.on('setpixelcolors', function(data) {
ws281x.render(data);
});
conn.pipe(parser);
});
ws281x.init(100);
server.listen(7890);
A basic client connecting to an openpixelcontrol-server and running an animation there.
var ClientStream = require('openpixelcontrol-stream').OpcClientStream,
net = require('net');
var NUM_LEDS = 100,
OPC_CHANNEL = 0;
var client = new ClientStream();
// connect to openpixelcontrol-server at `192.168.1.42:7890`
var socket = net.createConnection(7890, '192.168.1.42', function() {
client.pipe(socket);
run();
});
function run() {
// create a typed-array for color-data
var data = new Uint32Array(NUM_LEDS);
// setup an animation-loop at 10FPS
setInterval(function () {
// ... update colors in `data` ...
client.setPixelColors(OPC_CHANNEL, data);
}, 100);
}
FAQs
provides a stream-implementation for interfacing with the openpixelcontrol-protocol
We found that openpixelcontrol-stream 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.