by Amal-David
Publish HTML, Markdown and static mini apps to shareable Cloudflare Pages URLs from the terminal or coding agents.
# Add to your Claude Code skills
git clone https://github.com/Amal-David/pagecastpagecast is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Amal-David. Publish HTML, Markdown and static mini apps to shareable Cloudflare Pages URLs from the terminal or coding agents. It has 192 GitHub stars.
pagecast's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/Amal-David/pagecast" and add it to your Claude Code skills directory (see the Installation section above).
pagecast is primarily written in JavaScript. It is open-source under Amal-David on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh pagecast against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Preview local HTML reports, Markdown docs, and static mini apps, then publish them to shareable Cloudflare Pages URLs — from the terminal or your coding agent.
Site: https://pagecasthq.pages.dev/ ·
Agent skill: publish-report on Skills.sh ·
Architecture: ARCHITECTURE.md
Pagecast is a local-first publishing tool for agent-generated reports and small
static web projects: preview files, publish, re-sync, rename links,
password-protect pages, and revoke URLs — from a local admin UI or headless
pagecast commands. Good fits: HTML reports and dashboards, Markdown docs and
plans, static mini apps from dist/build/out. Not a fit: server-rendered
apps that need a running backend (export static assets first).
Requires Node.js 20.19+ and a Cloudflare account (for publishing). No global install:
npx pagecast
This starts the local app and opens the admin UI:
http://pagecast.localhost:4173http://pagecast.localhost:4174~/.pagecast/home/ (Cloudflare target, publication registry, settings).pagecast/ in the current directoryOne OS user profile owns one Pagecast Home and Cloudflare subdomain. Run the CLI
from the relevant project; use --data-dir only for an intentionally isolated
CI/container profile. If the default ports are busy, Pagecast falls forward to
the next free pair and remembers it.
In the admin UI, confirm the suggested Home subdomain and click Connect
Cloudflare — Pagecast runs Wrangler's scoped browser OAuth flow (Cloudflare
labels the app Wrangler) and resumes setup after consent. From a source
checkout, run npm start instead. Prefer containers? See
Run with Docker.
Run in the background, or (macOS) install a login service plus a local-only
http://pagecast.localhost redirect:
npx pagecast background start && npx pagecast open
npx pagecast setup-local-url
# manage: pagecast local-url status|remove, pagecast background service status|uninstall
Headless/advanced setup:
npx pagecast pages setup --project your-pagecast-home
# multiple accounts? add --account <account-id>
# automation? export CLOUDFLARE_API_TOKEN (scoped Pages:Edit) + CLOUDFLARE_ACCOUNT_ID
Upgrading from 0.5: stop the old process (npx [email protected] background stop),
reinstall the macOS login service if you use it (npx [email protected] background service install), and reload the unpacked Chrome extension from the matching
release. The first 0.6 launch creates ~/.pagecast/home/ and imports compatible
workspace publications without changing URLs; publications on other Cloudflare
projects remain legacy targets until you explicitly attach or move them.
After updating to 0.7.1, restart running Pagecast processes so they load the bundled staging cleanup helper. Saved publications and deployed copies are retained. Source checkouts must build the helper before starting Pagecast; see Development.
# An HTML or Markdown file → a memorable /p/<slug>/ link (source folder included)
npx pagecast publish "/absolute/path/report.html" --json
# Set an expiry — 7d, 12h, or never (default 30d)
npx pagecast publish "/absolute/path/report.html" --expires 7d --json
# Force a new URL, or explicitly update a known one
npx pagecast publish "/absolute/path/report.html" --new-link --json
npx pagecast publish "/absolute/path/report.html" --update <url-or-token> --json
# A built static project → publish its entry file
npm run build && npx pagecast publish ./dist/index.html --json
# A whole folder → replace a named Pages project directly (--branch defaults to main)
npx pagecast pages deploy ./dist --project my-static-site --json
Things to know:
publish copies every non-hidden, non-symlink file under the source folder,
referenced or not — publish from a clean folder and keep secrets elsewhere.
New source copies are limited to 512 MiB and 10,000 files, including files
that grow while copying. Development roots (such as folders containing a
package/build manifest, dependencies, Git repositories, or worktrees) are
rejected before copying. Publish the finished dist/build/out folder or
put a standalone report and its assets in a dedicated folder.--context-id,
PAGECAST_CONTEXT_ID, CODEX_THREAD_ID, CLAUDE_SESSION_ID, then a
workspace/source fallback; override matching with --new-link or --update.pages deploy is a separate, stateless whole-site operation on the named
project. It never changes the project used for managed /p/... links —
use a separate project unless replacing the managed site is intentional.statusCode 401 → authentication required (interactive runs start Wrangler
auth automatically); statusCode 409 → conflict, follow the returned message.Optional, enabled in Settings: Pagecast deploys a Worker + D1 database to your Cloudflare account and shows views, anonymous uniques, and recent events beside each link, plus a global Activity view. Events carry coarse geo, device class, and referrer hostname; raw IPs are HMACed with a per-Home secret and discarded, and detailed events expire after 30 days. Analytics is audit visibility, not access control — use password protection to restrict access.
Gate any published page from the admin UI (Password protection toggle) or headlessly:
npx pagecast publish "/absolute/path/report.html" --password "your-password" --json
npx pagecast publish "/absolute/path/report.html" --no-password --json # remove it
Enforced at the edge by a generated Cloudflare Pages Function covering every file of a multi-file report. Older immutable deployments keep the gate state they shipped with — prune deploy history if an unprotected snapshot must stop being reachable. Crypto and security model: PASSWORD-PROTECTION.md.
Published reports send X-Robots-Tag: noindex, nofollow on static files and
Function responses. This asks supporting search engines to exclude reports;
it does not make links private. Use password protection for confidential content.
Re-publish existing sites to apply these headers. Older deployment snapshots
retain their original headers and must be pruned separately when needed.
Do not block crawling with robots.txt if crawlers need to see noindex.
Every publish or re-sync creates an immutable whole-site Cloudflare deployment
with its own <hash>.pages.dev URL. Manage them from the admin UI
(Settings → Deploy history) or the terminal:
npx pagecast pages deployments list --json
npx pagecast pages deployments delete <id> --json # the live deployment is protected
npx pagecast pages deployments prune --keep 5 --yes --json
Removing a snapshot never affects your live site or pages. But expiry, password changes, and revoke apply only to the replacement deployment — prune history when old snapshot URLs must stop working.
Local temporary deployment directories are separate from this cloud history. While holding its workspace lease, Pagecast recovers abandoned staging at startup and before preparing another publication. It retains active owners and fresh interrupted operations for a 24-hour grace period. The staging tree stays in place while any operation is active, fresh, or unrecognized. Once the tree can be retired, recovery claims it before deleting old operations. The bundled cleanup helper removes entries relative to an opened staging directory and verifies its identity, so a replaced directory cannot redirect removal into saved publications or deployed copies. An interrupted claim is recovered on the next run. Cleanup failures are reported, recorded for retry, and block additional staging until removal succeeds. If recovery fails at startup, Pagecast warns and keeps the admin UI and read-only views available; legacy staging migration waits for successful recovery on a later startup. Saved publication snapshots and last-deployed copies are retained; failed source copies or direct-site deployments keep the last committed copy.
Pagecast ships a Codex-native skill and a portable Agent-Skills file. An explicit "Publish this as a Pagecast" instruction publishes immediately; a proactive agent suggestion still asks once.
# Skills.sh (Codex, Claude Code, Cursor, Gemini CLI, and other supported agents)
npx skills add https://github.com/amal-david/pagecast --skill publish-report
# Claude Code plugin (includes the report-detection hook)
/plugin marketplace add Amal-David/pagecast
/plugin install pagecast@pagecast
# Manual install from a clone
cp -R .codex/skills/publish-report ~/.codex/skills/ # Codex
cp plugin/skills/publish-report/SKILL.md /path/to/your-agent/skills/publish-report/SKILL.md # any agent
More detail in plugin/README.md.
Pagecast can run as a Model Context Protocol server, so MCP-capable agents can publish, inspect, and revoke through a bounded tool surface. Configure the stdio server:
{
"mcpServers": {
"pagecast": {
"command": "npx",
"args": ["pagecast", "mcp"]