Code libraries are reusable JavaScript wrappers for developers to reuse when building content that meets the Navy's xAPI Profiles. Each of the xAPI code libraries below are intended to be used when building custom content.

Download the code libraries below to get started.

E-learning Profile JavaScript Library

This xAPI code library provides developers with existing JavaScript functions that meets the E-learning Profile requirements for xAPI Statements.

RRL Performance Support Template

The RRL Performance Support Template provides developers with reusable code that meets the Performance Support Profile version 1.4 requirements for xAPI Statements.

Simulation Code Library

This xAPI code library provides developers with an existing code library that meets the Navy Simbulation Base Profile requirements for xAPI Statements.

Task Trainer Simulation Code Library

This xAPI code library provides developers with an existing code library that meets the Navy Task Trainer Simbulation Profile requirements for xAPI Statements.


Content examples are fully functional demonstrations of content that meets Navy's xAPI requirements. Each of the examples below were created with the xAPI Code Libraries are intended to be downloaded and evaluated by content developers.

Download the examples below to get started.

E-learning and Assessment Example

This xAPI content example demonstrates how an e-learning course implements xAPI to track lesson attempts, assessment interactions, and results.

Performance Support Example

The Performance Support Content Example provides developers with a reusable content example that meets the Performance Support Profile version 1.2 requirements and uses the Performance Support Code Library below.

RRL Performance Support Example

The RRL Performance Support Reference Implementation provides developers with an example that meets the Performance Support Profile version 1.4 requirements for xAPI Statements.

Video Example

This xAPI content example demonstrates how a HTML5 video implements xAPI to track video interactions.

Simulation Example

This xAPI content example demonstrates how a Unity-based simulation implements the Navy Task the base Simulation Profile requirements for xAPI Statements.

Task Trainer Simulation Example

This xAPI content example demonstrates how a Unity-based simulation implements the Navy Task Trainer Simulation Profile requirements for xAPI Statements.