A tiny browser service, with the browser included
Bun now exposes browser automation directly through Bun.WebView, using WebKit on macOS or a local Chromium process through the Chrome DevTools Protocol.
Simon had an agent build a roughly 150-line TypeScript service around it. The service opens pages, evaluates JavaScript and returns screenshots, without adding Puppeteer or Playwright. Each request gets its own tab.
The memorable result is the resource measurement: in his tests against complex pages, the complete Chrome-backed service fitted into a container with roughly 192–256 MB of memory, checked using cgroups.
That is a prototype measurement, not a promise about every page or workload. The API is experimental too. But it makes a compact, self-hosted browser endpoint look pleasantly approachable.