Skip to content
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

Emit standalone, interactive HTML pages with Yew #9

Open
fitzgen opened this issue Feb 16, 2018 · 6 comments
Open

Emit standalone, interactive HTML pages with Yew #9

fitzgen opened this issue Feb 16, 2018 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed wasm

Comments

@fitzgen
Copy link
Member

fitzgen commented Feb 16, 2018

We should be able to emit an HTML file containing:

  • the whole serialized IR graph (not just one analysis on it) as JSON
  • a base 64 encoded .wasm blob, that contains a Yew app that deserializes the IR graph and then interactively runs any analysis on it that you might choose.

This HTML file would be able to be sent easily as an email attachment or uploaded to a bug tracker, etc. Since it is just a single HTML file, and you wouldn't need to wrangle an HTML file and a JS file and a wasm file and ... and keep their relative positions on the filesystem correct.

@fitzgen fitzgen added enhancement New feature or request help wanted Extra attention is needed wasm labels Feb 16, 2018
@fitzgen
Copy link
Member Author

fitzgen commented Feb 16, 2018

And whoever you sent this HTML file to wouldn't need to have svelte already installed either.

@fitzgen
Copy link
Member Author

fitzgen commented Feb 16, 2018

Also, the web would be a good place to create visualizations like tree maps

@fitzgen
Copy link
Member Author

fitzgen commented Feb 27, 2018

@mbebenita wants something like this to integrate into wasm studio. In this use case, crucially, it would be able to parse new binaries live in the website, not work only with some extant parsed IR.

@mbebenita
Copy link

Since it is just a single HTML file, and you wouldn't need to wrangle an HTML file and a JS file and a wasm file and ... and keep their relative positions on the filesystem correct.

We can handle this use case through WebAssembly.Studio fiddle URLs.

@data-pup data-pup mentioned this issue Mar 7, 2019
3 tasks
@AlexEne
Copy link
Collaborator

AlexEne commented Aug 6, 2021

Would you be supportive in closing this in favor of: #581 ?

@zxch3n
Copy link

zxch3n commented Jan 31, 2024

I made something that might be related to this https://github.com/zxch3n/wasm-size-inspector

WASM.Size.Inspector.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed wasm
Projects
None yet
Development

No branches or pull requests

4 participants