The public API for the Magic plugin