There absolutely is an easy solution to these problems, and Linux has been doing it forever: package maintainers. Don't treat your repository like a superfund site, and it won't fill up with garbage.
That solution is not easy, and as stated it takes work. And there is a serious problem of funding people to do that work.
And it has not yet been demonstrated at PyPI/NPM scale, either.
That solution is not easy, and as stated it takes work. And there is a serious problem of funding people to do that work.
And it has not yet been demonstrated at PyPI/NPM scale, either.