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.

The #1 Newsletter in AI

Stay ahead of the AI curve

The most important updates, news, and content — delivered weekly.

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

General

Open-weight AI mirrors Kubernetes ecosystem shift

Tobi Knaup, co-founder of Mesosphere, draws parallels between the rise of Kubernetes and the current trajectory of open-weight AI models. He argues that open-weight models are becoming a neutral substrate for innovation, attracting a global ecosystem of developers, startups, and enterprises. The piece warns against US restrictions on Chinese open-weight models, advocating instead for American leadership through open releases, procurement strategies, and standards.

Jul 25·7 min read
General

Open-weight AI mirrors Kubernetes rise, US warned on bans

The author, a Mesosphere co-founder, draws parallels between the rise of Kubernetes and the current open-weight AI ecosystem. He argues that open-weight models are becoming a neutral platform for innovation, and warns that US restrictions on Chinese open-weight models could isolate American developers from a global ecosystem. The piece urges the US to compete by releasing frontier models, using procurement to create demand, building the stack, and setting standards rather than imposing bans.

Jul 25·7 min read
Industry

Power line failure reveals AI data center grid risks and solutions

A fallen power line near Washington, DC caused over 3 gigawatts of data center load to vanish from the PJM grid in seconds, spiking voltage across the region. The event, which made lights flicker from Northern Virginia to Chicago, highlights a growing problem as AI data centers become larger and more concentrated. Experts warn that without better coordination or technology like ON.Energy's battery-backed uninterruptible power supply, such disruptions will become more frequent and severe.

Jul 25·5 min read