
Security News
Inside Lodash’s Security Reset and Maintenance Reboot
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.
dat-replication-protocol
Advanced tools
Streaming implementation of the dat replication protocol
npm install dat-replication-protocol
var protocol = require('dat-replication-protocol')
var decode = protocol.decode()
var encode = protocol.encode()
decode.change(function(change, cb) {
// received a change
cb()
})
decode.blob(function(blob, cb) {
// received a blob stream
blob.on('data', function(data) {
console.log(data)
})
blob.on('end', function() {
cb()
})
})
decode.finalize(function(cb) {
// should finalize stuff
cb()
})
// write changes data
encode.change({
key: 'some-row-key',
change: 0,
from: 0,
to: 1,
value: new Buffer('some binary value')
}, functoin() {
console.log('change was flushed')
})
var blob = encode.blob(12) // 12 is the length of the blob
blob.write('hello ')
blob.write('world\n')
blob.end()
encode.finalize() // end the encode stream
// set up the pipeline
e.pipe(d)
Basically all changes and blobs are sent as multibuffers (varint prefixed).
--------------------------------------------------
| varint length | single byte id | payload |
--------------------------------------------------
Since blobs can be large they are treated as streams.
MIT
FAQs
streaming implementation of the dat replication protocol
The npm package dat-replication-protocol receives a total of 9 weekly downloads. As such, dat-replication-protocol popularity was classified as not popular.
We found that dat-replication-protocol 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
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.

Security News
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.