The social spaces would be a great idea, but not in the main library. With the amount of space they have, they could have had an entire community centre. Make it a proper third space.
Have the library in one part, partitioned from the conversation area in another, and by all means stock books there that people might read socially, but why not also have something like a board games library, where you can pick a game to play with friends, then return it before leaving? Have a maker space/repair cafe off of it too, if you can find the staff or volunteers. A vending machine or small cafe serving drinks and light food would mean people really could stay all day if they wanted to. As I mentioned before, some meeting rooms that clubs, societies, or even an aspiring DM could book would allow for even more activities. Add in a citizen's advice office that's got useful opening hours, and maybe the local food bank or other charities so people know where to access them or help out, and you've built what could be the heart of the local community.
I doubt you'd be able to get all of that in most places, but it seems like a good aspiration.