Anarchists have extensively thought about this problem, and I'm sure they have quite a few ideas. I'm not really familiar with them, but I know their are online libraries dedicated to communist writers/thinkers (obviously not what you're after), and I'm 95% sure there's an anarchist version, too. No idea the URL, but I'm sure it'd be easy to find through Google.
Discussion
Are you talking about the anarchist library? yes I'm well aware of it 😊