We should be making developers do this as a matter of course. Screw every 3rd house is profit, a development should come with a plan for local amenities like schools, shops, healthcare, community halls, green spaces and infrastructure upgrades for water waste power and internet.
I often feel part of the reason we get so much NIMBYism is because people know a giant new development will be built without any new amenities and all and suddenly all the local services they rely on will b come massively overstretched.