# pgvector-node: 7.5 out of 10

A strong pick. 2nd of 9 in [Vector databases and clients](https://elestia.ai/opensource/vector-dbs/index.md).

pgvector-node (npm `pgvector`) is a small, zero-dependency helper that adds pgvector types and query helpers to Postgres clients and ORMs in Node.js, Deno and Bun. It is a strong choice when your data already lives in Postgres and you have up to a few million vectors. Teams that need horizontal scale should look at a dedicated vector database instead.

**Best for:** TypeScript teams already on Postgres who want vector search in the same database, through the client or ORM they already use.

## Scores

- **Overall: 7.5** (likely 6.5 to 8.5)
  - Claude Opus 5.5 (7.0): For the large group of JS teams already on Postgres, it is the standard way to use pgvector from Node, and it is safe, small and actively maintained. It ranks below a dedicated database only when you need horizontal scale or very large indexes. Teams on Drizzle or TypeORM may not need it. Reliance on one maintainer and the thin package-level validation keep it from scoring higher.
  - GPT-6.2 Sol (8.0): For a new feature in a PostgreSQL-backed app, this is a strong pick because embeddings can share the app’s schema, joins, and transactions. Qdrant is a stronger candidate when dedicated vector throughput and heavily filtered search drive the design. The recent client release supports a new adoption, while concentrated publishing access and sparse evidence for direct use of 0.3.1 keep the range wide.
- **Needed by many: 4.8** (likely 3.7 to 5.8)
  - Claude Opus 5.5 (5.0): Vector search for RAG and semantic search is a common need, and Postgres is the most common database for JS backends. Still, the package only serves people who use Postgres and want vectors in it. ORMs with built-in pgvector types narrow it further.
  - GPT-6.2 Sol (4.5): Embedding search serves a clear niche that includes semantic search, recommendations, and AI memory. PostgreSQL’s broad use and support across several JavaScript runtimes give the client a sizeable audience within that niche. The share of JavaScript and TypeScript teams that actually need vector search in PostgreSQL is uncertain.
- **Helps a lot: 7.6** (likely 6.5 to 8.6)
  - Claude Opus 5.5 (7.0): The helper does its small job well: it handles types, serialization, sparse and half vectors, and distance helpers for nearly every Postgres client, and it ships TypeScript types. The vector search itself comes from the pgvector extension. Independent write-ups put HNSW queries at 5-20 ms over 1M vectors, but say vector search needs careful tuning beyond 5-10M vectors and scales up on one server, not across servers. That keeps it below the dedicated databases at large scale.
  - GPT-6.2 Sol (8.1): Version 0.3.1 provides typed vector helpers and driver-specific examples that give developers and coding agents concrete patterns to follow. PostgreSQL handles exact search, HNSW and IVFFlat indexes, and joins with application data. Selective filters can require tuning to get enough results, and Qdrant was faster in an independent single-node benchmark. That benchmark measures the database engines, so JavaScript client performance remains less certain.
- **Holds up over time: 7.2** (likely 5.5 to 8.2)
  - Claude Opus 5.5 (7.0): The repository had 112 commits in the last year and npm releases in May and November 2026, with only one open issue. It belongs to the pgvector organization, whose extension is a de facto standard on managed Postgres. The risk is a small team of three contributors with one main maintainer. The 0.3.0 release also broke some code by going ESM only and dropping Node below 22.
  - GPT-6.2 Sol (7.3): The client recorded 112 commits and two npm releases in the past year, including a November patch. The PostgreSQL extension has an active roadmap, and the client addressed a reported Sequelize typing gap after about four months. The ESM migration and Node 22 minimum created upgrade work, while a single listed npm collaborator and unclear long-term funding widen the range.
- **Used widely: 5.3** (likely 4.0 to 6.6)
  - Claude Opus 5.5 (6.0): Downloads rose from 483k to 4.17M per four weeks, a ratio of about 8.6, well above the 4.1 median. That puts it near the Pinecone and Qdrant clients. ecosyste.ms finds only 8 dependent repositories, though, far below the peers, so much of the volume probably comes from installs by other frameworks, such as LlamaIndex's Postgres store, or from build servers. Many Postgres users also get vector support from Drizzle or TypeORM without this package, which hides real use of pgvector.
  - GPT-6.2 Sol (4.6): Downloads rose 8.6× to 4.17 million per four weeks, well above the catalog’s 4.1× median. Ecosyste.ms indexed only eight dependent repositories, far fewer than for Pinecone or Qdrant, while npm lists 112 dependent packages. Repeat installs and downstream packages inflate download counts, so the growth signal is clearer than the number of projects choosing the client directly.
- **Vouched for: 6.4** (likely 4.7 to 7.5)
  - Claude Opus 5.5 (6.0): The pgvector approach has wide independent backing: Databricks, Encore, Aiven and many others recommend it as the default for apps already on Postgres. AI frameworks such as LlamaIndex.TS and LangChain.js document pgvector integrations. This Node package has little independent coverage of its own, with no Hacker News or Bluesky attention, so most of the validation belongs to the extension.
  - GPT-6.2 Sol (6.7): CopilotKit’s Pathfinder directly depends on the JavaScript package, though its manifest still specifies the 0.2 series. CORTO reports running the PostgreSQL extension in production at scale, and another team reports using it on Neon. Most external performance and production evidence covers the extension, leaving less direct evidence for the current client.
- **Safe: 8.2** (likely 7.1 to 9.2)
  - Claude Opus 5.5 (8.0): It has zero runtime dependencies, an MIT licence and no OSV advisories, so the attack surface is very small. There is no OpenSSF Scorecard, and releases appear to come from a single maintainer, which leaves some publishing risk.
  - GPT-6.2 Sol (8.3): The MIT-licensed npm package has zero runtime dependencies, a published security contact, and zero recorded OSV advisories. npm lists one collaborator, release provenance remains unverified, and the collector has no Scorecard result. Deployments also depend on server-side patching, including the serious IVFFlat vulnerability fixed in extension version 0.8.7.

## Good

- One package covers node-postgres, Postgres.js, Knex, Kysely, Sequelize, Prisma, TypeORM, MikroORM, Drizzle, Bun SQL and more.
- It has zero runtime dependencies, an MIT licence and no known advisories.
- It supports vector, halfvec, sparsevec and bit types, with distance helpers and examples for HNSW indexes.
- Embeddings live in the same tables and transactions as the app's data, so there is no second store to keep in sync.

## Bad

- It is a thin client layer, so scale and speed depend on the Postgres server, and vector search scales up on one server rather than across servers.
- Almost all the work comes from one maintainer, with three contributors in total.
- Version 0.3.0 switched to ESM only, required Node 22 or newer, and deprecated older helper functions, so upgrades take some care.
- Drizzle and TypeORM now support pgvector natively, so many users do not need this package at all.

## The numbers

- Downloads, 4 weeks: 4.2M
- In a year: ×8.6
- GitHub stars: 445
- Commits, 12 months: 112
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/pgvector/pgvector-node
- npm: https://www.npmjs.com/package/pgvector

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
