Skip to main content
Version: 1.x

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 execute
  • jco bundles componentize-js, generates WIT bindings, and enables WASI components to run in NodeJS and the browser

Examples are automatically propagated from the wasmCloud/typescript repository.

Components

HTTP-focused components