Shipping a Single-File HTML Artifact From an LLM to Stakeholders: 7 Pitfalls and How to Fix Them
A developer published a checklist for shipping single-file HTML artifacts generated by LLMs (Claude, ChatGPT, Cursor) to non-technical stakeholders, covering seven pitfalls: broken relative asset references, split CSS/JS files, unpinned CDN dependencies, sandboxed iframes and strict CSPs that block inline handlers and fetch calls, missing mobile viewport handling, and email gateways that strip .html attachments. The recommended fixes include inlining assets as data URIs or inline SVG, baking JSON snapshots into the file instead of live API calls, pinning CDN versions, and hosting the file as a link via a single-file host such as dochost rather than sending it as an attachment.
You asked Claude, ChatGPT or Cursor for a quick internal tool: a pricing calculator, a chart over last quarter's numbers, a clickable onboarding checklist. It works on your machine. Now a product manager, a client or your finance lead needs to open it, and they are not going to clone a repo or run npx serve . This post is the checklist I run before I send one of these files to anyone. Most of it is about making the HTML genuinely self-contained. The last part is about getting it to people as a URL instead of an attachment. LLMs love to write 