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.
autobase-flow
Advanced tools
Autobase Flow is a high-level wrapper for Autobase that integrates an operator pipeline for efficient update processing. This utility simplifies the creation and management of an Autobase instance while ensuring sequential operation execution.
npm install autobase-flow
import { createAutobaseWithPipeline } from "autobase-flow";
const autobaseInstance = createAutobaseWithPipeline({
getCorestore: () => myCorestoreInstance, // Function returning a Corestore
key: "your-autobase-key", // Optional Z32-encoded string or Buffer
view: { myView: "json" }, // Single view as an object
autobaseEncoding: "json", // Default: "json"
initialOperators: [op1, op2] // Optional array of operator functions
});
Autobase Flow supports multiple views, allowing you to define multiple perspectives on the data:
const autobaseInstance = createAutobaseWithPipeline({
getCorestore: () => myCorestoreInstance,
view: {
mainView: "json",
auditLog: "binary"
}
});
createAutobaseWithPipeline(config)
Creates and returns an Autobase instance with pipeline utilities.
config.getCorestore
(Function, required): Function returning a Corestore instance.config.key
(String | Buffer, optional): Z32-encoded key or Buffer for an existing Autobase.config.view
(String | Object | Array, required):
string
, it represents a single view name (default encoding: "json").object
, it should map view names to their respective encodings.array
, it should be a list of { name, valueEncoding }
objects.config.autobaseEncoding
(String, optional, default: "json"): Encoding format for Autobase logs.config.initialOperators
(Array of Functions, optional): Initial pipeline operators.const {
autobase, // The Autobase instance
base, // Alias for autobase
update, // Updates Autobase
append, // Appends data
getKeys, // Retrieves Autobase keys
getView, // Returns a single or multiple views
get, // Retrieves a value from a view
addOperator, // Adds an operator to the pipeline
removeOperator, // Removes an operator from the pipeline
close // Closes the Autobase instance
} = autobaseInstance;
await autobaseInstance.append({ message: "Hello, Autobase!" });
await autobaseInstance.update();
const view = await autobaseInstance.getView();
console.log(await view.get(0)); // Output: { message: "Hello, Autobase!" }
const auditLog = await autobaseInstance.getView("auditLog");
console.log(await auditLog.get(0)); // Output: Binary data for audit logs
MIT License © 2025
FAQs
A high-level Autobase wrapper with a dynamic operator pipeline.
The npm package autobase-flow receives a total of 0 weekly downloads. As such, autobase-flow popularity was classified as not popular.
We found that autobase-flow 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
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.