{"library":"bdb","type":"library","category":null,"description":"bdb is an embedded, low-level key-value database library specifically designed as a LevelDB backend for the bcoin full node Bitcoin implementation. It is built on top of `leveldown` (or compatible LevelDB bindings) to provide persistent storage. The package, currently at version 1.6.2, is part of the broader `bcoin-org` ecosystem, which appears to be under active maintenance, though `bdb` itself sees less frequent, direct updates. Its primary differentiator is the `bdb.key` utility, offering structured key encoding and decoding for managing complex data types common in blockchain applications, such as cryptographic hashes and integers, enabling efficient storage and retrieval. Unlike general-purpose LevelDB wrappers, `bdb` is tailored for the specific data structures and performance requirements of a Bitcoin node. It operates as a local, embedded database without a server component, similar to other NoSQL key-value stores. Release cadence is tied to the needs of the `bcoin` project, rather than independent frequent updates.","language":"javascript","status":"maintenance","version":"1.6.2","tags":["javascript","database","db","leveldb"],"last_verified":"Wed May 27","install":[{"cmd":"npm install bdb","imports":["const bdb = require('bdb');","const bdb = require('bdb');\nconst db = bdb.create('/path/to/my.db');","const bdb = require('bdb');\nconst myKey = bdb.key('prefix', ['type1', 'type2']);"]},{"cmd":"yarn add bdb","imports":[]},{"cmd":"pnpm add bdb","imports":[]}],"homepage":null,"github":"https://github.com/bcoin-org/bdb","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/bdb","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/bdb/compatibility"}}