Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Basebee is a powerful key-value store built on top of Autobase and Hyperbee, designed to efficiently manage data with customizable key/value encodings, prefix-based key organization, and batch operations. It integrates stream-based APIs for handling key-v
Basebee is a flexible key-value store built on top of Autobase and Hyperbee, designed for efficient data management with custom key/value encodings, prefix-based key organization, batch operations, and a stream-based API.
Note: This is an alpha release . It is not yet stable, and additional testing is required before it is officially released.
put
, del
, addWriter
, and removeWriter
.0.0.1-alpha
Once Basebee is officially released, detailed installation instructions and usage examples will be provided.
Hyperbee:
gte
or lte
) when querying the data.binary
, utf-8
, etc.).Basebee:
gte
, lte
, etc.) automatically, so you don’t have to manually manage or filter them when querying the data.createPrefixFilteringStream
) to ensure that only the keys within the specified prefix are retrieved when running queries.Hyperbee (Manual Prefixing):
const prefix = 'main';
const key = prefix + ':some-key';
await hyperbee.put(key, value);
const result = await hyperbee.get(key);
Querying with manual range:
const prefix = 'main';
const resultStream = hyperbee.createReadStream({
gte: prefix + ':',
lte: prefix + ':\xff'
});
Basebee (Automatic Prefixing):
const db = new Basebee(store, { prefix: 'main' });
await db.put('some-key', value);
const result = await db.get('some-key');
Querying with automatic prefix handling:
const resultStream = db.createReadStream(); // Automatically handles prefix
Conflict Strategy:
useConflictStrategy
flag to handle write conflicts, typically by using a last-write-wins (LWW) strategy where the latest entry overwrites previous ones based on a timestamp.Batching:
Autobase
workflow, which can include multiple writers.Multiple Writers:
Autobase Integration:
Streams and Read Options:
Both support streams (createReadStream
, createHistoryStream
, etc.), but Basebee automatically applies prefixes to these streams, filtering out irrelevant keys and simplifying access to specific namespaces.
Metadata Handling:
If you are building a system that requires managing data across different namespaces or handling multiple writers with conflict resolution, Basebee abstracts a lot of the complexity, especially when it comes to prefix management.
put(key, value, options)
Insert a key-value pair into the store with the provided key encoding and value encoding.
get(key, options)
Retrieve a value by its key, with support for custom key and value encodings.
del(key, options)
Delete a key-value pair by its key.
batch()
Create a batch of operations, allowing multiple put
, del
, addWriter
, and removeWriter
calls to be committed in a single transaction.
createReadStream(options)
: Stream key-value pairs over a specified range.createHistoryStream(options)
: Stream historical changes to key-value pairs.createDiffStream(options)
: Stream differences between states.watch(options)
: Watch for real-time changes.Basebee is licensed under the MIT License.
Note: This alpha version is not intended for production use.
FAQs
Basebee is a powerful key-value store built on top of Autobase and Hyperbee, designed to efficiently manage data with customizable key/value encodings, prefix-based key organization, and batch operations. It integrates stream-based APIs for handling key-v
The npm package basebee receives a total of 0 weekly downloads. As such, basebee popularity was classified as not popular.
We found that basebee demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.