-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Put web viewer on npm
#3983
Comments
It should also handle showing a loading screen while the WASM download, and show a nice error message on crashes |
jprochazk
added a commit
that referenced
this issue
Nov 3, 2023
### What Closes #3983 * [x] Create the package * [x] Examples using the package * [x] No framework * [x] React * [x] Document the package * [x] Note about package version being equal to the rerun version (`@rerun-io/web-viewer@0.9.1` can load the same files as `pip install rerun-sdk==0.9.1`) * [x] Note about WASM imports * Bundlers generally handle WASM imports well * [x] Build the package on CI * [x] Add `npm publish` step to release process ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/4003) (if applicable) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG - [PR Build Summary](https://build.rerun.io/pr/4003) - [Docs preview](https://rerun.io/preview/75c1c97533a42a7a786f14a777fa6b3fe9397245/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/75c1c97533a42a7a786f14a777fa6b3fe9397245/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://ref.rerun.io/dev/bench/) - [Wasm size tracking](https://ref.rerun.io/dev/sizes/)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The package will contain our Wasm binary, and bindings for it. The basic set of features should be:
.rrd
file to loadWe'll have a small library to wrap these bindings and make them nicer to use. The web viewer should be framework agnostic, ideally exposed as a web component:
We should also provide wrappers for popular frameworks (at least React, Vue, Svelte) that just instantiate and manage the custom element:
I created the
rerun-io
npm org where we can publish the package: https://www.npmjs.com/org/rerun-ioThe text was updated successfully, but these errors were encountered: