Skip to content
Max Ng edited this page Oct 20, 2019 · 19 revisions

Welcome to the ted-gui wiki!

This page seeks to provide information on the integration of TED Wasm used in TED-GUI App. Hopefully this will enable enough information to build your own html and javascript to interact with TED Wasm.

A good place to start with WebAssembly/Wasm will be WebAssembly Website and Mozilla Site on using WebAssembly on browser. TED-GUI wasm was an extension of TED app both written in GO. Its the same application logic but with slight modification compiled for wasm. GOlang has since version 1.11 supported WASM/JS as beta port. Some of the works are still in development. Wasm interacts with the browser frontend using js, and it is possible to build a html web app with wasm interacting with js. Go WebAssembly provides the documentation and Syscall/js provides the documentation on the js API available for js to interact with GO function within wasm.

TED-GUI wasm uses a much simplier wasm approach. Using the same concept as TED, it exposes the CLI and allows js to call the wasm, passing the necessary CLI argument. This Wiki documents the CLI argument and shows how js can interfact using argv.js with TED wasm.

Clone this wiki locally