add api to repo, fix package.json