HeadlinesBriefing favicon HeadlinesBriefing.com

Open‑source CLI turns local reports into permanent Cloudflare Pages URLs

Hacker News •
×

Amal‑David released Pagecast, an open‑source CLI that pushes local HTML, Markdown or static build folders to a personal Cloudflare Pages site. The tool runs from the terminal or via coding agents like Claude and Codex, creates stable shareable URLs and supports renaming, republishing and watch mode for live updates. It ships under an MIT license.

Pagecast avoids a dedicated service by authenticating directly with the user’s Cloudflare account via scoped Wrangler OAuth, then creates or reuses a Cloudflare Pages project on the fly. A built‑in React admin UI runs locally on port 4173, while a preview server on 4174 mirrors the final /p/<slug>/ path, enabling exact URL testing before publish.

Developers can publish with a single command such as npx pagecast publish report.html --json, which returns a JSON payload containing the public link. The CLI also wraps Wrangler deploy calls, letting CI pipelines push entire dist folders or rename URLs without leaving the terminal. By leveraging existing Cloudflare infrastructure, Pagecast turns ad‑hoc reports into permanent, versioned web artifacts.

Typical scenarios include publishing automated test coverage dashboards, Lighthouse performance reports, or release notes generated by AI agents. Pagecast does not support private drafts or server‑side applications, and it requires Node 20+, a Cloudflare account and optional API token for headless automation. The project lives at github.com/Amal-David/pagecast.