Alternatively, I've also been to urban libraries where cafes were within walking distance of the library. Less than a block even, closer than a bus stop.
Better hours. Cleaner. Near other amenities.
Small town libraries are lovely. Urban libraries in places that don’t have an uncontrolled vagrancy epidemic are probably fine, too. In cities like Seattle and SF, exclusive, commercial spaces are significantly more inviting than public spaces.
(Nannies are particularly nasty when it comes to verbal abuse, I'm told. Sometimes they get barred for a while, usually they don't.)
Homelessness and mental illness are real, hard problems that have been rehashed to death here and elsewhere and I'm not even going to pretend to suggest that I have an answer. But I do know that the answer is not "Hope your MLS degree prepared you to deal with a guy literally taking s shit on the circulation desk while screaming at you for being a godless cunt dyke whore."
Guess what? An MLS degree does not train you to deal with that. Librarians are not professional mental health care providers or social workers. Dumping your city's homeless population on them because you are unable and unwilling to deal with the problem and saying "get over it" is irresponsible both to the librarians and the communities that they serve.
That's not a situation that we should be accepting of, just because the library should be for everyone. If can't be a public safe space if it isn't _safe_.