@rerun-io/web-viewer-react v0.16.0
Rerun web viewer
Embed the Rerun web viewer within your React app.
If you'd like to use a framework-agnostic package instead, see https://www.npmjs.com/package/@rerun-io/web-viewer.
Install
$ npm i @rerun-io/web-viewer-react
ℹ️ Note:
The package version is equal to the supported Rerun SDK version.
This means that @rerun-io/web-viewer-react@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
import WebViewer from "@rerun-io/web-viewer-react";
export default function App() {
return <WebViewer rrd="...">
}
The rrd
in the snippet above should be a URL pointing to either:
- A hosted
.rrd
file, such as https://app.rerun.io/version/0.16.0/examples/dna.rrd - A WebSocket connection to the SDK opened via the
serve
API
If rrd
is not set, the Viewer will display the same welcome screen as https://app.rerun.io.
ℹ️ 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
6 days ago
6 days ago
5 days ago
5 days ago
4 days ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago