/install easy-html-deploy
Easy HTML 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.pyfor deploy, update, and fetch operations
Decision rule
Use this skill when all of the following are true:
- The deliverable is a single HTML page.
- The page can be self-contained or nearly self-contained.
- Fast sharing matters more than custom domains, CI/CD, or multi-file assets.
Do not use this skill when any of the following are true:
- The project is a React, Vue, Next, or multi-file frontend app.
- The site needs build steps, environment variables, or asset pipelines.
- The user specifically needs their own domain bound to the host.
- The page is likely to exceed the service limit of about 1 MB HTML payload.
Core workflow
- Produce one complete HTML document.
- Inline CSS and JS when practical.
- Add quality metadata before deploy:
\x3Ctitle>\x3Cmeta name="description">\x3Cmeta name="viewport" content="width=device-width, initial-scale=1.0">- Open Graph tags when the page will be shared
- 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=trueand choosecustomCodeon first deploy.
- Deploy with JSON to
POST https://www.htmlcode.fun/api/deploy. - Save the returned
code,url, andqrCode. - For later edits, update with
PATCH https://www.htmlcode.fun/api/deploy/contentusing the same code. - If the API returns
429, wait forretryAfterSecondsbefore 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:
filenamecontent
Useful optional fields:
titleenableCustomCodecustomCode
Example deploy payload:
{
"filename": "index.html",
"title": "launch-page",
"content": "\x3C!doctype html>\x3Chtml>...\x3C/html>",
"enableCustomCode": true,
"customCode": "launch-page"
}
Example update payload:
{
"code": "launch-page",
"content": "\x3C!doctype html>\x3Chtml>...updated...\x3C/html>",
"title": "launch-page-v2",
"filename": "index.html"
}
Best practices for agents
- Prefer one larger deploy over many tiny edits because the service enforces a 10 second cooldown after success.
- Do not use multipart upload or
-F file. Read files into memory and send them as JSONcontent. - Keep the page self-contained. Inline CSS, inline lightweight JS, and avoid many external dependencies.
- Keep images small. Large base64 assets can quickly hit the payload limit.
- If the page will be revised repeatedly, reserve a meaningful
customCodeat the first deploy. - Save returned
code,url, andqrCodeimmediately after deployment. - When receiving
429, respectretryAfterSecondsinstead of retrying aggressively. - Treat htmlcode.fun as a fast publication channel, not a full static hosting platform.
- Tell the user clearly when the page is better suited for Vercel or Netlify instead.
What this host is good at
- Temporary landing pages
- Demo pages
- Shareable documentation pages
- QR-linked event or campaign pages
- AI-generated single-file frontends
- Stable short-link pages that need quick overwrite updates
What this host is not good at
- Multi-page sites with shared assets
- Framework builds
- Large production frontends
- Team workflows with preview environments and rollback
- Confirmed custom-domain hosting workflows
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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install easy-html-deploy - After installation, invoke the skill by name or use
/easy-html-deploy - Provide required inputs per the skill's parameter spec and get structured output
What is easy-html-deploy?
Deploy a single self-contained HTML page to htmlcode.fun for instant sharing with optional stable short codes for easy in-place updates. It is an AI Agent Skill for Claude Code / OpenClaw, with 71 downloads so far.
How do I install easy-html-deploy?
Run "/install easy-html-deploy" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is easy-html-deploy free?
Yes, easy-html-deploy is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does easy-html-deploy support?
easy-html-deploy is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created easy-html-deploy?
It is built and maintained by Xiao Mu (@520xiaomumu); the current version is v1.1.0.