/html:htmlfrom html
Publish a single-page HTML document to the public web instantly via ht-ml.app with no account or signup. Includes templates, asset uploads, and password protection.
Ships in html. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ht-ml.app hosts single-page HTML documents. You POST one HTML
document and instantly get a public URL — no account, no signup. Each site is
served on its own subdomain (https://{site_id}.ht-ml.app/) so relative asset
paths in the HTML resolve correctly. Every site is secured by a high-entropy
update_key returned once at creation.
The API base URL is https://api.ht-ml.app/v1. All responses are JSON; errors
include an actionable message field.
Everything you upload — HTML, assets, and anything embedded in the HTML — is public. Anyone with the URL can read it, and it may be indexed by search engines, read by crawlers, and copied or archived by third parties.
If you are acting on a person's behalf, you MUST warn them that the content will be public BEFORE you call the create endpoint. Do not upload anything private, confidential, or sensitive unless the user has confirmed they want it public. To keep a page private, set a password (see Password protection).
HTML is content-scanned on create and update; unsafe content is rejected (422).
If the user wants to publish something but doesn't already have an HTML document,
offer a ready-made template instead of building from scratch. There are 20
self-contained templates in assets/templates/ covering common use cases (slide
decks, status reports, code reviews, design systems, diagrams, clickable
prototypes, and more). Each inlines all CSS/JS/SVG, so it publishes in a single
request with no asset step.
Workflow:
assets/templates/README.md). If nothing fits, just hand-write the
HTML.<!-- REPLACE: ... -->
placeholders with the user's real content.| Template | Use it when the user wants to… |
|---|---|
slide-deck.html | …make a presentation / deck (arrow-key navigable). |
status-report.html | …share a weekly status / shipping update with metrics. |
incident-report.html | …write a post-mortem / incident timeline. |
implementation-plan.html | …propose a project plan (timeline, data flow, risks). |
annotated-pr.html | …publish a code review with inline diff notes. |
pr-writeup.html | …summarize a PR for reviewers (motivation, before/after). |
module-map.html | …diagram a codebase's modules and dependencies. |
code-approaches.html | …compare three implementation options with trade-offs. |
visual-designs.html | …compare design directions / palettes side by side. |
design-system.html | …document a design system (colors, type, spacing tokens). |
component-variants.html | …show a component's sizes, states, and intents. |
animation-sandbox.html | …prototype a CSS transition with live controls. |
clickable-flow.html | …build a clickable multi-screen prototype. |
flowchart.html | …publish an interactive pipeline / process diagram. |
svg-figure-sheet.html | …publish editable inline-SVG figures for a post/docs. |
feature-explainer.html | …document a feature (overview, collapsibles, FAQ). |
concept-explainer.html | …teach a concept with an interactive diagram + table. |
triage-board.html | …make a drag-and-drop triage/kanban board. |
feature-flags.html | …build a feature-flag toggle editor with diff export. |
prompt-tuner.html | …author/live-test a prompt with {{variable}} slots. |
If the user already has their own HTML, skip this and go straight to Step 1.
POST the HTML document. password is optional (omit it for a public site).
curl -X POST https://api.ht-ml.app/v1/sites \
-H "Content-Type: application/json" \
-d '{"html_content": "<YOUR HTML HERE>"}'
Response (the values below are placeholders — read the real ones from YOUR response; do NOT reuse these literally):
{
"site_id": "{site_id}",
"update_key": "{update_key}",
"status": "active",
"url": "https://{site_id}.ht-ml.app/"
}
The site is live immediately at the url field. Give the user that exact
url. Read site_id, url, and update_key from your own response — never
hardcode the example above.
The
update_keyis a secret write credential returned only once. There is no recovery endpoint. Keep it only if you intend to update the site or upload assets later; treat it like a password and don't print it onto the public page.
For a larger HTML document, send the body from a file rather than inlining it, or
use the helper script scripts/publish.sh (see Helper scripts).
If your HTML references local images or video (e.g. <img src="images/logo.png">),
those files must be uploaded separately. Check what's still missing, then upload
each one.
Enumerate referenced assets and their status:
curl https://api.ht-ml.app/v1/sites/{site_id}
For a password-protected site this endpoint is owner-only — add
-H "Authorization: Bearer {update_key}", or it returns 404 (a protected
site's details are never exposed without the owner key).
Upload each missing asset. The relative_path must exactly match the path
referenced in the HTML, and the asset must already be referenced there:
curl -X POST "https://api.ht-ml.app/v1/sites/{site_id}/assets?relative_path=images/logo.png" \
-H "Authorization: Bearer {update_key}" \
-F "file=@images/logo.png"
Reserved names index.html and metadata.json cannot be uploaded as assets.
If the HTML has no local assets (everything is inline or uses absolute URLs), skip this step — the site is already complete.
Replace the core HTML with PUT. The new HTML is re-scanned and the CDN cache
for this site is invalidated immediately. Requires the update_key.
curl -X PUT https://api.ht-ml.app/v1/sites/{site_id} \
-H "Authorization: Bearer {update_key}" \
-H "Content-Type: application/json" \
-d '{"html_content": "<UPDATED HTML>"}'
The optional password field on update: include a value to set it, pass "" to
clear it, or omit it to leave it unchanged.
Pass an optional password on create (or update) to make a site private. Only
viewers who supply that password can read it.
curl -X POST https://api.ht-ml.app/v1/sites \
-H "Content-Type: application/json" \
-d '{"html_content": "<YOUR HTML HERE>", "password": "<shared-password>"}'
Coach the user when setting a password:
To read a protected site, the viewer sends the password as a cookie
ht_ml_pwd=<password> (URL-encoded). Without it they get a 401 password prompt.
The password is set at create/update time and is never returned by the API.
| Code | Meaning | Action |
|---|---|---|
401 | Unauthorized (writing) | Missing/invalid update_key. Send Authorization: Bearer {update_key}. |
401 | Unauthorized (reading) | The site is password-protected. Send the password as cookie ht_ml_pwd=<password>. |
403 | Forbidden | The asset path isn't referenced in the HTML, or the update_key is wrong. |
422 | Unprocessable Entity | The HTML failed a content-safety scan. Read the message field and revise. |
When visiting https://ht-ml.app in a browser, the page registers a WebMCP tool
named publish_html_site via navigator.modelContext / document.modelContext.
In-browser agents can call it with html_content to publish without issuing raw
HTTP.
scripts/publish.sh <file.html> [password] — create a site from an HTML file
and print the site_id, url, and update_key.references/api.md — full endpoint reference (request/response shapes, every field).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nsmith/html --plugin htmlOther plugins' skills for the same job