
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@ragpipe/plugin-supabase
Advanced tools
Supabase vector store plugin for ragpipe, powered by @supabase/supabase-js.
pnpm add ragpipe @ragpipe/plugin-supabase
import { defineConfig } from "ragpipe";
import { supabaseVectorStore } from "@ragpipe/plugin-supabase";
export default defineConfig({
// ... embedding, generation
vectorStore: supabaseVectorStore({
supabaseUrl: process.env.SUPABASE_URL ?? "",
supabaseKey: process.env.SUPABASE_SERVICE_ROLE_KEY ?? "",
tableName: "documents", // default
queryName: "match_documents", // default RPC function name
}),
});
supabaseVectorStore(options)Returns a VectorStorePlugin backed by Supabase using the official JS SDK.
| Option | Type | Default | Description |
|---|---|---|---|
supabaseUrl | string | — | Supabase project URL (required) |
supabaseKey | string | — | Service role key (required) |
tableName | string | "documents" | Table to store documents |
queryName | string | "match_documents" | PostgreSQL function for vector search |
| Method | Description |
|---|---|
search(vector, topK) | Calls supabase.rpc() for cosine similarity search |
upsert(source, content, vector) | Inserts via supabase.from().upsert() with dedup on source,content |
clear() | Deletes all rows from the documents table |
disconnect() | No-op (Supabase JS client manages connections automatically) |
Run the following in your Supabase SQL editor:
-- 1. Enable pgvector
CREATE EXTENSION IF NOT EXISTS vector;
-- 2. Create the documents table
CREATE TABLE documents (
id BIGSERIAL PRIMARY KEY,
source TEXT NOT NULL,
content TEXT NOT NULL,
vector VECTOR(3072),
UNIQUE(source, content)
);
-- 3. Create the similarity search function
CREATE OR REPLACE FUNCTION match_documents(
query_embedding VECTOR(3072),
match_count INT DEFAULT 5
)
RETURNS TABLE (
source TEXT,
content TEXT,
similarity FLOAT
)
LANGUAGE plpgsql
AS $$
BEGIN
RETURN QUERY
SELECT
d.source,
d.content,
1 - (d.vector <=> query_embedding) AS similarity
FROM documents d
ORDER BY d.vector <=> query_embedding
LIMIT match_count;
END;
$$;
-- 4. Create an index for faster search
CREATE INDEX ON documents
USING ivfflat (vector vector_cosine_ops)
WITH (lists = 100);
Adjust VECTOR(3072) to match your embedding model's dimensions.
MIT
FAQs
Supabase pgvector vector store plugin for ragpipe
The npm package @ragpipe/plugin-supabase receives a total of 19 weekly downloads. As such, @ragpipe/plugin-supabase popularity was classified as not popular.
We found that @ragpipe/plugin-supabase demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.