TypeScript examples and project templates for building wasmCloud components.
wasmCloud Components are WebAssembly components that serve as applications on the wasmCloud platform.
| Example | Description |
|---|---|
| TypeScript Components | Sample wasmCloud components written in TypeScript |
Project templates for scaffolding new wasmCloud component projects.
These templates can be used with wash new:
wash new https://github.com/wasmCloud/typescript.git --name my-project --subfolder templates/<template-name>| Template | Description |
|---|---|
| http-hello-world-hono | Minimal HTTP server component using Hono |
| http-hello-world-fetch | Minimal HTTP server component using the fetch() API |
| http-client | Component that makes outgoing HTTP requests |
| http-api-with-distributed-workloads | HTTP API + worker template demonstrating distributed workloads via wasmcloud:messaging |
| http-handler-hono | HTTP handler component powered by Hono |
| http-blobstore-handler-hono | HTTP handler component powered by Hono, backed by wasi:blobstore |
| http-filesystem-handler-hono | HTTP handler component powered by Hono, backed by wasi:filesystem |
| http-kv-handler-hono | HTTP handler component powered by Hono, backed by wasi:keyvalue |
| http-logging-handler-hono | HTTP handler component powered by Hono, backed by wasi:logging |
| service-tcp-echo | Service + component template demonstrating wasi:sockets TCP |
See the templates README for more details.
The examples and templates are released as vX.Y.Z GitHub Releases. Add --git-ref
to wash new to use a template from a release instead of main:
wash new https://github.com/wasmCloud/typescript.git --name my-project --subfolder templates/<template-name> --git-ref v2.12.0Each release attaches wasmcloud-typescript-vX.Y.Z.tar.gz, the source of the tag, with its SPDX
SBOM, an OpenVEX document of advisories that don't affect it, a
wasmcloud-typescript-vX.Y.Z.SHA256SUMS file (SHA256SUMS up to v2.12.0) and Sigstore bundles. To verify a download with the
GitHub CLI:
gh attestation verify wasmcloud-typescript-v2.12.0.tar.gz \
--repo wasmCloud/typescript \
--signer-workflow wasmCloud/typescript/.github/workflows/release.yml--signer-workflow checks that the release was built and signed by this repository's
Release workflow, not just by any workflow in the repository.
SUPPORT.md says which release is supported.
For development setup, workflow, and contribution guidelines, see the Contributing Guide.
This project is licensed under the Apache 2.0 License.
- wasmCloud - The main wasmCloud runtime
- wasmCloud Documentation - Comprehensive guides and API reference
- WebAssembly Component Model - The foundation for wasmCloud components