
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.
WORK IN PROGRESS
npm install dat-graph
var datGraph = require('dat-graph')
var graph = datGraph(db) // db is a levelup instance
var stream = graph.addStream([], function (err, node) {
console.log('inserted', node) // {links: [], value: (hash of the below writes)}
var anotherStream = graph.addStream([node], function (err) {
})
anotherStream.write(new Buffer('test'))
})
stream.write(new Buffer('entry one'))
stream.write(new Buffer('entry two'))
stream.end()
The above results in
node #2 (-> hash of "test")
|
node #1 (-> hash of ("entry one", "entry two"))
var stream = graph.getStream(nodeHash)
stream.on('data', function (data) {
// data is entry one, then entry two
})
var stream = graph.nodeStream()
stream.on('data', function (node) {
// returns node #1, node #2
})
graph.heads(function (err, heads) {
// returns the heads of the graph
})
graph.get(nodeHash, function (err, node) {
// returns the graph node
})
var stream = graph.replicate({mode: 'push'})
stream.on('end', function () {
var stream = graph.eventStream({since: 5})
stream.on('data', function (data) {
// {start: date, end: date, sen}
})
})
changes!1 => node-hash-1
changes!2 => node-hash-2
nodes!node-hash-1
nodes!node-hash-2 => {links: [node-hash-1], value: {type: whatever, commit: commit-hash-2}}
commits!commit-hash-2!1!test
commits!commit-hash-1!1!entry-one
commits!commit-hash-1!2!entry-two
MIT
FAQs
Dat Merkle DAG
The npm package dat-graph receives a total of 1 weekly downloads. As such, dat-graph popularity was classified as not popular.
We found that dat-graph demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.