npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

immudb-wasm

v0.2.0

Published

Embed immudb in Node.js, in-process, via WASM + WASI — an append-only, cryptographically verifiable KV + SQL store. No server, no container, no native prebuilds.

Downloads

210

Readme

immudb-wasm

Embed immudb in Node.js — in-process, via WASM + WASI. An append-only, cryptographically verifiable KV + SQL store with no server, no container, and no native prebuilds: one portable immudb.wasm that runs anywhere Node 22+ runs (macOS/Linux/Windows, any arch).

npm install immudb-wasm

Quick start

import { open } from 'immudb-wasm';

const db = open('./data');            // creates the dir if needed

db.set('hello', 'world');
db.get('hello').value.toString();     // 'world'

// tamper-evident, cryptographically verified read (in-process, no server)
const v = db.verifiedGet('hello');
// { found: true, value: <Buffer>, verified: true, txId, rootTxId, rootHash }

// embedded SQL
db.sqlExec('CREATE TABLE items (id INTEGER, name VARCHAR, PRIMARY KEY id)');
db.sqlExec("UPSERT INTO items (id, name) VALUES (1, 'widget')");
db.sqlQuery('SELECT id, name FROM items ORDER BY id');
// { columns: ['id','name'], rows: [[1,'widget']] }

db.close();

API

| Method | Description | |---|---| | open(dir) | Open/create a store at dir. Single-writer: throws if already open. | | db.set(key, value) | Write; returns the transaction id. Keys/values are string \| Uint8Array \| Buffer. | | db.get(key) | { value: Buffer, tx } or null. | | db.scan(prefix, limit?) | Entries whose key starts with prefix, ascending. | | db.verifiedGet(key) | Verified read: { found, value, verified, txId, rootTxId, rootHash }. | | db.sqlExec(sql) / db.sqlQuery(sql) | Embedded SQL. | | db.close() | Close and release the lock. |

How verification works

verifiedGet performs a real client-side proof, entirely inside the wasm module:

  1. read the store's current committed root as the trust anchor;
  2. prove the value is included in its committing transaction (inclusion proof);
  3. prove that transaction is consistent with the current root (dual proof).

Both proofs always run, including for the most recently written key. These are immudb's native store-level primitives — no server, no gRPC, no protobuf.

The anchor is this store's own root, so verification detects tampering within the data directory. It does not by itself detect wholesale replacement of the directory with a different but internally consistent store.

Notes and limits

  • Node 22+. Earlier versions abort the process inside node:wasi rather than raising an error; open() fails fast with an explanation instead.
  • Single writer. open takes a lockfile in the data directory and rejects a second open, in this or any other process.
  • Entry sizes. Keys up to 1023 bytes (immudb's 1 KB engine ceiling less the key-space prefix); values up to 1 MiB. These are fixed when a store is created, so a store created before 0.2.0 keeps immudb's 4 KB value default.
  • Durability. WASI preview 1 has no directory-fsync primitive, so directory syncs are a no-op (file data still syncs via fd_sync).
  • Performance. Roughly 2–5× slower than native immudb, dominated by fsync cost. Suited to embedded and audit-log workloads, not high-throughput serving.
  • Directory sandbox. The module only ever sees the one preopened directory.

Related

License

BUSL-1.1 (this packages the immudb engine). See LICENSE.