Various WebAssembly (WASM) application builds intended for use with Lind-Wasm.
This repository contains example and utility applications (benchmarks, demos, etc.) that integrate with the Lind runtime environment to showcase capabilities, facilitate testing, and serve as starting points for WASM-based development.
Lind is a platform for running WASM applications in a secure, sandboxed environment. The lind-wasm-apps project exists to:
-
Provide realistic examples of applications compiled to WASM for use in Lind.
-
Offer benchmarks and performance tests to validate and stress-test Lind’s runtime.
-
Serve as reference implementations or scaffolding for developers building their own WASM apps targeting Lind
Clone this repo (commonly alongside lind-wasm):
- git clone https://github.com/Lind-Project/lind-wasm-apps.git
- cd lind-wasm-apps
==Build everything:==
- make all
Artifacts land underbuild/:
build/sysroot_overlay/– staged headers/libs (e.g., libtirpc)build/sysroot_merged/– base sysroot + overlaybuild/lib/– helper archives (e.g.,liblmb_stubs.a, combinedlibc.a)build/bin/lmbench/wasm32-wasi/– lmbench binariesbuild/bin/bash/wasm32-wasi/– bash outputs
==List produced binaries:==
- find build/bin -maxdepth 4 -type f -printf '%P\n' | sort
make preflight
Detects toolchain (clang,llvm-ar,llvm-ranlib) and writesbuild/.toolchain.env.make libtirpc
Builds libtirpc (WASI) and stages intobuild/sysroot_overlay/.make merge-sysroot
Copies the base sysroot intobuild/sysroot_merged/and overlays libtirpc.make stubs
Creates small compatibility stubs needed for lmbench (temporary workaround; see TODOs in Makefile).make lmbench
Builds lmbench vialmbench/src/compile_lmbench.shand stages intobuild/bin/lmbench/wasm32-wasi/.make bash
Builds bash viabash/compile_bash.shand stages intobuild/bin/bash/wasm32-wasi/.- `make clean Remove build outputs and merged sysroot + overlay.
LIND_WASM_ROOT– path tolind-wasm(default:~/lind-wasm)WASMTIME_PROFILE–debugorrelease(scripts fall back toreleaseif missing)WASM_OPT,WASMTIME– override tool paths if needed