A shot-scraper-style JSON API on Bun 1.4's new Bun.WebView
Research: A shot-scraper-style JSON API on Bun 1.4's new Bun.WebView Today saw the long awaited release of Bun 1.4 , the first stable version since the infamous Rust rewrite a few months ago . Interestingly, the Rust rewrite was downplayed in the release notes, which introduced a bewildering array of new features and claimed 2,900 additional bug fixes: Bun 1.4 adds +1,517 tests from the Node.js…
Bun 1.4, the latest stable release of the popular Node.js runtime, has been officially launched after a recent Rust rewrite. Introduced alongside numerous new features and bug fixes, Bun 1.4 boasts an impressive range of enhancements. Key among these is the addition of Bun.WebView, a first-class browser automation tool that leverages either macOS WebKit or control of a local Chromium process via the Chrome DevTools Protocol (CDP).
This feature enables Bun core to execute JavaScript against web pages, providing a powerful means for testing and development. The release also includes improvements in idle CPU usage, memory usage, and start-up time, with up to 5x reduction in CPU usage, up to 35% memory usage reduction, and a 50% faster start-up on Linux systems.
Other notable additions include Bun.Image, Bun.cron(), Bun.Terminal, and various parallel execution and testing commands.
Written by urgent.news from Simon Willison's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.