alt.hn

7/15/2026 at 9:00:17 PM

Show HN: Firefox in WebAssembly

https://developer.puter.com/labs/firefox-wasm/

by coolelectronics

7/15/2026 at 10:44:48 PM

>This port cost over 25k in opus/fable tokens for debugging and JIT research

> This was just a fun experiment to push the boundaries of WebAssembly

I'm a huge fan of the project, but I have to ask. If spending $25k is a "fun experiment", where exactly is your threshold for serious work?

by yjftsjthsd-h

7/15/2026 at 10:55:49 PM

Was it really $25k, or was it done though subscriptions with a reported cost of $25k?

I'm on the openai $100 sub and frequently my codexbar will show $250 usage in a day. I think it probably doesn't have access to the cached token share too, which probably inflates that a lot.

by tiagod

7/15/2026 at 10:57:05 PM

I imagine it is 25k tokens not dollars

by smalltorch

7/15/2026 at 11:00:34 PM

That's standard token usage for /init

by rustyhancock

7/15/2026 at 10:48:27 PM

Can’t get it running on Firefox 152.0.6 (aarch64), no extensions.

  [chrome-demo] chrome assets ready
  [gecko] warning: unsupported syscall: __syscall_madvise
  [gecko] embed-xul: main() on the app pthread (PROXY_TO_PTHREAD)
  [gecko] embed-xul: GECKO_GL_PASSTHROUGH=1
  [gecko] embed-xul: GECKO_COARSE_CLOCK=1
  [gecko] embed-xul: GECKO_GPU=1 (GPU/WebRender->canvas rendering)
  [gecko] xul_init: GRE dir = /gre
  [gecko] Pthread 0x11051000 sent an error! blob:https://developer.puter.com/edc1bd0a-b844-4a18-a69a-63dd49dc304a:8906: SecurityError: Security error when calling GetDirectory

by brewmarche

7/15/2026 at 11:00:38 PM

Running firefox on aarch64 here right now (Ubuntu 26.04 ARM on snapdragon X1E)

did you enable the about:config option? it may be required

by rlmineing_dead

7/15/2026 at 11:01:30 PM

Yes, you don’t get that far without it.

by brewmarche

7/15/2026 at 9:52:20 PM

I'm so glad this exists, I've been considering doing something like this for a few months.

I recently got a TV based on VIDAA os, a locked-down linux-based OS where everything is rendered from Web pages. It has a built-in browser that doesn't support ad-blocking (I suspect VIDAA is profiting from showing ads on the TV), and you can't install new apps unless they're Web pages.

This would hopefully allow one to run Firefox within the existing browser, then install uBlock Origin within Firefox... I know what this weekend's project is going to be...

by degamad

7/15/2026 at 9:56:25 PM

We also plan on adding extension support to https://github.com/HeyPuter/browser.js soon, which should hopefully cover use cases like that as well without the full overhead

by coolelectronics

7/15/2026 at 10:21:58 PM

Firefox should really bundle ublock origin as-is. I install it afterwards anyway but I don't understand Mozilla here. They seem to want to stay behind Google.

by shevy-java

7/15/2026 at 10:30:14 PM

In 2024, "search royalties" brought in approximately $585 million for Mozilla, largely from Google. It's not hard to see why they tread very lightly around ad blocking. It's actually impressive that ublock remains easy and painless to install as an extension.

by quantummagic

7/15/2026 at 9:47:38 PM

Oh and for anyone asking, you can run firefox-wasm inside firefox-wasm inside firefox! I only got this to load once though since it gets pretty unstable at that level.

by coolelectronics

7/15/2026 at 9:56:19 PM

Browser sandboxing is now fully solved.

by MajesticHobo2

7/15/2026 at 10:42:38 PM

In mean... It kinda feels like this is legitimately true? An attacker trying to do anything on a user's machine through this would have to find a Firefox vulnerability and a vulnerability in the wasm runtime, which is such a high bar that I would actually feel remarkably safe running this thing. The only question is how performance works and whether there are any pain points using as a daily driver, but those feel likely to be a pretty minor point. Oh, and the usual caveat that an attacker can still compromise things inside the sandbox which does leave a certain amount of exposure (but if you run different things in different instances they're isolated).

by yjftsjthsd-h

7/15/2026 at 11:03:51 PM

This is true but also this is probably also only half true. Sandboxing is not a fully solved issue since this 100% degrades firefox sandboxing since fission cant run and its running in singleprocess mode. Just wanted to be honest about this

by rlmineing_dead

7/15/2026 at 10:28:59 PM

All the network traffic from that browser is routed through a server. My IP inside that browser was in India and on CloudFlare network. I don’t particularly trust Puter. Why not route traffic through my actual browser?

by zerof1l

7/15/2026 at 10:33:31 PM

Because the web browser can't make arbitrary network connections. Even if it was implemented intercepting at the HTTP layer (which would probably be much more difficult than just intercepting the low level socket operations) you wouldn't be able to properly manage CORS headers, cookies and various other things.

by kevincox

7/15/2026 at 10:33:37 PM

The TCP proxy exit node we're using is running on Cloudflare, you can check that your traffic is still TLS encrypted by OpenSSL (also compiled to webassembly). The browser does not have a native API to send raw TCP so the proxying is done by the http://github.com/MercuryWorkshop/wisp-protocol protocol. You can check your packets in dev tools, look for a socket connection with "puter.cafe" as the host for our TCP proxy. This application is meant to be a demo for it actually (why it says at the bottom that its powered by puter networking). That is the only server side component of this.

by rlmineing_dead

7/15/2026 at 10:47:18 PM

I was reading your landing page at https://developer.puter.com/networking/ and was very confused by how you were achieving the "with no server or proxy" part, until much further down the page:

> "the connection is tunneled over a single WebSocket to a Puter relay"

Come on, it's both a server and a proxy, and it doesn't stop being those things just because you're calling it a relay.

by Retr0id

7/15/2026 at 10:57:58 PM

apologies yes there is a wording error here, the correct wording is no CORS proxy, the reason why this is important is because cors proxies are inherently insecure (this is different because the TLS is done in your browser with a webassembly library).

no servers is referring to you not needing to host servers in the same as the term "serverless". Such is the ways of modern tech terms I fear

by rlmineing_dead

7/15/2026 at 10:53:57 PM

I wrote that and I think you're right. We were trying to convey that you don't need to set up anything, but the wording could definitely be better. I'll change it.

by ent101

7/15/2026 at 10:32:38 PM

Puter's networking is open-source and e2e encrypted. Also, a regular browser doesn't give access to raw TCP sockets used for this, so it wouldn't be possible to route through your browser.

by ent101

7/15/2026 at 10:58:37 PM

So it's just the three accounts you have now? (Show by @coolelectronics now and 7 months ago [1], show from you/@ent101 2d ago [0], 2025[2,3], 2024[4,5,6], 2023[7], @george0812 2022[8] )

[0]: https://news.ycombinator.com/item?id=48895945

[1]: https://news.ycombinator.com/user?id=coolelectronics

[2]: https://news.ycombinator.com/item?id=44193514

[3]: https://news.ycombinator.com/item?id=42675696

[4]: https://news.ycombinator.com/item?id=41849494

[5]: https://news.ycombinator.com/item?id=41360683

[6]: https://news.ycombinator.com/user?id=ent101

[7]: https://news.ycombinator.com/item?id=38202220

[8]: https://news.ycombinator.com/item?id=31611016

by gnabgib

7/15/2026 at 9:36:46 PM

> There is a novel WASM->JS JIT for experimental site speedup

I would love to see the details for this. SpiderMonkey had an attempted wasm32 JIT backend, but it was never finished.

edit: Apparently it also has some sort of WebAssembly interpreter backend too, which SpiderMonkey doesn't have.

by eqrion

7/15/2026 at 10:00:25 PM

edit: I misunderstood, that's $25k not 25k tokens :/ time to log off.

this is so rad! 25k tokens is a lot less than i thought this'd take -- what were the difficult bits in the porting process? also, was firefox preferred because parts of it are already in rust?

by sangeeth96

7/15/2026 at 10:07:41 PM

$25k of tokens, closer to 30 billion I believe. It only took a few days to actually get the engine up, the hard parts where most of the effort was spent was squeezing out performance and increasing stability, as well as attempting the JIT.

Firefox was chosen because its single-process support was in a better place than chromium/blink. WebKit is also possible, it was done by a friend of mine earlier https://github.com/theogbob/WebkitWasm

by coolelectronics

7/15/2026 at 10:15:20 PM

ah, i misunderstood. that seemed way too low in terms of actual tokens lol. i'll log off now. interesting details and didn't know about WebkitWasm. hope to read more soon.

by sangeeth96

7/15/2026 at 9:33:56 PM

"Yo dawg. I herd you like web browsers, so I put a browser in your browser, so you can browse the Web while you browse the Web".

by mdlxxv

7/15/2026 at 9:39:09 PM

should've used this in the splash screen :(

by ent101

7/15/2026 at 10:18:32 PM

"This browser doesn't support WebAssembly JSPI, which Firefox WASM needs to run."

by jedisct1

7/15/2026 at 9:45:54 PM

... doesn't support Firefox mobile apparently :D

by som

7/15/2026 at 9:49:35 PM

Does firefox mobile (Android, since firefox mobile iOS is a WebKit wrapper) support about:config settings? if so you can enable wasm_js_promise_integration in about:config and have it working likely. I will test this on my Pixel 10 pro

by rlmineing_dead

7/15/2026 at 9:59:00 PM

hi reporting back, yes stock firefox mobile wont work but the BETA version will because it just added the WASM feature needed (firefox 153 adds it but regular mobile firefox lacks about:config support it seems)

and by "will work" I mean will render the first frame and then freeze

YMMV

by rlmineing_dead

7/15/2026 at 10:05:38 PM

[dead]

by ohonbob