A meta-registry for WebAssembly
Find WebAssembly applications, libraries, and interface types published to any OCI 1.1-compliant registry. This includes GitHub Packages, AWS ECR, JFrog Artifactory, and more. Wasm Directory never serves packages directly: its only job is to serve metadata and resolve names.
Search the meta-registry.
Run your first component
Install the CLI, then go from an empty directory to a running wasi:http server.
-
Install the CLI
Grab the
componentCLI for your platform. We’ve picked the command that matches your system. Copy it and run.Install the CLI
-
Initialize a project
Scaffold a project in the current directory. This writes a
wasm.tomlmanifest and awasm.lock.tomllockfile so dependencies resolve to exact, reproducible versions.Initialize a project
component init -
Add a dependency
Add a dependency from any OCI registry. Here we pull in
ba:sample-wasi-http-rust(a ready-madewasi:httpserver) and record it in your manifest and lockfile.Add a dependency
component install ba:sample-wasi-http-rust -
Run the server
Run the server you just installed.
component runfetches the component if needed and serves it onlocalhost:8080.Run the server
component run ba:sample-wasi-http-rust -
Send a request
From another terminal, send it a request and watch it respond.
Send a request
curl localhost:8080
Publish your first component.
Add your namespace to a registry config and run component publish.