menu

Wasmer

Wasmer is a organization dedicated to the advancement and development of WebAssembly through open-source software.

Channels
# All channels
view-forward
# General
view-forward
# runtime
view-forward
# wapm-cli
view-forward
Team

How does wapm upload work ? And how would data persistence work ?

January 17, 2020 at 2:59pm

How does wapm upload work ? And how would data persistence work ?

January 17, 2020 at 2:59pm

Wapm upload ?

So I tried going through the source but I can't seem to find where wapm upload command is implemented.

What I gathered

From what I read from the docs and what I could find that could be possibly that, in the source, how it works is we create an StdIn and (considering how we access the OS FileSystem) a FileInput is spawned when we write wapm upload in the terminal.
Am I right in my assumptions and is this how it works?

Data persistence

So an issue I am having is I want to make my app a PWA and data persistence would be desired for my userbase(young people who will potentially close the tab by accident). Can wasmfs have a persistent file system or should I use a browser feature for this ? Basically, I think I could use the browser cache and when using node I would just use the native nodefs to save to host but any insight into this would be appreciated. I would prefer a generalizeable wasmfs way but it may be impossible.
Thank you and thank you for wasmerjs it's a really cool and important technology for the future and now !

January 17, 2020 at 3:35pm
Thanks for creating this thread Jean!
wapm upload (for the WebAssembly shell) is implemented here: https://tangramgames.itch.io/tobu-tobu-girl-deluxe/purchase?popup=1
Right now, data is not persisted after you close the tab, but that's something that should be very easy to implement (since we designed wasmer-js with that in mind).
  • reply
  • like
Thanks for creating this thread Jean!
wapm upload (for the WebAssembly shell) is implemented here: https://tangramgames.itch.io/tobu-tobu-girl-deluxe/purchase?popup=1
Right now, data is not persisted after you close the tab, but that's something that should be very easy to implement (since we designed wasmer-js with that in mind).
Euhm the link you gave is for a gameboy game; maybe you didn't copy before you pasted :P And if it would be easy to implement , where would I need to start if I wanted to contribute the feature ?
  • reply
  • like