/wasm-talk

WASM Talk protocol for scripts and hooks on CartJumper and FreightChick

Primary LanguageGoApache License 2.0Apache-2.0

WASM Talk

Package wasmtalk contains helper types and functions for writting go based scripts and hooks for CartJumper, and FreightChick.

Protocol

GC Applications utilize a JSON message based protocol to pass messages back and forth over stdout and stdin between webassembly scripts and our applications.

Create a WebAssembly module using the WASI compilation mode in golang and write messages to stdout to return data from your scripts.

[GC Application] - {JSON Message} -> [Script/Hook]
[GC Application] <- {JSON Message} - [Script/Hook]
...