There is a unofficial sub-genre of fiction that centers on the library. Lev Grossman has a mysterious library in his trilogy "The Magicians." In this case, the kernel that became The Library of Ibados is Jorge Luis Borges' short story "The Library" found in his collection Labyrinths. He was a man of great imagination and a bleak outlook of life in Argentina. So, if you like libraries like Stephen King loves libraries, you may want to explore this kinda-sorta genre.