Publishing components

Store and run signed artifacts from an OCI registry.

Wasmflow tools will automatically pull from an OCI registry if the passed filename isn’t found on the local filesystem. If you don’t have an OCI registry handy, you can start one easily with Docker.

$ docker run -it --rm -p 5000:5000 registry

This will spin up a local registry with default settings. It’s suitable for testing but production registries will need more configuration.

Publish your artifact

The wafl registry push command will publish WebAssembly, manifests, or multi-architecture binaries to OCI registries.

If you’ve built the sample component in this guide, use this command to push it to test/getting-started:latest on our local registry.

$ wafl registry push build/my_project.signed.wasm --insecure
2022-06-20T22:23:50  INFO Pushing artifact...
Manifest URL:
Config URL:

Fetch your remote components

To run your components remotely all you do is pass the registry URL to vow in place of the filename we’ve used previously. wasmflow will take care of fetching and caching the remote artifact.

$ wasmflow invoke greet --latest --insecure -- --input="Jane Doe"
{"output":{"value":"Hello Jane Doe"}}