Authoring

Algebrakit offers web components that allow authors to create and edit Algebrakit exercises. You can integrate these web components into your authoring environment.

Algebrakit offers authoring components to edit an exercise, an element in an exercise or an interaction.

An interaction represents a single question type or manipulative. An element represents an exercise question part (such as question a, b, c) or an instruction block. See also integration approaches.

Proxy setup

The authoring web components must be able to access the Algebrakit web service to test and run exercises. They communicate through a proxy on your backend for security reasons. This proxy relays incoming traffic to the Algebrakit API (for example, https://api.algebrakit.com) and adds the X-API-KEY header with your security token. The example code clarifies how you set up such a proxy.

<script>
  AlgebraKIT = {
    config: {
      // Proxy configuration for API calls by question types
      proxy: {
        url: 'proxy/algebrakit'
      },
      // Proxy configuration for API calls by authoring editors
      secureProxy: {
        url: 'proxy/algebrakit-secure'
      },
      styles: {
        ...
      },
      behavior: {
        ...
      }
    }
  };
</script>
<!--Load frontend API -->
<script src="https://widgets.algebrakit.com/akit-widgets.min.js"></script>