Show HN: Pagecast – Publish Markdown/HTML Reports to Cloudflare Pages (github.com)

54 points by amaldavid ↗ HN
I built this because I kept generating HTML/Markdown reports from Claude Code/Codex and needed a permanent share link instead of a localhost tunnel. Pagecast is a local CLI that publishes those files to your own Cloudflare Pages account.

It supports Markdown and HTML, stable URLs, renaming, republishing to the same URL, and watch mode for continuous updates to same file. It is MIT licensed.

The main design choice is that there is no hosted Pagecast account. It uses your Cloudflare account and deploys there directly and has claude code and codex integrations as skill/hooks.

Basically it can be used as a replacement for codex sites or claude artifacts

11 comments

[ 4.1 ms ] story [ 27.8 ms ] thread
Is there by chance a way to password protect the generated site?
TFA:

    npx pagecast publish "/absolute/path/report.html" --password "your-password" --json
    npx pagecast publish "/absolute/path/report.html" --no-password --json   # remove it
This is nice, but I don't see much of a difference between just asking claude to write a wrangler config to push to cf pages, which can be extremely simple

  name: my-cool-pages-project   
  pages_build_output_dir: ./html-files/
then npx wrangler deploy
Maybe tell your agent that your readme doesn't need to be that long so humans can read it and understand it. The Github readme is ludicrously long winded.

What's the point of this vs telling the agent to just use the cloudflare CLI?

"Local tool for publishing agent reports and small static sites" - Aren't agent reports small static sites? Why do you need to mention both?

Your Good Fits vs Bad Fits section is just a good fits vs bad fits for cloudflare pages, not your specific application.

Creating a chrome extension to add the publish button on the page is quite possibly the single biggest piece of evidence I've ever seen that code is now cheap.

Readme needs screenshots.

-----

Edit: I've been emotionally triggered by this project because the overall feel of it reminds me of all the junior developers at work who've started vibe coding everything and presenting it with confidence that even the most senior developers lack.

MCP would be a nice addition

Remote MCP could even allow you to share it with coworkers so they don't have to run anything

I usually use Claude Code but sometimes I find myself using chat and then when it creates an artifact sometimes I just want more flexibility or less restrictions. I might be missing something but I found it surprisingly hard to actually push an artifact to a custom URL. This was okay with Netlify as a connector, but I quickly ate through the free credits.

Unfortunately the Cloudflare connector surprisingly didn't expose the way to publish a site with just static files So I ended up having Claude just write the files to a folder with a script and a wrapper worker to make it all work and then everything was manual to republish.

Seems like if you have this all bundled up via MCP you can add as connector to chat and then get the same experience. But not sure if this is over engineered or if there's an easier way.

This is quite interesting, let me ponder over this a bit. I think I can expose an MCP and also make the admin to be hosted directly in cloudflare workers/pages and make it a remote MCP.

Will need to handle auth though since the dashboard will be public.

When a URL is re-synced, do you keep older versions anywhere or does the new deployment completely replace them?