The Library

The Library was a planet-sized library that was built during the 50th century. It contained every book ever written. Within its core was the largest hard drive ever, which served as an index computer, as well as containing backup copies of every book ever written. The planet had one moon, which was actually an antiviral subroutine having the physical appearance of a moon. Due to its caretaking role, it was known as a Doctor Moon.

Creation
The Library was commissioned by Felman Lux and was managed by a head Librarian. Visitors to the Library used courtesy nodes, sculpted computer terminals containing real faces made from donated flesh; the nodes would chose a face they thought a patron would like. The security were levitating wooden spheres. Visitors were advised to switch off their mobile comm units.

Paper editions of every book ever written were made specially for the Library. (TV: Silence in the Library) The forests cut down to make the books were home to Vashta Nerada, which then hatched from the books and infested the Library. The computer managed to "save" all 4022 visitors to its hard drive, where they could dream an imperfect virtual existence. (TV: Forest of the Dead)

Arrival of the Doctor and River Song
The computer sealed off the planet, and it would be 100 years before the Lux family could arrange an archaeological expedition led by Professor River Song.

As the library contains a copy each book ever written, River Song's diary is not her only tome containing spoilers for the Doctor to avoid there. Also in the stacks would be her novel/memoir, Melody Malone: Private Detective in Old New York Town, which chronicles an adventure with her parents in his future and her past. (TV: The Angels Take Manhattan)

The Tenth Doctor and Donna Noble arrived after being asked to come by River Song, via his psychic paper. (TV: Silence in the Library) The Doctor helped to return the visitors and agreed with the Vashta Nerada to make sure no one arrived in the Library again. (TV: Forest of the Dead)

After entering the Doctor's time stream, a copy of Clara Oswald ended up in The Library, watching the Tenth Doctor. (TV: The Name of the Doctor)

Later visit by the Doctor
The Eleventh Doctor and Amy Pond later visited the Library, where they encountered the Book Monsters. (COMIC: Booked Up)