Do you know the once.com model? You could maybe build the business model like this. Starting with now closed-source libraries to provide the source code instead of the DLL in the windows ecosystem. Or does anyone compete Steam with Bitcoin?
Otherwise I think developers rather want to pay for infrastructure than for code. So maybe they would rather pay two sats per downloaded package at a flat rate to help you finance the package manager CDN.