madapes

@madapes/edge-storage (0.1.17)

Published 2026-03-27 05:44:17 +00:00 by vlad

Installation

@madapes:registry=
npm install @madapes/edge-storage@0.1.17
"@madapes/edge-storage": "0.1.17"

About this package

Edge Storage Node.js Binding

High-performance, embedded data store powered by libmdbx.

This package provides Node.js bindings for the Edge Storage library.

Documentation

Full documentation is available on the Project Wiki.

Installation

npm install @madapes/edge-storage

Quick Start

const { EdgeStorageDB } = require('@madapes/edge-storage');

async function main() {
    const db = EdgeStorageDB.open('./my_database.mdbx');

    // KV Store
    await db.put(Buffer.from('hello'), Buffer.from('world'));
    const value = await db.get(Buffer.from('hello'));
    console.log('Value:', value?.toString());

    // Aggregate Store
    await db.aggregatePut(Buffer.from('order:1'), 1, Buffer.from('{}'));
    const latest = await db.aggregateGetLatest(Buffer.from('order:1'));
    console.log('Latest Version:', latest.version);
}

main();

License

MIT OR Apache-2.0

Files

  • index.js — Main entry point exporting the EdgeStorageDB class.
  • index.d.ts — TypeScript definitions for type safety.
  • package.json — Package metadata and script definitions.
  • src/lib.rs — Rust source code for the N-API binding.
  • test.mjs — Simple test script to verify functionality.

Dependencies

Development Dependencies

ID Version
@napi-rs/cli ^2.18.4
@types/node ^20.0.0
typescript ^5.0.0

Optional Dependencies

ID Version
@madapes/edge-storage-darwin-arm64 0.1.17
@madapes/edge-storage-darwin-x64 0.1.17
@madapes/edge-storage-linux-arm64-gnu 0.1.17
@madapes/edge-storage-linux-x64-gnu 0.1.17
@madapes/edge-storage-win32-x64-msvc 0.1.17

Keywords

database embedded mdbx kv-store event-sourcing cache ttl
Details
npm
2026-03-27 05:44:17 +00:00
9
MIT
latest
2.7 MiB
Assets (1)
Versions (6) View all
0.1.17 2026-03-27
0.1.16 2026-02-15
0.1.15 2026-02-14
0.1.14 2026-02-13
0.1.13 2026-02-11