The Archived, by Victoria Schwab

ArchivedSummary:  When an otherworldly library called the Archive is compromised from within, sixteen-year-old Mackenzie Bishop must prevent violent, ghost-like Histories from escaping into our world.

Hyperion

Find it at WCPL