I wrote a tool to download and manage Zig versions ... in zig.
It uses the JSON metadata available for zig downloads. It has one third party dependency on minisign. JSON parsing, HTTPS client, and tar/compression were all available in the standard library.