
Product
Socket Brings Supply Chain Security to skills.sh
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.
protocol-buffers-stream
Advanced tools
Streaming protocol buffers for Node.js
npm install protocol-buffers-stream
Assuming you have the following schema
message Test {
required string hello = 1;
}
Run the following example
var protobufs = require('protocol-buffers-stream')
var fs = require('fs')
var schema = fs.readFileSync('schema.proto')
var createStream = protobufs(schema)
var stream = createStream()
// send a test message
// if your schema message was named example this method would be called example
stream.test({
hello: 'world'
})
// receive a test message
stream.on('test', function(m) {
console.log(m)
})
// just pipe to ourselves for testing
stream.pipe(stream)
Each buffer is sent using the following encoding
----------------------------------------------
| frame length | message id | message buffer |
----------------------------------------------
The first message sent is a handshake message that contains the message ids of the following messages
If you know that your schema won't change you can pass {handshake:false} to createStream
to disable handshaking
MIT
FAQs
Streaming protocol buffers for Node.js
The npm package protocol-buffers-stream receives a total of 15 weekly downloads. As such, protocol-buffers-stream popularity was classified as not popular.
We found that protocol-buffers-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.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.