Magpie library