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.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.