
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
@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.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

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.