A collection of example wasm components. The example Wasm components are also available in the releases
This repo will give some examples on how to create your own wasm components, which can be used in the Betty Blocks wasm action builder.
Currently this repo contains creating wasm component using the following languages:
-
Rust
- component to combine two string into one string, called concat-text
- component to calculate the nth prime number
- component that does a http call to jsonplaceholder
-
Golang
- component to combine two string into one string, called concat-text
- component to calculate the nth prime number
- component that does a http call to jsonplaceholder
-
Typescript
- component to combine two string into one string, called concat-text
- component to calculate the nth prime number
- component that does a http call to jsonplaceholder
For more examples with other programming languages take a look at the following repos:
- wasmcloud main repo
- wasmcloud typescript
- wasmcloud go
- jco typescript
- componentize-js javascript
- componentize-py python
- componentize-dotnet c#
- Rust:
- rust with cargo with the target wasm32-wasip2
- Golang
- golang install golang
- tinygo install tinygo
- Typescript:
- bun install bun
To build the rust components run:
just build-rust
To build the golang components run:
just build-go
to build the typescript components run:
just build-typescript