Skip to main content
Version: v5

Getting Started

What you'll do in this guide

In this guide, you'll:

  1. confirm that your project meets the SDK requirements
  2. retrieve your AudioEye entitlement token
  3. configure npm, yarn, or pnpm to install AudioEye packages
  4. install your first SDK package
  5. verify that the installation works locally
  6. configure CI/CD so your builds can install the SDK securely

If you want the fastest path to a first successful run, start with the CLI. It is the quickest way to confirm that your token, package-manager configuration, and local environment are all working.

What success looks like

By the end of onboarding, you should be able to:

  • install an AudioEye SDK package from your project's root
  • run one successful accessibility scan locally
  • add the entitlement token to CI/CD so installs work outside your machine
  • continue into the package guide that matches your existing test workflow

Available packages

AudioEye's Accessibility Testing SDK is available as npm packages:

  • CLI - @audioeye/testing-sdk-cli for scanning a URL, page, or HTML document
  • Jest - @audioeye/testing-sdk-jest for component-level testing in unit and integration tests
  • Playwright - @audioeye/testing-sdk-playwright for browser-based end-to-end and workflow testing
  • Cypress - @audioeye/testing-sdk-cypress for browser-based end-to-end and workflow testing in Cypress
  • Core - @audioeye/testing-sdk-core for custom integrations when you need lower-level control

Choose the right starting point

If you're new to the SDK, start with the package that best matches how your team already tests the application:

  • Use the CLI if you want the fastest way to scan a page or local HTML file.
  • Use Jest if you want to catch accessibility issues while testing components.
  • Use Playwright or Cypress if you need to test full user flows such as login, checkout, routing, or authenticated pages.
  • Use Core only if you are building your own wrapper or integrating the rules into a custom test harness.

Requirements

The AudioEye Accessibility Testing SDK supports Node.js 20, 22, and 24.

You will also need:

  • an AudioEye entitlement token
  • a JavaScript or TypeScript project that uses npm, yarn, or pnpm
  • access to your project's package root, where package.json lives

Before you install anything

AudioEye distributes SDK packages through Cloudsmith. Before you can install any SDK package, you must retrieve your AudioEye entitlement token and configure your package manager to use it.

This token is available in the AudioEye Customer Portal.

Step 1: Get your entitlement token

  1. Log in to the AudioEye Customer Portal.
  2. Open the account menu and select My Account. Screenshot of a portion of the AudioEye Customer Portal. The dropdown list attached to the customer name is open and "My Account" is highlighted.
  3. Scroll to the Testing SDK Entitlement Token section.
  4. If a token has not been created yet, click Generate Entitlement Token. Screenshot of a portion of the My Account page on the AudioEye Customer Portal. The screenshot shows the Testing SDK Entitlement Token card and the Generate Entitlement Token button inside the card is highlighted.
  5. Click Copy Entitlement Token to copy the token. Screenshot of a portion of the My Account page on the AudioEye Customer Portal. The screenshot shows the Testing SDK Entitlement Token card after successfully creating an entitlement token. A successful notification is shown, information about the token is listed, and two buttons are present. The first button has the label "Copy Entitlement Token" and the second is labeled "Refresh Entitlement Token".

In the rest of this guide, this token is referenced as AUDIOEYE_ENTITLEMENT_TOKEN.

Refresh your entitlement token

If you need to rotate your token, follow these steps:

  1. Log in to the AudioEye Customer Portal.
  2. Open the account menu and select My Account. Screenshot of a portion of the AudioEye Customer Portal. The dropdown list attached to the customer name is open and "My Account" is highlighted.
  3. Scroll to the Testing SDK Entitlement Token section.
  4. Click Refresh Entitlement Token.
  5. Click Copy Entitlement Token to copy the new token. Screenshot of a portion of the My Account page on the AudioEye Customer Portal. The screenshot shows the Testing SDK Entitlement Token card after successfully creating an entitlement token. A successful notification is shown, information about the token is listed, and two buttons are present. The first button has the label "Copy Entitlement Token" and the second is labeled "Refresh Entitlement Token".

After rotating the token, update every local environment and CI/CD secret that uses it. Then repeat the configuration steps in Step 2: Configure your package manager.

Step 2: Configure your package manager

Choose the package manager your project already uses, then add the configuration file at the root of the project. The root is the directory that contains package.json.

If the file already exists, add the @audioeye registry settings to the existing file instead of replacing the whole file.

Create or update .npmrc in your project root with:

.npmrc
@audioeye:registry=https://npm.cloudsmith.io/audioeye-K01/audioeye/
//npm.cloudsmith.io/audioeye-K01/audioeye/:_authToken=${AUDIOEYE_ENTITLEMENT_TOKEN}

Recommended: use the environment-variable reference shown above instead of hardcoding the token directly into .npmrc.

To set the environment variable:

  • Temporarily in your current shell session:
export AUDIOEYE_ENTITLEMENT_TOKEN=your-token-here
  • Persistently for local development: add the same export command to your shell profile, such as ~/.zshrc or ~/.bashrc.
  • In CI/CD: store the token as a secret and expose it as AUDIOEYE_ENTITLEMENT_TOKEN during dependency installation.

Never commit the token value to source control.

Verify your npm configuration

Install one of the SDK packages:

npm install -D @audioeye/testing-sdk-cli

If installation succeeds, your registry configuration is working.

If installation fails with an authentication or package-resolution error, confirm that:

  • AUDIOEYE_ENTITLEMENT_TOKEN is set in the same shell where you run npm install
  • .npmrc is in the same directory as package.json
  • the @audioeye registry lines were added exactly as shown above

Step 3: Install your first SDK package

Once your package manager is configured, install the SDK package that matches your workflow.

If you are evaluating the SDK for the first time, start with the CLI even if you plan to use Jest, Playwright, or Cypress later. It gives you the shortest path to a first successful run.

npm
npm install -D @audioeye/testing-sdk-cli
yarn
yarn add -D @audioeye/testing-sdk-cli
pnpm
pnpm add -D @audioeye/testing-sdk-cli

Recommended first step for new users.

Then continue with the CLI guide.

Step 4: Verify the installation

After installation, run a quick verification so you know onboarding is complete before moving into framework-specific setup.

Fastest verification path: use the CLI

If you installed the CLI, run:

npx aetest scan 'https://www.audioeye.com'

A successful first run typically confirms that:

  • the package installed correctly
  • your entitlement token is configured correctly
  • your local environment can execute the SDK successfully

If you installed a framework-specific package

If you started with Jest, Playwright, or Cypress instead of the CLI, continue to the corresponding guide and complete its first example:

CI/CD integration

The most important CI/CD requirement is that your entitlement token must be available as the AUDIOEYE_ENTITLEMENT_TOKEN environment variable during dependency installation.

CI/CD checklist

Before you add the SDK to your pipeline, make sure that:

  • your repository already contains the correct .npmrc or .yarnrc.yml configuration
  • your CI provider stores AUDIOEYE_ENTITLEMENT_TOKEN as a secret
  • the secret is exposed during npm install, npm ci, yarn install, or pnpm install
  • your workflow uses a supported Node.js version: 20, 22, or 24

GitHub Actions example

  1. Make sure your repository already contains the .npmrc or .yarnrc.yml configuration shown above.
  2. Create a repository secret in GitHub named AUDIOEYE_ENTITLEMENT_TOKEN.
  3. Expose that secret during dependency installation so the package manager can authenticate to Cloudsmith.
.github/workflows/audioeye-a11y-test.yml
name: Pull Request CI

on:
pull_request:

permissions:
contents: read

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: '24'

- name: Install dependencies
env:
AUDIOEYE_ENTITLEMENT_TOKEN: ${{ secrets.AUDIOEYE_ENTITLEMENT_TOKEN }}
run: npm ci

- name: Build
run: npm run build

- name: Test
run: npm test

Security guidance

Follow these practices when configuring the SDK in local and CI environments:

  • keep the entitlement token in environment variables or secret managers
  • do not hardcode the token in committed files
  • rotate the token if you believe it has been exposed
  • update all developer environments and CI secrets immediately after rotating the token
  • use a unique token for CI environments and for each user

Next steps

After completing this guide, continue to the package-specific documentation for the workflow you want to use:

If you run into installation or authentication issues, see Troubleshooting.