Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
orbit-db-feedstore
Advanced tools
A log database with traversable history. Entries can be added and removed. Useful for "shopping cart" type of use cases, or for example as a feed of blog posts or "tweets".
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 feed database and add an entry to it:
const feed = orbitdb.feed('haad.posts')
feed.add({ title: 'Hello', content: 'World' })
.then(() => {
const posts = feed.iterator().collect()
posts.forEach((post) => {
let data = post.payload.value
console.log(data.title + '\n', data.content)
// Hello
// World
})
})
Later, when the database contains data, load the history and query when ready:
const feed = orbitdb.feed('haad.posts')
feed.events.on('ready', () => {
const posts = feed.iterator().collect()
posts.forEach((post) => console.log(post.title + '\n', post.content))
// Hello
// World
})
See orbit-db's API Documenations for full details.
See orbit-db's contributing guideline.
MIT ©️ 2016 Haadcode
FAQs
Feed store for orbit-db
The npm package orbit-db-feedstore receives a total of 451 weekly downloads. As such, orbit-db-feedstore popularity was classified as not popular.
We found that orbit-db-feedstore 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.