In the past two months, some 420,000 people have left New York City, propelled by the coronavirus to seek out lower-density living situations. Though it’s far too early to predict how the crisis might shift living patterns permanently, both residential and commercial real estate activity in the suburbs of some cities seems to be rising.

A survey conducted in April, as the virus was peaking in several U.S. cities, found that 39 percent of urban dwellers would consider moving “out of populated areas.”

While lower-density life allows for more social distancing, the design of many newer suburbs can create a little too much distance, isolating people into large lots and private vehicles. “Right now, the single-family subdivision is kind of a hell realm” says Tom Dolan, an architect who designs housing based on a model that some planners call the “missing middle.”

The missing middle refers to a range of housing that splits the difference between urban core and suburban sprawl, with the aim of giving neighbors space without sacrificing community.

It’s a centuries-old model that might be well suited to a new world in which home-based work, non-traditional families and six feet of personal space are the norm.

In the late 1800s, an Italian clan called the Salemis built themselves a family compound in Oakland, Calif. At the time, Oakland was a quiet but growing city with a small-town feel, blanketed with namesake oaks and criss-crossed by a network of streetcars called the Key System.

The Salemi’s small complex there, which Dolan describes as “Yankee buildings in a Mediterranean site plan,” consisted of four petite wood-framed homes surrounding a brick courtyard. The property was filled with fig trees and grapevines, from which the Salemi family is rumored to have made wine during Prohibition.

By 1983, however, cars had replaced communal dining in the central courtyard, and the remaining family members were ready to move on to more conventional American housing.

The property came to the attention of Dolan and three of his friends, who purchased it collectively.

Today, the compound is a bustling community once more, housing 12 people in cheerful white-clapboard houses bordered by a communal garden blooming with trumpet vines and climbing beans. While residents have expanded upon the original structures over the years, they’ve also densified the site with in-law units and studios for both living and working.

The smallest of the four main dwellings manages to fit a two-bed, two-bath home into the modest footprint of a two-car garage.

Since the San Francisco Bay Area began to shelter in place in mid-March, the residents of the old Salemi compound have found that the social contact and casual connections fostered by the shared outdoor space have been essential.

“It’s saved my mind,” says Adriana Taranta, a social worker and one of the founding members of the community, who has been working from home. Otherwise, she says, “I think I would have snapped.”

Research shows that post-war suburbs, designed to house nuclear families in relative isolation, diminish casual interactions like the ones that are keeping Taranta sane.

Americans who live in places that foster chance encounters with others — with walkable streets and close-in amenities — are twice as likely to talk with their neighbors as those who don’t.

Living at the Salemi compound for 17 years, Dolan realized that its Mediterranean-style site plan fostered the kind of vibrant neighborly interaction that staves off isolation. The layout of the average American block — with front entrances around the external perimeter and private, fenced-off yards in the center — was essentially reversed here, where residents typically enter their homes through the commonly held central courtyard.

While Dolan hasn’t designed these buildings specifically in relation to social distancing guidelines, he believes the courtyard community model will continue to work well for this need. Townhouses surrounding courtyards, which he has found to be especially desirable, can be built without common indoor elevators and corridors, minimizing the potential virus transmission vectors of surfaces and airspace shared by many families.

Thankfully, none of the residents of the Salemi compound have fallen prey to COVID-19. But many say they feel safer knowing their neighbors can keep an eye out for them. As Sally Baker, who suffers from chronic asthma says, “I always find flowers on my porch and containers of soup… and I don’t even know how people know [when] I’m sick.”

The communal courtyard has been ideal for distanced socializing outdoors, without necessitating stricter safety measures virologists are recommending for denser “co-living” buildings.

For Taranta, the social network around the courtyard has been a critical support in past personal crises. “Our son was extremely sick when he was little and it was a super-traumatic time for our family, and I think in a way, for everybody here … . It helped a lot to have other people around. To help with our other son, but also to know what we were going through.”

To Tom Dolan, this “missing middle” model of housing meets a range of challenges caused by the pandemic: community with distance; remote work that doesn’t isolate; even the “social bubble” construct that some epidemiologists have endorsed as a way to socialize amid a deadly virus.

Although the missing middle typically refers to mid-density dwellings, Dolan sees courtyard communities as providing another middle too often missing from both suburban and urban development: shared, central outdoor space.

“To me, this is the kind of building type that the world needs right now,” he says. “I’ve been feeling that for a while, but I think it becomes more true in the context of COVID.

“Being able to go in your front door and not come out for two days, but when you do decide to come out, you can interact — that’s what makes life complete.”

Lily Bernheimer is a writer for Reasons to Be Cheerful.

This story is part of the SoJo Exchange of COVID-19 stories from the Solutions Journalism Network, a nonprofit organization dedicated to rigorous reporting about responses to social problems.