Problem description
Hi :) We wanted to build a small browser application using Iroh, like the chat demo we saw at the Local-First Unconference!
It took us a while to figure out that the npm package @number0/iroh is not intended for browsers, but only for Node.js.
Solution
I'd suggest menioning that very clearly in the README of iroh-js, displayed at npmjs.com, to avoid disappointing potential users.
Current workarounds
- The browser-chat example is made using Rust + WASM + Javascript.
- We got started on our thing using Dioxus, which avoids some duplicated data structures.
Wish for the future
(When you get back to the FFI bindings, it would be very nice to have an npm module that runs in browsers! 😊 The current approach of having to use Rust + WASM is… quite a technical challenge!)