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

@anvailabs/proximadb-client

v0.7.0

Published

TypeScript/Node.js SDK for ProximaDB vector database

Readme

ProximaDB Embedded for Node.js

Zero-overhead embedded vector database for Node.js using NAPI-RS bindings to ProximaDB's Rust core.

Features

  • Zero Network Overhead - Direct in-process access to Rust core
  • Multi-Disk Support - Configure multiple storage locations with weighted distribution
  • SIMD Acceleration - Automatic AVX2/NEON optimization
  • Full Persistence - WAL with configurable sync modes
  • TypeScript Support - Full type definitions included

Installation

npm install proximadb-embedded

Quick Start

const { ProximaDB } = require('proximadb-embedded');

// Create database with simple configuration
const db = new ProximaDB({ dataDir: './my_database' });

// Or with multi-disk support
const dbMulti = new ProximaDB({
  dataDirs: [
    { path: '/nvme/data', weight: 2 },  // Fast SSD - gets more data
    { path: '/hdd/data', weight: 1 },   // Slower HDD
  ],
  metadataDir: '/nvme/metadata',
  cacheSizeMb: 2048,
});

// Create collection
db.createCollection('embeddings', 768, 'sst');

// Insert vectors
const ids = ['doc_0', 'doc_1', 'doc_2'];
const vectors = [
  [0.1, 0.2, /* ... 768 dimensions */],
  [0.3, 0.4, /* ... */],
  [0.5, 0.6, /* ... */],
];
const metadata = [
  { category: 'tech' },
  { category: 'science' },
  { category: 'tech' },
];

db.insert('embeddings', ids, vectors, metadata);

// Search for similar vectors
const query = [0.1, 0.2, /* ... */];
const results = db.search('embeddings', query, 10);

for (const r of results) {
  console.log(`${r.id}: score=${r.score.toFixed(4)}`);
}

// Flush to ensure durability
db.flush();

TypeScript

import { ProximaDB, SearchResult, CollectionInfo } from 'proximadb-embedded';

const db = new ProximaDB({ dataDir: './data' });

db.createCollection('vectors', 128);

const results: SearchResult[] = db.search('vectors', query, 10);
const info: CollectionInfo | null = db.getCollection('vectors');

API Reference

Constructor

new ProximaDB(config?: ProximaDBConfig)

Configuration options:

  • dataDir - Single data directory path
  • dataDirs - Array of disk configurations for multi-disk
  • metadataDir - Metadata storage path
  • cacheSizeMb - Cache size in MB (default: 512)
  • defaultEngine - Storage engine: "sst" (recommended), "nova", "helix", etc. (viper is DEPRECATED — see ADR-093, do not select for new collections)
  • enableWal - Enable write-ahead logging (default: true)
  • walSyncMode - WAL sync: "immediate", "batch", "async"

Methods

createCollection(name, dimension, engine?)

Create a new vector collection.

deleteCollection(name)

Delete a collection.

getCollection(name)

Get collection information or null.

listCollections()

List all collections.

insert(collection, ids, vectors, metadata?)

Insert vectors. Returns count inserted.

search(collection, query, topK?, filter?)

Search for similar vectors. Returns array of results.

flush()

Flush pending writes to disk.

stats()

Get storage statistics.

Storage Engines

| Engine | Best For | |--------|----------| | sst | OLTP, real-time queries (default) | | nova | Mixed workloads, columnar analytics | | swift | Hot data, low latency | | raptor | Adaptive, multi-tenant | | helix | High-dimensional vectors |

Building from Source

Prerequisites

  • Node.js 16+
  • Rust 1.88+
  • @napi-rs/cli

Build Steps

# Install NAPI CLI
npm install -g @napi-rs/cli

# Build the package
cd clients/nodejs-embedded
npm install
npm run build

License

Apache License 2.0

Links