Sources
Simon Willison Rebuilt shot-scraper as a 150-Line Zero-Dependency Service on Bun 1.4's New Bun.WebView, No Puppeteer or Playwright
Bun 1.4 shipped 2026-08-20 with Bun.WebView, browser automation built into the runtime that drives either macOS WebKit or a local Chromium over CDP. Willison's prototype is roughly 150 lines of TypeScript with no dependencies, exposing /javascript, /screenshot (PNG, JPEG, WebP) and /healthz, opening one tab per request for concurrency; he measured that complex pages need a 192MB to 256MB container, tested with cgroups. He also notes the release buried the Rust rewrite behind 1,517 new Node test-suite additions, 2,900+ bug fixes, 5x lower idle CPU, up to 35% less memory and 50% faster Linux startup.
↳ Follow the thread