(Issue 696) WIP; library api.index.js