
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
A lightweight, simple binary database for Node.js applications. SimpleBDB uses MsgPack encoding for efficient storage and fast access, making it perfect for small to medium-sized projects.
A lightweight, simple binary database for Node.js applications. SimpleBDB uses MsgPack encoding for efficient storage and fast access, making it perfect for small to medium-sized projects.
npm install simple-bdb
# or
yarn add simple-bdb
// Import the database
const SimpleBDB = require('simple-bdb');
// or with ES modules
import SimpleBDB from 'simple-bdb';
// Create a new database instance
const db = new SimpleBDB({ filePath: './data/mydb.bdb' });
// Set a value
db.set('user.name', 'John');
// Get a value
const name = db.get('user.name'); // Returns 'John'
// Check if a key exists
const hasAge = db.has('user.age'); // Returns false
// Delete a key
db.delete('user.name'); // Returns true
// Add to a number
db.set('counter', 10);
db.add('counter', 5); // counter is now 15
// Subtract from a number
db.subtract('counter', 3); // counter is now 12
// Push to an array
db.set('users', ['Alice']);
db.push('users', 'Bob'); // users is now ['Alice', 'Bob']
// Remove elements from an array
db.pull('users', user => user === 'Alice'); // users is now ['Bob']
// Get all data
const allData = db.all();
// Returns: [{ ID: 'user', data: { name: 'John' }}, { ID: 'counter', data: 12 }]
// Clear database
db.clear();
new SimpleBDB(options)
Options:
filePath (string, optional): Path to the database file. Default: 'database.bdb'autoSave (boolean, optional): Whether to automatically save changes. Default: truecachedData (boolean, optional): Whether to cache data for making less read request to your os. Default: trueset(key, value)Sets a value in the database.
get(key, defaultValue = null)Gets a value from the database.
has(key)Checks if a key exists.
delete(key)Deletes a key from the database.
add(key, amount)Adds a number to a value.
subtract(key, amount)Subtracts a number from a value.
push(key, value)Pushes a value to an array.
pull(key, callback)Removes elements from an array using a filter function.
all()Gets all data from the database.
save()Manually saves data to the database file.
clear()Clears all data from the database.
FAQs
A lightweight, simple binary database for Node.js applications. SimpleBDB uses MsgPack encoding for efficient storage and fast access, making it perfect for small to medium-sized projects.
We found that simple-bdb demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.