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

@zepdb/zeppelin-embed

v0.4.2

Published

In-process vector search for macOS (Apple silicon and Intel) and Windows x64

Readme

Zeppelin Embed for Node.js

@zepdb/zeppelin-embed provides in-process vector, text and hybrid search for macOS on Apple silicon and Intel, and for Windows x64. The package uses stable Node-API and includes its native engine, so it does not need a separate dynamic library at runtime.

npm install @zepdb/zeppelin-embed
const { Store } = require('@zepdb/zeppelin-embed');

const store = new Store('my-index');
store.ingest(
  [{ id: 1n, vector: new Float32Array([0.9, 0.1]) }],
  2,
);

console.log(store.search(new Float32Array([0.8, 0.2]), 1));
store.close();

Applications supply document and query vectors. Document IDs are unsigned 128-bit bigint values. Close each store when it is no longer needed; the native finalizer also closes an open handle if the JavaScript object is collected.

Namespaces add typed records without changing the existing vector API:

const { openNamespace, listNamespaces } = require('@zepdb/zeppelin-embed');

const store = openNamespace('my-database', 'documents', {
  attributes: [{ id: 1, name: 'category', type: 'dictionaryString' }],
  vectorSpace: { dimensions: 2 },
});
store.upsert([{
  id: 1n,
  vector: new Float32Array([0.9, 0.1]),
  text: 'stored text',
  attributes: [{ id: 1, type: 'string', value: 'example' }],
}]);
console.log(store.get([1n]));
console.log(store.scan({ limit: 100 }));
console.log(listNamespaces('my-database'));
store.close();

Omit vectorSpace for a record-only namespace. Scan cursors are opaque and must be passed back unchanged; a cursor invalidated by a write throws ZE_ERR_SCAN_STALE.

query runs one structured query. text selects the lexical leg, vector selects the vector leg, and both together run hybrid fusion; a request with neither is refused.

const { CancellationToken } = require('@zepdb/zeppelin-embed');

// Lexical, with the last term treated as a type-ahead prefix.
store.query({ text: 'harb', k: 10, lastAsPrefix: true });

// Hybrid, with an explicit fusion weight.
const result = store.query({
  text: 'harbour lights',
  vector: new Float32Array([0.9, 0.1]),
  k: 10,
  alpha: 0.75,
});
console.log(result.mode, result.fusion.effectiveAlpha, result.hits);

Each hit carries id, score, and the per-leg lexicalBm25 and vectorSquaredL2 when that leg ran; revision is absent on a fused hit, which carries identity only. The result carries the queried generation, the mode that ran, the approximate, exactRescore, and budgetExhausted flags, and a fusion report when both legs ran.

A query stops early on either a deadlineNs or a cancelToken, never both. A CancellationToken owns an engine handle, so close it:

const token = new CancellationToken();
try {
  const hits = store.query({ text: 'harbour', k: 10, cancelToken: token });
  // token.cancel() from elsewhere asks any query holding it to stop.
} finally {
  token.close();
}

A lexical query works on a record-only namespace. A hybrid query there throws ZE_ERR_NO_VECTOR_SPACE.

The package supports Node.js 18 or newer on macOS arm64 and macOS x64, and Node.js with Node-API 8 or later on Windows x64. Unsupported platforms fail during installation and report a clear error if the package is loaded directly.

macOS ships one binary per architecture and no per-runtime variant. The addon is a bundle built with -undefined dynamic_lookup, so its Node-API symbols resolve from whichever host process loads it and the same file works in Node and in Electron.

On Windows the loader picks the binary from process.platform, process.arch, and process.versions.electron, with no try-each fallback. Under Electron it accepts only the majors this package ships a binary for, currently 44; any other runtime is refused by name with UnsupportedRuntimeError. The Windows addon links the Visual C++ runtime, so the machine needs the Visual C++ redistributable.

Zeppelin Embed is licensed under GPL-3.0-only.