http://ecpmlangues.u-strasbg.fr/civilization/geography/maps/...
And San Francisco is the 3rd most densely populated city in America, if you look at cities with over 100k people:
https://en.wikipedia.org/wiki/List_of_United_States_cities_b...
So I disagree with the narrative that Bay Area NIMBY-ism is out of control. It's probably similar to anywhere else in America.
There are two unique factors at play here:
(1) Massive growth of high paying jobs in the tech sector, with typical wages for an engineer ranging from $100-200k. This has caused housing to double/triple in cost over the last ten years.
(2) The Bay Area has very unfortunate geography: there is a giant bay in its geographic center, and mountains/oceans all around. This makes traffic and commuting more difficult, and also makes development "outwards" harder.