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

cuvs-index

v0.1.0

Published

Indexing and query engine built on 638Labs cuvs-node, an open-source Node.js binding for NVIDIA cuVS. Schema-driven GPU-accelerated vector search

Readme

cuvs-index

Indexing and query engine built on NVIDIA cuVS - schema-driven GPU-accelerated vector search for Node.js.

Built on cuvs-node by 638Labs, an open-source, native C++ Node.js bindings for NVIDIA cuVS. GPU-accelerated vector search, in-process, no Python required.

cuvs-index adds three things on top of raw cuvs-node:

  1. Schema definitions: declare entities, fields (string/number/enum/vector), and vector indexes.
  2. Storage adapters: pluggable backends (in-memory, DynamoDB, MongoDB) for the structured side of your data.
  3. Hybrid queries: combine structured filters (where) with vector similarity (similar) in a single query.

Design principle

cuvs-index is usable and testable without a GPU. A mock cuvs-node implementation (src/mock-cuvs.js) lets you develop and run tests on any machine. Integration tests against the real cuvs-node run on GPU instances.

Quick example

import { defineSchema, createEngine } from 'cuvs-index';
import { memoryAdapter } from 'cuvs-index/adapters/memory';
import * as mockCuvs from 'cuvs-index/mock-cuvs';
// On a GPU box, swap mockCuvs for: import * as cuvs from 'cuvs-node';

const schema = defineSchema({
  entities: {
    doc: {
      fields: {
        id: { type: 'string' },
        category: { type: 'enum', values: ['blog', 'news'], filterable: true },
        embedding: { type: 'vector', dimensions: 768 },
      },
      vectorIndex: { field: 'embedding', algorithm: 'cagra', params: { graphDegree: 32 } },
    },
  },
});

const engine = createEngine({
  schema,
  adapter: memoryAdapter(),
  cuvs: mockCuvs,
  gpu: { deviceId: 0 },
});

await engine.insert('doc', { id: '1', category: 'blog', embedding: [/* 768 floats */] });

const results = await engine.query({
  entity: 'doc',
  where: { category: 'blog' },
  similar: { vector: [/* 768 floats */], k: 10 },
  limit: 5,
});

Adapters

  • adapters/memory: in-memory Map, no dependencies. Good for tests and dev.
  • adapters/dynamodb: stub. TODO.
  • adapters/mongodb: stub. TODO.

Custom adapters implement the StorageAdapter shape documented in src/adapters/types.js.

Tests

node --test tests/

License

Apache-2.0