hn.today

Tinybrowser: A browser running directly in the browser

tinybrowser.ericc.ch122 points46 comments
Screenshot of Tinybrowser: A browser running directly in the browser

Tinybrowser is an experimental browser engine that runs inside a web page through WebAssembly, painting the demo’s pixels itself rather than embedding another browser with an iframe. Its interface lets visitors try basic browsing and inspect accessibility trees, rendered text, network requests, cookies and storage, JavaScript execution, viewport changes, screenshots, and rendering overlays. It also offers multiple profiles and tabs, and controls for stepping through the event loop. The project’s broader aim is lightweight browser automation: its native Rust binary is about 19 MB and supports Chrome DevTools Protocol and W3C WebDriver, making connections from tools such as Playwright and Selenium possible.

The engine currently passes 70.4% of Web Platform Test subtests, but remains incomplete and is not yet a drop-in replacement for a mature browser. It uses QuickJS-ng without a JIT, so JavaScript-heavy pages can be slow; some Web APIs and iframe isolation are missing, and its rendering is limited to one-shot headless images. The documentation explains how to install and run a local daemon, connect through CDP or WebDriver, or use the WebAssembly SDK in Node and other environments. The SDK exposes navigation, history, page text and evaluation, rendering, idle waiting, and cookie and storage-state management, with configurable navigation wait conditions. The project directs users to its live test results and source code for accurate coverage and implementation details.

Read on tinybrowser.ericc.ch46 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Show HN: Rust Commander

Show HN: Rust Commander

Rust Commander is a Rust terminal file manager modeled on Midnight Commander, with dual-pane navigation, a persistent shell, archive and remote browsing, and background file operations. Version 0.3.1 adds file-change alerts, viewer copy controls, customizable skins, and faster SFTP previews and copying. (github.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.