xAPI.js is a collection of strongly typed JavaScript libraries for enabling learning content and learning systems to speak to each other over the xAPI protocol. They are fully compliant to the official specifications provided by the ADL initative.
Wrapper Library
For communicating with an LRS directly using xAPI, use the xAPI Wrapper Library.