Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riskers/js-exec-go-wasm
Browser and Nodejs execute WASM code compiled by Golang or TinyGo
https://github.com/riskers/js-exec-go-wasm
golang golang-wasm nodejs nodejs-wasm tinygo wasm wasm-runtime wasmer webassembly
Last synced: about 1 month ago
JSON representation
Browser and Nodejs execute WASM code compiled by Golang or TinyGo
- Host: GitHub
- URL: https://github.com/riskers/js-exec-go-wasm
- Owner: riskers
- License: mit
- Created: 2022-07-16T13:45:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T16:30:54.000Z (10 months ago)
- Last Synced: 2024-04-24T02:59:13.958Z (8 months ago)
- Topics: golang, golang-wasm, nodejs, nodejs-wasm, tinygo, wasm, wasm-runtime, wasmer, webassembly
- Language: JavaScript
- Homepage: https://stackoverflow.com/questions/72937239/nodejs-run-wasm-generated-by-golang-error-but-browser-success
- Size: 3.88 MB
- Stars: 17
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# js execute WASM complied by Golang or TinyGo
---
[中文说明](https://riskers.notion.site/Nodejs-Browser-Go-WASM-2bd0c234951342f4931ba44c05c17c54?pvs=4)
---
* Go Version: `go version go1.21.5 darwin/arm64`
* TinyGo Version: `tinygo version 0.30.0 darwin/amd64 (using go version go1.21.5 and LLVM version 16.0.1)`
* Nodejs Version: `v18.17.1`
* wasm [source code](./wasm/README.md)## Official Golang solution
* [Golang](./solutions/golang/README.md)
## TinyGo solution
* [tinygo](./solutions/tinygo/README.md)
## Pack WASM
Universal wasm for Node and Browsers :) :
* [cross-wasm](./packages/cross-wasm/README.md)
## Example
* [Browser](./cross-examples/browser-using-wasm/)
* [ESM](./cross-examples/browser-using-wasm/html/esm.html)
* [UMD](./cross-examples/browser-using-wasm/html/umd.html)
* [WebWorker](./cross-examples/browser-using-wasm/html/webworker.html)
* [Webpack](./cross-examples/browser-using-wasm/html/webpack.html)
* [Nodejs](./cross-examples/nodejs-using-wasm/)