Claude Discovery

← All discoveries

Open laptop displaying code on desk in bright, modern office setting. Ideal for tech and remote work context.
Photo by Daniil Komov on Pexels
trick

Bun 1.4 Ships Bun.WebView, Someone Already Built a shot-scraper Clone With It

2026-08-21 ยท source:

Simon Willison built a shot-scraper-style JSON API on top of Bun 1.4's new Bun.WebView, which embeds a real browser view directly in a Bun process.

What it is

A research writeup and accompanying code exploring Bun.WebView, a new API shipped in Bun 1.4, the JavaScript runtime's first stable release since its Rust rewrite.

What it does

Bun.WebView embeds a browser view inside a Bun process, and the research project wraps it in a JSON API modeled on Simon Willison's existing shot-scraper tool, letting scripts drive a real browser and pull structured results back over a simple HTTP interface.

Why it matters

It gives Bun a built-in path to browser automation and scraping tasks that previously required pulling in Playwright or Puppeteer as a separate dependency, an alternative worth knowing about if your stack already runs on Bun.

How to use it

Clone the research repo and run it against Bun 1.4 to see the JSON API pattern for driving Bun.WebView from scripts or CI.

Go to source →
bunwebviewscrapingjavascript