Various WASM component examples 🎉
- Node 22 LTS+
- Either
wkg
orwash
available inPATH
wkg
fromwasm-pkg-tools
wash
fromwasmCloud
- Wasmtime (optional, for
start-wasmtime
commands) - wasmCloud (optional, for
start-wash
commands)
npm install
npm run build
Run 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-event
style 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