Stream: general

Topic: default registry of wkg wit fetch


view this post on Zulip Frédéric Soumaré (F2'25) (Apr 13 2026 at 18:59):

I am using wkg wit fetch to fetch the dependencies of wasi:http/proxy@0.2.0 and I wonder from where the dependencies are fetched from? I did not configure a default registry and
wkg config --edit returns an empty config file.

A wireshark capture shows network traffic from github ip addrs, but I can't find explicitly written in the documentation that ghci.io is the fallback registry that wkg wit fetch uses. Did I miss the information somewhere?

view this post on Zulip Victor Adossi (Apr 13 2026 at 19:25):

Hey @Frédéric Soumaré (F2'25) I assume you've already found the source code at wasm-pkg-tools -- what you're seeing should be the combination of the fallback namespace registries configuratoin:

https://github.com/bytecodealliance/wasm-pkg-tools/blob/6877a493c8a307d274bb2bd361afd2795fc076d3/crates/wasm-pkg-common/src/config.rs#L15

And .well-known endpoints as described in the README:

https://bytecodealliance.org/.well-known/wasm-pkg/registry.json

https://wasi.dev/.well-known/wasm-pkg/registry.json

view this post on Zulip Victor Adossi (Apr 13 2026 at 19:26):

While wkg can be explicitly configured as to which registries it uses via overrides, specified well-known metadata is a popular choice for public registries.

view this post on Zulip Frédéric Soumaré (F2'25) (Apr 13 2026 at 19:28):

#TIL thank you very much

view this post on Zulip Victor Adossi (Apr 13 2026 at 19:29):

No problem, glad I could help! One thing that would help is if you could share (or even better make a PR) to where you would have expected this documentation to be

view this post on Zulip Victor Adossi (Apr 13 2026 at 19:30):

It's probably useful signal that it wasn't easy to find even though it should maybe have been -- probably means we need to update some documentation somewhere (i.e. where ever you got started, or read about how to use wkg, etc).

Depending on where it is of course how we can change the docs may be limited but always useful to know the path you took (and others will likely take!)

view this post on Zulip Victor Adossi (Apr 13 2026 at 19:31):

Oh also, there is a #**SIG-Packaging> channel as well if you're particularly interested in packaging of WebAssembly components

view this post on Zulip Victor Adossi (Apr 13 2026 at 19:32):

#SIG-Packaging

view this post on Zulip Frédéric Soumaré (F2'25) (Apr 13 2026 at 22:50):

Here is a small PR that I think could have helped me answer my question:
https://github.com/bytecodealliance/wasm-pkg-tools/pull/200

view this post on Zulip Victor Adossi (Apr 14 2026 at 03:56):

@Daniel Macovei is the master of packaging (#Sig-Packaging) -- He's probably the right person to take a look.

Thanks for the contribution, that should definitely help more people understand how wkg (and other tools that want to interop) should behave!


Last updated: May 03 2026 at 22:13 UTC