Skip to main content

auki-network-browser-wasm

Synced from the repository

This page mirrors crates/auki-network-browser-wasm/README.md in the auki-sdk repo (branch develop). The repository is the source of truth.

Browser / WASM libp2p transport probe — wasm-bindgen-exposed surface that lets a browser peer derive a PeerId from a wallet seed and (behind the browser_libp2p feature) participate in a session through a minimal ClusterManager adapter.

A v0 exploration crate. The cluster runtime support is gated behind a feature flag and the broader browser-side stream/control protocol surface is still being scoped.

Status: WIP (v0.0.0).

Public surface

  • sdkName() -> String
  • peerIdFromSeed(seed: &[u8]) -> Result<String, JsValue>
  • Behind browser_libp2p: browser-flavored ClusterManager bootstrap + BrowserSessionParticipant / BrowserMediaPresence / BrowserRosterSnapshot / BrowserSessionSensor glue. Browser joins prefer browser-dialable Manager addresses (/webrtc-direct, WebSocket, or WebSocket relay circuits) from Discovery and use WebSocket + Circuit Relay v2 transport when joining through a Domain Relay.

Depends on

  • auki-identity — for Wallet → PeerId derivation.
  • auki-network — for the libp2p substrate.
  • auki-domain (optional, behind browser_libp2p) — for the cluster lifecycle facade.