Typescript examples
This section includes examples of WebAssembly components and capability providers for wasmCloud written in Typescript.
Typescript, being a super set of Javascript has support for WebAssembly via Javascript support for WebAssembly,
which is powered primarily by jco
, componentize-js
and StarlingMonkey JS Engine underneath.
All the parts in the JS WebAssembly ecosystem play different roles:
- StarlingMonkey is a robust, performant JS engine that compiles to WebAssembly to evaluate Javascript
componentize-js
turns Javascript code into WebAssembly components that use the StarlingMonkey engine to executejco
bundlescomponentize-js
, generates WIT bindings, and enables WASI components to run in NodeJS and the browser
Examples are automatically propagated from the wasmCloud/typescript
repository.