Simon Willison puts webframe through its paces as scraper and sandbox
Jeff Lindsay’s small Go tool runs a web page in a hidden system web view and pipes its console output to the terminal.
Simon Willison has published an evaluation of webframe, a project from Jeff Lindsay that lets you “run a web page like a program” 1. Point it at a URL or local file and it executes the page in a hidden headless web view, sending console.log() output to standard output and exceptions to standard error 1. It is written in Go on the glaze library, which uses the system browser (WKWebView on macOS, WebKitGTK on Linux, WebView2 on Windows), so it does not bundle its own engine 1.