Install the SDK

There are two ways to install the TentuPlay SDK for JavaScript depending on whether the code executes in libraries (for example, React) or browser scripts.

  • Install using npm

  • Embed in browser

  1. Go to your project directory.

  2. Type this at the command line.

    npm install @tentuplay/js-client-sdk
  3. Load the SDK in your application code.

    import { TentuPlay } from '@tentuplay/js-client-sdk';
  1. Download the JavaScript SDK file and save it in one of your lib folders.

  2. Insert the script path into your web page.

    <script src="YOUR_SDK_FILE_PATH"></script>
Do you need help?

Contact us at TentuPlay Discord if you have any questions or feedback on the documentation.