Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@orbitdb/quickstart
Advanced tools
A preconfigured instance which allows developers to "test drive" OrbitDB.
A preconfigured OrbitDB instance which allows users to quickly "test drive" OrbitDB.
This repository provides convenience functions and IPFS and Libp2p configurations to deploy OrbitDB quickly and with minimal knowledge of Helia/Libp2p.
This project uses npm and nodejs.
npm i @orbitdb/quickstart
To launch a OrbitDB instance and open a database, run startOrbitDB
:
import { startOrbitDB, stopOrbitDB } from '@orbitdb/quickstart'
const orbitdb = await startOrbitDB()
const db1 = await orbitdb.open('db1')
await db1.add('hello world!')
console.log(await db1.all())
await stopOrbitDB(orbitdb)
OrbitDB Quickstart also includes default Libp2p configurations for Node.js and browser for basic connections between multiple peers:
import { createOrbitDB } from '@orbitdb/core'
import { DefaultLibp2pOptions } from '@orbitdb/quickstart'
const libp2p = createLibp2p({ ...DefaultLibp2pOptions })
const ipfs = await createHelia({ libp2p })
const orbitdb = await createOrbitDB({ ipfs })
const db1 = await orbitdb.open('db1')
await db1.add('hello world!')
console.log(await db1.all())
MIT © 2024 OrbitDB Community
FAQs
A preconfigured instance which allows developers to "test drive" OrbitDB.
The npm package @orbitdb/quickstart receives a total of 105 weekly downloads. As such, @orbitdb/quickstart popularity was classified as not popular.
We found that @orbitdb/quickstart demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.