
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
@ragpipe/plugin-cloudflare
Advanced tools
Cloudflare Workers AI embedding and generation plugin for ragpipe
Cloudflare Workers AI embedding and generation plugin for ragpipe.
pnpm add ragpipe @ragpipe/plugin-cloudflare
import { defineConfig } from "ragpipe";
import { cloudflareEmbedding, cloudflareGeneration } from "@ragpipe/plugin-cloudflare";
export default defineConfig({
embedding: cloudflareEmbedding({
accountId: process.env.CLOUDFLARE_ACCOUNT_ID!,
apiToken: process.env.CLOUDFLARE_API_TOKEN!,
model: "@cf/qwen/qwen3-embedding-0.6b",
}),
generation: cloudflareGeneration({
accountId: process.env.CLOUDFLARE_ACCOUNT_ID!,
apiToken: process.env.CLOUDFLARE_API_TOKEN!,
model: "@cf/openai/gpt-oss-20b",
systemPrompt: "Answer based on the provided context.",
}),
// ... vectorStore
});
cloudflareEmbedding(options)Returns an EmbeddingPlugin that calls the Cloudflare Workers AI Embedding API.
| Option | Type | Default | Description |
|---|---|---|---|
accountId | string | — | Cloudflare account ID (required) |
apiToken | string | — | Cloudflare API token (required) |
model | string | — | Embedding model name (required) |
embedMany() sends an array of texts in a single API callcloudflareGeneration(options)Returns a GenerationPlugin that calls the Cloudflare Workers AI Generation API.
| Option | Type | Default | Description |
|---|---|---|---|
accountId | string | — | Cloudflare account ID (required) |
apiToken | string | — | Cloudflare API token (required) |
model | string | — | Generation model name (required) |
systemPrompt | string | "Answer based on the provided context." | Default system instruction |
generateStream() returns an AsyncIterable<string> via SSE{ history } to include conversation context{ systemPrompt } at call time to override the defaultCLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN in your environmentMIT
FAQs
Cloudflare Workers AI embedding and generation plugin for ragpipe
The npm package @ragpipe/plugin-cloudflare receives a total of 18 weekly downloads. As such, @ragpipe/plugin-cloudflare popularity was classified as not popular.
We found that @ragpipe/plugin-cloudflare 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.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

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