0.16.0 • Published 5 days ago

@rerun-io/web-viewer v0.16.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 days ago

Rerun web viewer

Embed the Rerun web viewer within your app.

This package is framework-agnostic. A React wrapper is available at https://www.npmjs.com/package/@rerun-io/web-viewer-react.

Install

$ npm i @rerun-io/web-viewer

ℹ️ Note: The package version is equal to the supported Rerun SDK version. This means that @rerun-io/web-viewer@0.10.0 can only connect to a data source (.rrd file, websocket connection, etc.) that originates from a Rerun SDK with version 0.10.0!

Usage

The web viewer is an object which manages a canvas element:

import { WebViewer } from "@rerun-io/web-viewer";

const rrd = "…";
const parentElement = document.body;

const viewer = new WebViewer();
await viewer.start(rrd, parentElement);
// …
viewer.stop();

The rrd in the snippet above should be a URL pointing to either:

If rrd is not set, the Viewer will display the same welcome screen as https://app.rerun.io.

For a full example, see https://github.com/rerun-io/web-viewer-example. You can open the example via CodeSandbox: https://codesandbox.io/s/github/rerun-io/web-viewer-example

ℹ️ Note: This package only targets recent versions of browsers. If your target browser does not support Wasm imports or top-level await, you may need to install additional plugins for your bundler.

Development

$ npm run build
0.16.0-rc.1

6 days ago

0.16.0-rc.2

6 days ago

0.16.0-rc.3

5 days ago

0.16.0-rc.4

5 days ago

0.16.0

5 days ago

0.15.1-rc.1

1 month ago

0.15.1

1 month ago

0.15.0

1 month ago

0.15.0-rc.3

1 month ago

0.15.0-rc.2

2 months ago

0.15.0-rc.1

2 months ago

0.15.0-alpha.5

2 months ago

0.15.0-alpha.4

2 months ago

0.14.1

3 months ago

0.14.0

3 months ago

0.14.0-rc.4

3 months ago

0.14.0-rc.3

3 months ago

0.13.0-alpha.12

3 months ago

0.13.0-alpha.11

3 months ago

0.13.0

3 months ago

0.13.0-rc.4

3 months ago

0.13.0-rc.2

3 months ago

0.13.0-rc.3

3 months ago

0.13.0-alpha.4

3 months ago

0.13.0-rc.1

3 months ago

0.12.1

4 months ago

0.12.1-rc.2

4 months ago

0.12.1-rc.1

4 months ago

0.12.0-rc.6

4 months ago

0.12.0

4 months ago

0.12.0-rc.4

4 months ago

0.12.0-rc.3

4 months ago

0.12.0-rc.2

5 months ago

0.12.0-rc.1

5 months ago

0.12.0-alpha.4

5 months ago

0.11.0

6 months ago

0.11.0-rc.2

6 months ago

0.11.0-alpha.1

6 months ago

0.0.8-alpha.2

7 months ago

0.0.8-alpha.1

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago

0.0.0

7 months ago