API library supporing the majord daemon