Found in 1 comment on Hacker News
rob74 · 2023-11-14 · Original thread
I read this book recently: - don't want to give away too much (that's why I'm not linking to the Wikipedia article), but it fits the genre you are proposing - except spanning the entire world, not just a town.

Fresh book recommendations delivered straight to your inbox every Thursday.