Tech News
← Back to articles

Useful patterns for building HTML tools

read original related products more articles

Useful patterns for building HTML tools

I’ve started using the term HTML tools to refer to HTML applications that I’ve been building which combine HTML, JavaScript, and CSS in a single file and use them to provide useful functionality. I have built over 150 of these in the past two years, almost all of them written by LLMs. This article presents a collection of useful patterns I’ve discovered along the way.

First, some examples to show the kind of thing I’m talking about:

svg-render renders SVG code to downloadable JPEGs or PNGs

renders SVG code to downloadable JPEGs or PNGs pypi-changelog lets you generate (and copy to clipboard) diffs between different PyPI package releases.

lets you generate (and copy to clipboard) diffs between different PyPI package releases. bluesky-thread provides a nested view of a discussion thread on Bluesky.

These are some of my recent favorites. I have dozens more like this that I use on a regular basis.

You can explore my collection on tools.simonwillison.net—the by month view is useful for browsing the entire collection.

If you want to see the code and prompts, almost all of the examples in this post include a link in their footer to “view source” on GitHub. The GitHub commits usually contain either the prompt itself or a link to the transcript used to create the tool.

The anatomy of an HTML tool

... continue reading