
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
@cloudflare/polystella
Advanced tools
AI-driven content localization for Astro (build-time markdown translation, R2-cached).
⚠️ Work in progress. PolyStella is in active development. APIs, configuration shapes, and internal behaviour may change without notice. Do not adopt for new projects yet.
PolyStella is an Astro integration that translates content into additional locales at build time using AI, caches translations in Cloudflare R2, and injects locale-prefixed routes for the translated pages.
.md, .mdx, and .toml content into additional locales during astro build. Visitors get static bytes; no runtime AI calls.i18n/overrides/{locale}/<mirrored-path> and it wins over AI output verbatim.Install from npm:
pnpm add @cloudflare/polystella
Peer dependencies: astro ^6.0.0, optionally react ^17 || ^18 || ^19.
Four files participate in a typical setup.
1. astro.config.mjs — register the integration. Locale set lives here.
import { defineConfig } from "astro/config";
import polystella from "@cloudflare/polystella";
import polystellaConfig from "./polystella.config.mjs";
export default defineConfig({
i18n: {
defaultLocale: "en-US",
locales: ["en-US", "pt-BR", "ja-JP"],
},
integrations: [polystella(polystellaConfig)],
});
2. polystella.config.mjs — provider, glossary, R2, format-specific keys. Every option is documented in the configuration reference.
3. src/content.config.ts — register sibling collections so Astro's content layer picks up translations. Locale set is auto-derived from astro.config.mjs.
import { defineCollection } from "astro:content";
import { polystellaCollections } from "@cloudflare/polystella/content";
import { i18nLoader, i18nSchema } from "@cloudflare/polystella/i18n";
import { blog, authors } from "./content-schemas";
export const collections = {
...polystellaCollections({
source: { blog, authors },
}),
i18n: defineCollection({ loader: i18nLoader(), schema: i18nSchema() }),
};
4. src/env.d.ts — pick up types for PolyStella's virtual modules:
/// <reference types="@cloudflare/polystella/client" />
Projects that already handle localized content and routing can adopt only PolyStella's JSON catalog flow:
import catalogAstro from "@cloudflare/polystella/catalog/astro";
export default defineConfig({
i18n: { defaultLocale: "en-US", locales: ["en-US", "pt-BR"] },
integrations: [catalogAstro({ baseDir: "./src/i18n" })],
});
This binds Astro.locals.t and Astro.locals.lhref only. It does not
run content translation, route shims, R2 cache setup, or localized
collection APIs.
Full documentation lives at the Starlight docs site (under docs/ in this repo):
translate, check-ui, sync-ui, translate-uiAstro.locals, middleware, React hooksSee CONTRIBUTING.md. The agent-facing context is in AGENTS.md and ARCHITECTURE.md.
FAQs
AI-driven content localization for Astro (build-time markdown translation, R2-cached).
The npm package @cloudflare/polystella receives a total of 850 weekly downloads. As such, @cloudflare/polystella popularity was classified as not popular.
We found that @cloudflare/polystella demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.