Ink and Bone by Rachel Caine

The Great Library of Alexandria was never destroyed and is an almighty presence controlling learning and knowledge around the world. Jesse’s family is part of the illegal book trade — illegal because owning an original book is a capital crime, punishable by death. And he is about to enter the Library’s service and will have to split his loyalties.