Various WASM component examples 🎉
- Node 22 LTS+
- Either
wkgorwashavailable inPATHwkgfromwasm-pkg-toolswashfromwasmCloud
- Wasmtime (optional, for
start-wasmtimecommands) - wasmCloud (optional, for
start-washcommands)
npm installnpm run buildRun a specific example, such as hono-app via wasmtime serve:
npm run start-wasmtime -w examples/hono-app
js-app: Minimal JavaScript example of an HTTP Server using thefetch-eventstyle APIs.
The TypeScript examples are configured to use Rollup to make it easier organize apps in multiple files and leverage existing npm packages.
- Fermyon Blog: Routing in Spin Apps with Hono
- wasmCloud TypeScript Example: HTTP Server with Hono
- Bytecode Alliance Repo: sample-wasi-http-js