More in Build apps & tools.
Build a terminal-to-HTML sharing tool with Claude Code for web
Claude Code for web built a tool that turns pasted terminal output into a shareable link, recorded start to finish in 11 minutes.
Result: WorkedTool: Claude Code for webLevel: AdvancedSetup: Needs GitHub
Outcome
Claude Code for web built a terminal-to-html tool that turns pasted terminal output into a shareable gist-preview link, recorded start to finish in an 11-minute video. The prompt took the author several minutes to type. Its key trick was telling Claude to copy two existing tools in the same repo: an RTF-to-HTML converter and a page that saves to a GitHub Gist with a sign-in flow. The author says the result was exactly what was asked for, down to the requested green-on-black terminal look.
Evidence: Shown on videoThe source includes a video or screen recording of the AI doing the task.
WorkedEvidence: Shown on videoPosted Last checked
- Source checked
- Results shared. The poster described their results. This doesn't mean proof is attached.
Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.
How to use this
- Tap Copy prompt.
- Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
- Paste it into the message box.
- Send it, then read the answer before acting on it.
New to this? What's a prompt?
A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.
Prompt
These are the person's own words, as shared in the source.
Build a new tool called terminal-to-html which lets the user copy RTF directly from their terminal and paste it into a paste area, it then produces the HTML version of that in a textarea with a copy button, below is a button that says "Save this to a Gist", and below that is a full preview. It will be very similar to the existing rtf-to-html.html tool but it doesn't show the raw RTF and it has that Save this to a Gist button That button should do the same trick that openai-audio-output.html does, with the same use of localStorage and the same flow to get users signed in with a token if they are not already So click the button, it asks the user to sign in if necessary, then it saves that HTML to a Gist in a file called index.html, gets back the Gist ID and shows the user the URL https://gistpreview.github.io/?6d778a8f9c4c2c005a189ff308c3bc47 - but with their gist ID in it They can see the URL, they can click it (do not use target="_blank") and there is also a "Copy URL" button to copy it to their clipboard Make the UI mobile friendly but also have it be courier green-text-on-black themed to reflect what it does If the user pastes and the pasted data is available as HTML but not as RTF skip the RTF step and process the HTML directly If the user pastes and it's only available as plain text then generate HTML that is just an open <pre> tag and their text and a closing </pre> tag
Try this in:
Sends the Original prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini and Claude open empty, so we copy the prompt for you to paste. Every button also copies it.
The source used Claude Code for web, which can take actions on your computer or in a browser. These are general chat tools, so results may differ, and a normal chat may only give you a plan.
Opens in a new tab. We don't see what you send.
These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.
Optional stronger version
Our rewrite with extra checks. The poster didn't test it.
Goal: Build terminal-to-html: paste RTF from a terminal, get HTML in a textarea with copy, 'Save this to a Gist', and a live preview. Inputs (fill in or confirm): - The existing similar tool to copy structure from - Where the tool should live in the repo - GitHub auth approach for Gists (token entered by the user, never stored server-side) - The exact behavior spec (paste area, output textarea, copy button, Gist button) - Where I want the tool's code and a test page Rules: - Handle the clipboard's text/rtf and text/html types: if the paste has HTML but no RTF, skip the RTF step and process the HTML directly; if it's only plain text, output an opening <pre> tag, the text and a closing </pre> tag. - Preserve colors and bold/italic; strip scripts and event handlers from the output. - Match the existing tool's layout and styles. - Keep it a single static HTML file with no build step. - Restate the spec as a short checklist and build only what it lists. - Convert pasted rich text to clean HTML: keep colors and bold, drop editor-specific junk. - Handle sign-in exactly like openai-audio-output.html: the same use of localStorage and the same flow to get a token if the user isn't signed in; never put the token in the page source or the repo. - Show clear error messages if Gist creation fails (bad token, rate limit, network). - Test with at least three samples: plain text, colored output and very long output. - Commit with a clear message; open a pull request rather than pushing to main. Checkpoint: Don't create a real Gist during testing unless I say so; ask before committing. If you get stuck: If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords. Verify before you finish: Test with a pasted colored terminal sample and confirm preview matches the textarea HTML. Output: The HTML file, a short test note and screenshots of the preview. Done when: pasting a colored terminal snippet produces matching, safe HTML I can copy.
AI tool
Source
- Posted
- by Simon Willison
- Last checked
- Method:
- How we verify
https://simonwillison.net/2025/Oct/23/claude-code-for-web-video/
Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.
More in Build apps & tools
Build a site that grades HN predictions with Antigravity
A developer built HN Predictions with Antigravity in about 4 to 6 hours; the live site grades 5,807 matured forum predictions.
WorkedAntigravityAdvancedView CaseBuild an offline scam-warning app for a parent's phone with Gemma
A developer's offline Android app with Gemma caught all 10 test scams, after a first prompt flagged 9 of 10 normal messages too.
WorkedGemmaEvidence: Described by posterAdvancedView CaseBuild a scam-awareness app for older relatives with Cursor and ChatGPT
Matt Sanner used ChatGPT and a $20 Cursor plan to build ScamSkeptic, with lessons on 25 types of scams, for an aging family.
WorkedCursor +1Evidence: Article or interviewAdvancedView CaseBuild personal task, finance and plant care trackers with Base44
A self-described non-developer built task, finance, job and plant care trackers with Base44; they still have bugs but get daily use.
WorkedBase44Evidence: Described by posterAdvancedView CaseBuild a photo-verified chore checker for kids with Lovable
Brigid McDermott built ChoreCheck with Lovable: kids photo a finished chore and the app says if it's done. Not perfect, but easier.
WorkedLovableEvidence: Described by posterAdvancedView CaseBuild Urdu WhatsApp and voice-call medicine reminders for a father in Karachi with Gemini
Muhammad Ahsan Ayaz built Urdu WhatsApp and call reminders for a father's meds with Gemini; WhatsApp catches about 75–85% of tasks.
WorkedGeminiEvidence: Described by posterAdvancedView Case
Similar cases
Vibe-code a 3D town-building game with Claude Code
From one informal prompt, Claude Code built a working 3D city-building and driving game in about four minutes.
WorkedClaude CodeEvidence: Article or interviewAdvancedReported by One Useful Thing: Working game in about four minutes
View CaseBuild a blog feature by voice with Codex while cooking
Talking to Codex in voice mode while cooking, the author got a Django newsletter archive with four importers and a pull request.
WorkedOpenAI Codex (ChatGPT desktop, voice mode)Evidence: Screenshots or logsAdvancedView CaseGenerate a colophon page for a GitHub Pages site with Claude Code
Claude Code wrote a script that builds a colophon page of every tool and its commit history, and wired it into the GitHub Pages deploy.
WorkedClaude CodeAdvancedView CaseWrite and ship a complete Datasette plugin with Claude Code
Claude Code wrote every line of code and every test for the datasette-os-info plugin with minimal prompting, and the author shipped it.
WorkedClaude CodeEvidence: Screenshots or logsAdvancedView Case

