Developer

Firefox Compiled to WebAssembly Runs Inside Another Browser

Developer Puter has compiled the Firefox browser to WebAssembly, allowing the entire Gecko-based browser to run inside another browser. The project cost an estimated $25,000 in AI tokens and uses a WebSocket proxy for network traffic. The demo supports end-to-end encryption for HTTPS sites.

Neura News

Neura News

Neura Market Editorial

July 17, 20262 min read
Firefox Compiled to WebAssembly Runs Inside Another Browser

Firefox in WebAssembly

A developer named Puter has accomplished a remarkable technical feat: compiling the Firefox browser to WebAssembly so that the entire browser runs inside another browser. The project demonstrates just how far WebAssembly has come as a platform for running complex native applications.

Simon Willison documented the achievement on his blog, showing a screenshot of his own site running inside Firefox, which was running inside WebAssembly, which was running inside Chrome. The stack illustrates the layered nature of the implementation.

Why Firefox and How It Works

The team chose Firefox and its Gecko rendering engine because of its strong single-process support. This made it easier to compile the browser to WebAssembly without the complications that come with multi-process architectures.

The project required significant computational resources. Puter estimated that the effort consumed approximately $25,000 worth of Claude Opus and Fable tokens, taking advantage of a Claude Max subscription plan to keep costs manageable.

Network Proxy Requirement

This proxying arrangement proved expensive to operate. The team had to scale up their servers to handle the traffic surge that came when the project was discussed on Hacker News.

Stay updated

Get the day's AI and automation news in your inbox. No spam, unsubscribe anytime.

Security and Encryption

Puter claims that the setup supports end-to-end encryption. Willison verified this claim by inspecting the WebSocket messages. Traffic to his own HTTPS site was encrypted, while requests and responses to http://www.example.com/ appeared in cleartext. This confirms that the encryption is working as expected.

Related Projects

The code for the Firefox-in-WebAssembly project is available in the firefox-wasm repository. A similar project called WebkitWasm, by developer theogbob, compiles WebKit to WASM. However, that project does not currently have an accessible online demo.

Background

WebAssembly, or WASM, is a binary instruction format that allows code written in languages like C, C++, and Rust to run in web browsers at near-native speed. Compiling an entire browser like Firefox into WASM is a significant achievement that pushes the boundaries of what the technology can do.

Puter is known for building a browser-based operating system that runs in the cloud. The company has been exploring ways to bring desktop-class applications to the web.

Related on Neura Market

More from Neura News

Industry

Apple Sues OpenAI, New York Halts Data Centers, Cyclosporiasis Spreads

Apple has sued OpenAI, accusing the company of stealing hardware secrets through former employees, including chief hardware officer Tang Tan. Meanwhile, New York became the first state to impose a moratorium on large-scale data centers, drawing criticism from Donald Trump. The episode also covers OpenAI employees funding a rival super PAC for AI guardrails, DOGE's use of AI at HUD facing FOIA stonewalling, and a cyclosporiasis outbreak spreading across over 30 states.

Jul 16·6 min read
Industry

Netflix Nears Major Upfront Deals, Targets $3 Billion in Ad Revenue

Netflix announced it is in advanced talks to close upfront advertising deals and is on track to generate $3 billion in ad revenue in 2026. The streaming giant also reported Q2 revenue growth of 13% year over year to $12.6 billion, while viewership hours increased 2% in the first half of the year. However, Netflix's stock fell 8% in after-hours trading after the company narrowed its full-year revenue forecast to between $51.0 billion and $51.4 billion.

Jul 16·3 min read