Built 150+ tools with LLMs: Simon Willison on single-file patterns

bibryam · x · 2026-08-16

Simon Willison shares insights from building over 150 HTML tools with LLMs in the past two years. The key constraint is a single-file structure (HTML+JS+CSS) with no build step, keeping apps easy to inspect, host, and remix. The article outlines useful patterns: prototyping with Artifacts/Canvas, loading dependencies via CDN, persisting state in URLs, using localStorage for secrets, calling LLMs via CORS, and leveraging Pyodide and WebAssembly. He emphasizes that each working tool serves as an example for the next and provides links to source code and prompts.

Original post →

More from coding & agent

coding & agent channel →