html-easy-deploy
by @520xiaomumu
Instantly deploy a single self-contained HTML page to htmlcode.fun for quick live URLs. Alias of html-deploy, with versioned updates, description-required de...
clawhub install html-easy-deployπ About This Skill
name: html-easy-deploy description: Instantly publish a single self-contained HTML page to htmlcode.fun without GitHub, Vercel, or Netlify. Use when an agent needs the fastest path from HTML to a live URL for landing pages, demo pages, temporary microsites, QR share pages, and AI-generated single-file frontends. Supports stable short codes for overwrite-style updates and includes a ready-to-run Python deployment script. Live example and visual guide: https://www.htmlcode.fun/s/htmlcode-fun-guide
html-easy-deploy
Overview
Use htmlcode.fun when the output can be delivered as one standalone HTML document and speed matters more than full project-hosting features. This skill is designed for agents that need the shortest path from HTML content to a live shareable URL.
Live example and walkthrough:
Bundled script:
scripts/htmlcode_deploy.py for deploy, update, and fetch operationsDecision rule
Use this skill when all of the following are true:
Do not use this skill when any of the following are true:
Core workflow
1. Produce one complete HTML document.
2. Inline CSS and JS when practical.
3. Add quality metadata before deploy:
-
-
-
- Open Graph tags when the page will be shared
4. Decide whether the page needs a stable short code.
- For one-off pages, deploy without custom code.
- For pages that will be updated in place, set enableCustomCode=true and choose customCode on first deploy.
5. Deploy with JSON to POST https://www.htmlcode.fun/api/deploy.
6. Save the returned code, url, and qrCode.
7. For later edits, update with PATCH https://www.htmlcode.fun/api/deploy/content using the same code.
8. If the API returns 429, wait for retryAfterSeconds before retrying.
Fastest path
Prefer the bundled script when working from local files.
Deploy a new page:
python scripts/htmlcode_deploy.py deploy page.html --title "launch-page" --code launch-page
Update an existing short code in place:
python scripts/htmlcode_deploy.py update launch-page page.html --title "launch-page-v2"
Fetch deployed content:
python scripts/htmlcode_deploy.py get launch-page --output launch-page.html
Use raw API calls only when the agent already has HTML content in memory and does not need a file-based workflow.
Request format
Always send JSON.
Required fields:
filenamecontentUseful optional fields:
titleenableCustomCodecustomCodeExample deploy payload:
{
"filename": "index.html",
"title": "launch-page",
"content": "...",
"enableCustomCode": true,
"customCode": "launch-page"
}
Example update payload:
{
"code": "launch-page",
"content": "...updated...",
"title": "launch-page-v2",
"filename": "index.html"
}
Best practices for agents
-F file. Read files into memory and send them as JSON content.customCode at the first deploy.code, url, and qrCode immediately after deployment.429, respect retryAfterSeconds instead of retrying aggressively.What this host is good at
What this host is not good at
Example live page
Reference example:
Use that page as a model for how to explain advantages, limitations, and deployment guidance in one self-contained HTML document.