open-index/open-npm huggingface dataset:
npm package: @ledgerhq/speculos-web
Description: A VNC/Websocket UI bridge to distant running Speculos devices
Latest version: 3.2.0

# speculos-web

A VNC/Websocket UI bridge to distant running Speculos devices

![](./assets/screenshot.jpg)

## Usage

Register your transport:

```ts
import { registerTransportModule } from "@ledgerhq/live-common/lib/hw";
import { createSpeculosWebTransport } from "@ledgerhq/speculos-web";

registerTransportModule({
  id: "speculos-web",
  open: (id: string) => {
    if (id !== "speculos-web") return;
    return createSpeculosWebTransport();
  },
  disconnect: () => null,
});
```

Use the `<SpeculosWeb />` component:

```tsx
import { SpeculosWeb } from "@ledgerhq/speculos-web";

function MyApp() {
  return (
    <div>
      <SpeculosWeb baseDomain="speculos-server.com" staxAppVersion="1.0.1" />
    </div>
  );
}
```