Skip to main content
The CyborgDB JavaScript/TypeScript SDK is a client for the CyborgDB service. It creates encrypted indexes, upserts and retrieves vectors, runs vector, hybrid (BM25 + vector), and metadata-only queries, and manages per-index users. It ships TypeScript types and runs on Node.js 18+, Bun, Deno, modern browsers, Vercel Edge Runtime, and Cloudflare Workers. The package is available on npm and the source code is on GitHub.

Installation

The package has no runtime dependencies.

LangChain

The LangChain vector store, CyborgVectorStore, is a separate entry point, so the main package doesn’t require LangChain:
@langchain/core ^1.0.0 is an optional peer dependency. Since v0.18, CyborgVectorStore is no longer exported from 'cyborgdb' itself.

Prerequisites

The SDK needs a running CyborgDB service:
See the quickstart guides for Docker and Python.

Supported runtimes

The SDK ships as a single dependency-free bundle and imports on any JavaScript runtime with fetch and Web Crypto: The main cyborgdb entry point does not import @langchain/core — install it (as an optional peer) and import from the cyborgdb/integrations/langchain subpath only if you use the LangChain integration.