Walmart and Github are so different. Walmart doesn't let anyone come in and set up a booth to sell things, Github does. Thinking that Github should take responsibility for what's hosted on it is... well, radical, to say the least.
What you're suggesting is a radical departure from how free software has been distributed historically. That goes well beyond Github and NPM.