
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
orbit-db-eventstore
Advanced tools
An append-only log with traversable history. Useful for "latest N" use cases or as a message queue.
Used in orbit-db.
npm install orbit-db ipfs
First, create an instance of OrbitDB:
const IPFS = require('ipfs')
const OrbitDB = require('orbit-db')
const ipfs = new IPFS()
const orbitdb = new OrbitDB(ipfs)
Get a log database and add an entry to it:
const log = orbitdb.eventlog('haad.posts')
log.add({ name: 'hello world' })
.then(() => {
const items = log.iterator().collect()
items.forEach((e) => console.log(e.name))
// "hello world"
})
Later, when the database contains data, load the history and query when ready:
const log = orbitdb.eventlog('haad.posts')
log.events.on('ready', () => {
const items = log.iterator().collect()
items.forEach((e) => console.log(e.name))
// "hello world"
})
See example/index.html for a detailed example. Note that to run this example, you need to have a local IPFS daemon running at port 5001.
See orbit-db's API Documenations for full details.
See orbit-db's contributing guideline.
MIT ©️ 2016 Haadcode
FAQs
Eventlog for orbit-db
The npm package orbit-db-eventstore receives a total of 644 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.