Skip to content

Mention in iroh-js README that the npm package is only inteded for Node.js #223

@blinry

Description

@blinry

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!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions