For the discovery and installation, you might be interested in looking into using IPFS for it. Kind of gives you all the features you want out-of-the-box. Also, another guy is working on mirroring the npm registry in IPFS, might be interesting for you: <a href="https:&#x2F;&#x2F;github.com&#x2F;diasdavid&#x2F;registry-mirror" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;diasdavid&#x2F;registry-mirror</a>