
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
Multiplex multiple streams over a stream. Bidirectional clients / servers.
npm install protoplex
import SecretStream from '@hyperswarm/secret-stream'
import Protomux from 'protomux'
import Protoplex from 'protoplex'
import { pipeline } from 'streamx'
const server = new Protoplex(new Protomux(new SecretStream(false)))
const client = new Protoplex(new Protomux(new SecretStream(true)))
pipeline(
client.mux.stream.rawStream,
server.mux.stream.rawStream,
client.mux.stream.rawStream
)
// alternatively, const clientplex = Protoplex.from(new SecretStream(true))
const message = Buffer.from('Hello, World!')
server.on('connection', async (stream, id) => {
let str = ''
for await (const buf of stream) str += buf.toString()
console.log(str) // prints 'Hello, World!'
})
let stream = client.connect()
stream.write(message)
stream.end()
// protoplex makes no distinction between clients and servers
client.on('connection', async (stream) => {
let str = ''
for await (const buf of stream) str += buf.toString()
console.log(str) // prints 'Hello, World!'
})
stream = server.connect()
stream.write(message)
stream.end()
const plex = new Protoplex(mux, [options])Options include:
{
ctl: {
id: Buffer, // the id to use for the ctl channel
handshakeEncoding: compact encoding // handshake encoding for the ctl channel
handshake: must satisfy options.ctl.handshakeEncoding // handshake value for opening ctl channel
},
channel: {
handshakeEncoding: compact encoding, // handshake encoding for stream channels
handshake: must satisfy options.channel.handshakeEncoding, // default handshake for stream channels
encoding: compact encoding | (id, handshake) => compact encoding // value encoding for stream channel values
}
}
const plex = Protoplex.from(muxOrStream, [options])Options passed through to new Protoplex(mux, [options]).
const duplex = plex.connect([id], [options])Options include:
{
handshake: value should satisfy plex.options.channel.handshakeEncoding
}
Alternatively, you can call plex.connect([options]) and a random id will be generated.
plex.on('connection', stream, id, handshake)plex.on('open')plex.on('destroy', protocol, id)await plex.destroy()FAQs
Multiplex multiple streams over a stream. Bidirectional clients / servers.
We found that protoplex 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
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.