First version of npm lib, not working yet