Can txiki be compiled into a WASM module?
dimisus opened this issue · 3 comments
The project checks a lot of boxes in what I need, thank you for the library!
But I need txiki.js
as a wasm module so I can run JS code against.
Is this possible?
The project checks a lot of boxes in what I need, thank you for the library!
Good to hear, thank you!
But I need
txiki.js
as a wasm module so I can run JS code against.Is this possible?
Not easily I don't think. The JS engine powering txiki.js
can QuickJS
, but this project adds a lot more stuff there in terms of platform support, such as sockets, etc. It even embeds a small WASM engine itself.
I don't think it would be easy (os possible!) to have all of that working inside WASM.
:/
I would need a quickjs engine with up-to-date ES features + FileSystem acces + Encoder API bundled as a WASM module with WASI. Any advise if this can be easily achieved with your quickjs-ng fork?
Not sure. Everything you listed is "simple" except the FS access, because it would need to be written for WASI specifically.