Second easiest is to take the code and paste it in a Gist - like this: https://gist.github.com/simonw/14a2c3ef508839f26377707dbf5dd...
And then take the Gist ID and add it to this URL:
https://gistpreview.github.io/?14a2c3ef508839f26377707dbf5dd...
That gives you a URL you can load in your browser.
My preferred route is to host the generated HTML directly myself. I mainly use that via GitHub Pages - I can drop an extract-urls.html file into https://github.com/simonw/tools and about 20 seconds later it becomes available at https://tools.simonwillison.net/extract-urls
Those last two options only work for Artifacts that didn't use React (that's why I use "no react" in most of my artifact prompts). If you DID use React you can turn that into a standalone HTML and JavaScript app that you can deploy using https://github.com/claudio-silva/claude-artifact-runner - I wrote some notes on using that here: https://simonwillison.net/2024/Oct/23/claude-artifact-runner...
Do you do anything special to make the tools directory work like that?
- https://til.simonwillison.net/github/custom-subdomain-github...
- https://til.simonwillison.net/github/github-pages