This idea is very similar to any number of housing compounds in large cities in China. The one I currently live in has about 1200 residents and is considered a small compound, made up of low-rises, stacked townhouses, and regular townhouses. There's one main lane down the middle of the compound, and most residents don't own cars. We use bikes, e-bikes, scooters, and walk to the compound gate to catch a taxi if we need to travel further. It's a 10-minute walk from the subway station, and there's a bus stop in front of the compound gate. It's a very convenient and relatively lower cost lifestyle. We have thoroughly enjoyed not owning a car for the past 10 years.
My friend lives in a large compound with over 10,000 residents. They have their own coffee shop, supermarket, indoor playground, several outdoor playgrounds, three swimming pools, tennis courts, indoor gym, etc. The school is right outside the compound gate. While cars can enter, they can only drive on the "ring road" that goes around the outside edge of the compound. Parking is mostly underground and eye-watering expensive. Even residents have to pay per day for parking. It really discourages you from owning a car.