The Yoyo blog

How to share the HTML demos your AI writes

Three ways to put an HTML file from Claude, ChatGPT, Gemini or Cursor online with a real URL: paste it into an editor, deploy it from your terminal, or freeze it as a snapshot.

If you use Claude, ChatGPT, Gemini or Cursor, you probably end up with a lot of single HTML files: a prototype, a chart, a small UI experiment, a repro for a bug you were chasing. They are easy to make now, but they usually stay wherever the tool left them, in a chat window, a project folder or ~/Downloads, and nobody else gets to open them.

Sharing them is more work than it should be. A screenshot loses the interactivity, a zip file in Slack mostly goes unopened, and setting up a repo and hosting for a 200-line file is a lot of effort for what it is. What you really want is a URL you can send in a few seconds, and the ability to keep editing after you’ve sent it.

Yoyo gives you three ways to get that link, and the fastest one is just copy, paste, save.

1. From a chat: paste and publish

When your AI gives you a block of HTML, copy it, create a new Yoyo project, paste it in and save. It’s live over HTTPS at your-demo-you.yoyo.codes.

The editor has a live preview, so when you want changes (bigger buttons, a different color) you can edit the code by hand or paste the next version from the chat over the old one.

There is nothing to install, it works on the free plan, and the link opens fine on a phone if you need to show it to someone in a meeting.

2. From a terminal or agent session: yoyo deploy

If the file came from Claude Code, Cursor, Gemini CLI or another tool that runs in your terminal, it’s already on disk, so you can publish it from that folder:

cd the-demo
yoyo deploy --name the-demo
# → https://the-demo-you.yoyo.codes

Running it with --name the first time creates the project and links the folder to it. After that, a plain yoyo deploy pushes your changes. There is a one-time setup step: create an API token in your Yoyo settings and run yoyo auth --token <TOKEN>, or set YOYO_TOKEN in the environment your agent runs in.

The CLI and API tokens are both available on the free plan, which means your agent can run the deploy for you. At the end of a session, ask Claude Code to “run yoyo deploy --name demo-name and give me the URL”, and you get a link back instead of a file. If you keep editing locally, yoyo watch keeps the project in sync with the folder. The CLI docs cover the rest of the flags.

3. Keeping a version: snapshots

AI demos change a lot. You ask for one more tweak, then another, and by Thursday the version you shared on Monday looks nothing like the current one, but the link you posted now shows the current one.

Snapshots are for this. A snapshot is an immutable URL that freezes the demo as it was when you took it. Put the snapshot link in a bug report, a PR description or a blog post, and keep changing the live project as much as you want. The snapshot keeps showing what you shared.

This matters most for bug repros. Old Stack Overflow answers and GitHub issues are full of demo links that don’t work anymore, and a repro that returns a 404 can’t help the next person who runs into the same bug.

Why not use a regular host?

You can drag these files into Netlify Drop or push them to GitHub Pages, and for a production site that’s what you should do. Demos are different because you make a lot of them and throw most of them away. In a week you might make a dozen prototypes, keep a few and show one to a client, and setting up a deploy for each of those isn’t worth it. Pasting into an editor or running one command is something you’ll actually do every time.

That’s what we built Yoyo for: giving these demos a real URL, while your actual app is hosted somewhere else. The free plan covers everything above, including unlimited public demos, the CLI and the API. Pro ($10/month) adds private projects, for when the demo is client work and shouldn’t be public.

If you want to try it, take the last HTML file your AI gave you and paste it into a new project.