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

@infino-ai/langchain-infino

v0.0.1

Published

LangChain VectorStore for Infino — vector, full-text (BM25), hybrid (RRF), and SQL-native retrieval over one copy of your data on object storage.

Readme

@infino-ai/langchain-infino

npm License

LangChain.js over Infino — vector, full-text (BM25), hybrid (RRF), and SQL-native retrieval over one copy of your data on object storage.

Most "vector database" LangChain integrations expose only the vector slice of their engine. Infino keeps your data in Apache Parquet on object storage and runs BM25, vector, hybrid, and SQL retrieval over it from a single in-process engine — no separate search cluster or vector store to keep in sync. This package surfaces that whole retrieval surface, not just similaritySearch.

Infino never embeds: you bring a LangChain Embeddings object and the integration supplies the vectors.

Installation

npm install @infino-ai/langchain-infino @langchain/core @infino-ai/infino

Runtime: @infino-ai/infino is a native Node addon, so this runs in a Node.js runtime (incl. Node serverless functions) — not the Edge runtime or the browser. On serverless, point the catalog at object storage (s3://…), since there's no persistent local disk.

Quickstart

import { connect } from "@infino-ai/infino";
import { OpenAIEmbeddings } from "@langchain/openai";
import { InfinoVectorStore } from "@infino-ai/langchain-infino";

// A local path or an s3://bucket/prefix for durable storage; "memory://" is ephemeral.
const connection = connect("./data");
const embeddings = new OpenAIEmbeddings(); // dim must match the table — 1536 here

const store = await InfinoVectorStore.fromTexts(
  ["Infino runs search on object storage.", "One engine for SQL, BM25, and vectors."],
  [{ source: "docs" }, { source: "docs" }],
  embeddings,
  {
    connection,
    tableName: "docs",
    dim: 1536,
    // Promote metadata keys to filterable scalar columns:
    metadataColumns: { source: "large_utf8" },
  },
);

const docs = await store.similaritySearch("search on S3", 2);

// Metadata filtering (compiled to a SQL WHERE over the promoted columns):
const filtered = await store.similaritySearch("search", 2, { source: { $eq: "docs" } });

// The whole retrieval surface, not just vectors:
const hybrid = await store.hybridSearch("search on object storage", 4); // BM25 + vector, RRF-fused
const lexical = await store.bm25Search("object storage", 4);

const retriever = store.asRetriever();

Core concepts

  • One table, one copy of the data. doc_id (FTS-indexed) + page_content (FTS-indexed) + embedding + any promoted metadata columns + a JSON catch-all for the rest. BM25, vector, hybrid, and SQL all run over it.
  • Bring your own embeddings. Pass any LangChain Embeddings; dim must match the model and the table's vector column.
  • Filtering. filter is a structured metadata predicate ($eq, $ne, $gt/$gte/$lt/$lte, $in/$nin, $and/$or/$not) compiled to a SQL WHERE over the promoted metadata columns — declare those in metadataColumns at table creation.

API

  • InfinoVectorStore.fromTexts(texts, metadatas, embeddings, dbConfig) / fromDocuments(docs, embeddings, dbConfig) — create the table and insert.
  • addDocuments / addVectors — upsert by id (re-adding overwrites).
  • similaritySearch / similaritySearchWithScore / similaritySearchVectorWithScore (filter supported).
  • maxMarginalRelevanceSearch(query, { k, fetchK, lambda, filter }).
  • hybridSearch(query, k) (BM25 + vector, RRF) · bm25Search(query, k, mode).
  • getByIds(ids) · delete({ ids }) · asRetriever().

dbConfig: { connection, tableName, dim, metric?, nCent?, textColumn?, vectorColumn?, idColumn?, metadataColumns? }.