@number0/iroh and shipped from iroh-ffi. They’re built with napi-rs, so the package distributes prebuilt native binaries — no Rust toolchain or local compilation needed.
Install
- macOS:
arm64(no Intel build) - Linux:
x86_64andaarch64(glibc + musl),armv7(gnueabihf + musleabihf) - Windows:
x86_64andaarch64 - Android:
aarch64andarmv7
Hello, iroh
Endpoint.bind applies the n0 preset (public discovery + default relays) by default. Pass an EndpointOptions object to override the preset, supply a fixed secret key, or set ALPNs.
A two-peer echo
A minimal sender/receiver pair over a bidirectional stream:Next steps
Connect two endpoints
Walkthrough of endpoints, tickets, and ALPNs with code samples in every language.
JavaScript API reference
Generated TypeDoc reference for
@number0/iroh.iroh-ffi on GitHub
Source, examples, and issue tracker for the JavaScript (and other-language) bindings.