
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
dat-replicator
Advanced tools
Replicate a dat instance to another one (in a smart way) using nothing but streams
npm install dat-replicator
Replicating is a simple as piping a few streams
var replicator = require('dat-replicator')
var r1 = replicator(dat1)
var r2 = replicator(dat2)
var send = r1.send()
var rcvd = r2.receive()
send.pipe(rcvd).pipe(send) // will sync dat1 to dat2
First setup a dat instance to receive data. Using tcp this could look like
var replicator = require('dat-replicator')
var net = require('net')
var r = replicator(datReceive) // datReceive is a dat instance
net.createServer(function(socket) {
socket.pipe(r.receive()).pipe(socket)
}).listen(9090)
Then setup another that instance to send the data. Again using tcp
var r = replication(datSend) // datSend is a dat instance
var socket = net.connect(9090)
socket.pipe(r.send()).pipe(socket)
Thats it! All of the changes that datSend have and that datReceive doesn't will
be inserted into datReceive.
Per default metadata (the change count etc) is exchanged over the stream as well. If for some reason you already have this do
var send = r1.send({meta:{change:100}})
var rcvd = r2.receive({meta:false})
send.pipe(rcvd).pipe(send)
This will disable the metadata exchange
MIT
FAQs
Replicate dat using streams
The npm package dat-replicator receives a total of 2 weekly downloads. As such, dat-replicator popularity was classified as not popular.
We found that dat-replicator 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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.