Skopeo's experimental-image-proxy command (~1000 lines in cmd/skopeo/proxy.go) exposes a JSON+fd-passing protocol over a Unix socket pair, allowing non-Go programs to fetch container images. The primary consumer is https://github.com/containers/containers-image-proxy-rs.
The proxy is almost entirely a thin wrapper around containers/image APIs.
The proposed approach is to extract the proxy handler into a new package under container-libs so that it can be reused by other tools.
Once this proxy library is in place, #651 can be reworked to use it instead of introducing its own JSON-RPC server.
@mtrmac @cgwalters PTAL