# xAPI.js

**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](https://www.adlnet.gov).

## Wrapper Library

For communicating with an LRS directly using xAPI, use the xAPI Wrapper Library.

{% content-ref url="xapi-wrapper-library" %}
[xapi-wrapper-library](https://www.xapijs.dev/xapi-wrapper-library)
{% endcontent-ref %}

## Profile Libraries

If you wish to use a standardised profile to communicate with an LRS, use one of the profile libraries.

{% content-ref url="cmi5-profile-library" %}
[cmi5-profile-library](https://www.xapijs.dev/cmi5-profile-library)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.xapijs.dev/undefined.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
