
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.
Pluggable TypeScript RAG toolkit — defineConfig() one file, embed → search → generate.
Pluggable TypeScript RAG toolkit — defineConfig() one file, embed → search → generate.
pnpm add ragpipe
# Scaffold a ragpipe.config.ts
npx ragpipe init
# Set up vector store schema
npx ragpipe setup
# Ingest documents
npx ragpipe ingest ./docs
# Ask a question
npx ragpipe ask "What is the refund policy?"
import { loadConfig, createPipeline } from "ragpipe";
const config = await loadConfig();
const rag = createPipeline(config);
await rag.ingest(markdownText, "docs/guide.md");
const result = await rag.ask("How does authentication work?");
console.log(result.answer);
console.log(result.sources.map((s) => s.source));
Create a ragpipe.config.ts at your project root:
import { defineConfig } from "ragpipe";
import { geminiEmbedding, geminiGeneration } from "@ragpipe/plugin-gemini";
import { supabaseVectorStore } from "@ragpipe/plugin-supabase";
export default defineConfig({
embedding: geminiEmbedding({
apiKey: process.env.GEMINI_API_KEY ?? "",
}),
vectorStore: supabaseVectorStore({
supabaseUrl: process.env.SUPABASE_URL ?? "",
supabaseKey: process.env.SUPABASE_SERVICE_ROLE_KEY ?? "",
}),
generation: geminiGeneration({
apiKey: process.env.GEMINI_API_KEY ?? "",
}),
});
defineConfig(config)Identity helper that provides type-safe autocompletion for your config file.
loadConfig(overrides?)Loads ragpipe.config.ts from the project root using c12. Validates that embedding, vectorStore, and generation plugins are present.
createPipeline(config)Returns a pipeline with three methods:
| Method | Description |
|---|---|
ingest(text, source) | Chunk text, embed each chunk, and store vectors. Returns chunk count. |
search(query, topK?) | Embed the query and return the top-K matching documents. |
ask(query, topK?) | Search for context, then generate an answer. Returns { answer, sources }. |
defaultChunker(options?)Built-in paragraph-based chunker. Options: chunkSize (default 500), overlap (default 50).
createRateLimitedEmbedder(plugin)Wraps an EmbeddingPlugin with throttling based on its rateLimit.delayMs.
Implement any of these to create a custom plugin:
EmbeddingPlugin — embed(text), optional embedMany(texts), rateLimitVectorStorePlugin — search(vector, topK), upsert(source, content, vector), optional clear(), disconnect()GenerationPlugin — generate(question, context, options?), optional generateStream()ChunkerPlugin — chunk(text, source)| Package | Description |
|---|---|
@ragpipe/plugin-gemini | Google Gemini embedding + generation |
@ragpipe/plugin-openai | OpenAI embedding + generation |
@ragpipe/plugin-ollama | Ollama local embedding + generation |
@ragpipe/plugin-cloudflare | Cloudflare Workers AI embedding + generation |
@ragpipe/plugin-supabase | Supabase pgvector store |
MIT
FAQs
Pluggable TypeScript RAG toolkit — defineConfig() one file, embed → search → generate.
We found that ragpipe 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.