A wrapper for abstract-leveldown compliant stores, used by OrbitDB to manage persistent connections to levelup, level-js, or any abstract-leveldown compliant backend. Current stable version is 0.9.0. Maintained by the OrbitDB team, with low release cadence. Differentiators: it standardizes the creation and destruction of levelup stores for OrbitDB components like keystore and cache, and abstracts environment-specific stores (Node vs browser). Primarily an internal dependency for OrbitDB ecosystem packages.
npm install orbit-db-storage-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a storage adapter with leveldown, creating a store, performing get/put, and cleanup.
Use import statement or dynamic import; do not use require().
Consider migrating to orbit-db-cache or directly using levelup/level-js.
Use await or .then() when calling createStore.
Install leveldown (or another abstract-leveldown store) alongside this package.
Pass levelup-specific options as second argument to createStore.
Change to import storageAdapter from 'orbit-db-storage-adapter'
Install leveldown (or memdown/level-js) and pass it to storageAdapter
Add await: const store = await storage.createStore(...)