Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
orbit-db-eventstore
Advanced tools
Eventlog for orbit-db
npm install orbit-db-eventstore
const ipfs = require('ipfs')
const EventStore = require('orbit-db-eventstore')
const store = new EventStore(ipfs, 'user id', 'database name')
// Sync store with another store
// hash is the IPFS hash of otherStore.snapshot
store.sync(hash)
// Add an event
const hash = store.add({ data: 'hello friend' })
// Get a single event
store.get(hash)
// Get an iterator
const iter = store.iterator({ limit: 20, lt: hash }) // iterator
const items = iter.collect() // convert to an Array
/*
Where `options` is:
{
limit: 100, // number of items to return
gt: <hash>, // get events newer than <hash>
lt: <hash>, // get events older than <hash>
gte: <hash>, // get event newer than <hash> including <hash>
lte: <hash>, // get event older than <hash> including <hash>
}
*/
TODO
FAQs
Eventlog for orbit-db
The npm package orbit-db-eventstore receives a total of 247 weekly downloads. As such, orbit-db-eventstore popularity was classified as not popular.
We found that orbit-db-eventstore 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.