JavaScript vector database libraries

Updated Nov 2026

JavaScript vector database libraries store embeddings and find the stored items closest to a query vector. A client either calls a hosted or self-run vector database over HTTP or gRPC or runs an embedded index inside the application process. These libraries let AI agents and search features retrieve relevant documents by meaning.

Popularity

Orama, whose count also covers full-text search, has the most monthly downloads in this comparison, at 7.9M.

LibraryMonthly downloadsStarsLast releaseLicense
Orama
7.9M
10.6KDec 2025Apache-2.0
Pinecone TypeScript SDK
4.2M
279Nov 2026Apache-2.0
pgvector-node
4.1M
446Nov 2026MIT
@qdrant/js-client-rest
3.7M
473Oct 2026Apache-2.0
LanceDB
2.4M
11.9KOct 2026Apache-2.0
weaviate-client
1.9M
101Oct 2026BSD-3-Clause
chromadb
1.1M
29.7KJun 2026Apache-2.0
@zilliz/milvus2-sdk-node
866.5K
199Nov 2026Apache-2.0
Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

Performs vector search natively as an embedded database.

Downloads / mo
7.9M
Stars
10.6K
Last release
3.1.18
License
Apache-2.0

Quickstart

From vector-search.mdx
$ npm install @orama/orama@3.1.18
import { create, insert, search } from "@orama/orama";
const db = create({ schema: { text: "string", embedding: "vector[3]" } });
await insert(db, { id: "doc-1", text: "Example document", embedding: [1, 0, 0] });
const result = await search(db, {
  mode: "vector", vector: { property: "embedding", value: [1, 0, 0] },
});
console.log(result.hits);

Orama examples

From open-source projects on GitHub

Pinecone TypeScript SDK

Provides typed APIs for Pinecone indexes, document records, and vector queries.

Downloads / mo
4.2M
Stars
279
Last release
9.2.0
License
Apache-2.0

Strengths

  • Scopes data by namespace. Select a namespace before querying or updating its records.
  • Accepts vectors or hosted embeddings. Bring numeric vectors or use a supported hosted embedding model.

Limitations

  • Vector metadata excludes nested objects. Use flat key-value pairs for legacy vector-index metadata.
  • Document searches rank one signal. Fuse separate ranked lists to combine several ranking signals.

Quickstart

From README.md
$ npm install @pinecone-database/pinecone@9.2.0
import { Pinecone } from "@pinecone-database/pinecone";
const client = new Pinecone();
console.log(await client.listIndexes());

Pinecone TypeScript SDK examples

From open-source projects on GitHub

Adds pgvector support to Node.js, Deno, and Bun.

Downloads / mo
4.1M
Stars
446
Last release
0.3.1
License
MIT

Quickstart

From README.md
$ npm install pgvector@0.3.1 pg
import pg from "pg";
import pgvector from "pgvector/pg";
const client = new pg.Client({ connectionString: process.env.DATABASE_URL });
await client.connect();
await pgvector.registerTypes(client);
const result = await client.query("SELECT $1::vector AS embedding", [pgvector.toSql([1, 2, 3])]);
console.log(result.rows[0].embedding);
await client.end();

pgvector-node examples

From open-source projects on GitHub

@qdrant/js-client-rest

Provides a JavaScript REST client for the Qdrant vector search engine.

Downloads / mo
3.7M
Stars
473
Last release
1.20.0
License
Apache-2.0

Strengths

  • Searches vectors with payload filters. Apply record conditions alongside a vector query.
  • Combines multiple retrieval stages. Fuse dense and sparse results or rerank prefetched candidates.

Limitations

  • Vector fields need matching dimensions. Match stored vectors to their configured size and distance metric.

Quickstart

From qdrant-client.ts
$ npm install @qdrant/js-client-rest@1.20.0
import { QdrantClient } from "@qdrant/js-client-rest";
const client = new QdrantClient({ url: "http://localhost:6333" });
console.log(await client.getCollections());

@qdrant/js-client-rest examples

From open-source projects on GitHub

Stores records in tables inside a LanceDB database.

Downloads / mo
2.4M
Stars
11.9K
Last release
0.41.0
License
Apache-2.0

Quickstart

From README.md
$ npm install @lancedb/lancedb@0.41.0
import { connect } from "@lancedb/lancedb";
const db = await connect("./library-vectors");
const table = await db.createTable("library_starter", [
  { id: "doc-1", text: "Example document", vector: [1, 0, 0] },
]);
console.log(table.name);

LanceDB examples

From open-source projects on GitHub

weaviate-client

Provides a JavaScript and TypeScript client for Weaviate.

Downloads / mo
1.9M
Stars
101
Last release
3.15.3
License
BSD-3-Clause

Quickstart

From index.d.ts
$ npm install weaviate-client@3.15.3
import { connectToLocal } from "weaviate-client";
const client = await connectToLocal();
try {
  console.log(await client.getMeta());
} finally {
  await client.close();
}

weaviate-client examples

From open-source projects on GitHub

Provides a JavaScript interface for Chroma collections.

Downloads / mo
1.1M
Stars
29.7K
Last release
3.5.0
License
Apache-2.0

Strengths

  • Stores documents with their embeddings. Keep IDs, documents, and metadata alongside indexed vectors.
  • Offers reusable embedding functions. Attach an embedding function or supply embeddings directly.

Limitations

  • Hybrid search requires Chroma Cloud. Use collection.query for ordinary local vector search.
  • Query vectors must match dimensions. Use the same embedding dimensions as the collection.

Quickstart

From getting-started.mdx
$ npm install chromadb@3.5.0
import { ChromaClient } from "chromadb";
const client = new ChromaClient({ host: "localhost", port: 8000 });
console.log(await client.heartbeat());

chromadb examples

From open-source projects on GitHub

@zilliz/milvus2-sdk-node

Provides gRPC and HTTP clients for Milvus similarity search, metadata filtering, and collection management.

Downloads / mo
866.5K
Stars
199
Last release
3.0.8
License
Apache-2.0

Quickstart

From README.md
$ npm install @zilliz/milvus2-sdk-node@3.0.8
import { MilvusClient } from "@zilliz/milvus2-sdk-node";
const client = new MilvusClient({ address: "localhost:19530" });
console.log(await client.showCollections());

@zilliz/milvus2-sdk-node examples

From open-source projects on GitHub

FAQ

Pinecone suits teams that want a managed vector service. pgvector-node suits apps that already store data in PostgreSQL. Orama and LanceDB suit embedded search that runs inside the application.

A vector database stores embeddings and returns the stored items nearest to a query embedding. An embedding is a list of numbers that a model produces to represent the meaning of text or images.

Qdrant is an open-source vector search engine. Its JavaScript REST client manages collections and runs vector queries with payload filters.

LanceDB is an embedded vector database that keeps tables of records on local disk or object storage. Its Node.js package runs inside the application process.

pgvector is a PostgreSQL extension that adds a vector column type and nearest-neighbor search. pgvector-node adds support for that type in Node.js, Deno, and Bun.

Pinecone runs only as a managed cloud service. Qdrant is open source and runs self-hosted or as a managed cloud.

For coding agents

Found your vector database library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official