Installation

Setup

Install the SDK from npm using your preferred package manager:

npm install @tiun/sdk

Configuration

After installing, import the SDK and call init() once at app startup:

import { tiun } from '@tiun/sdk';

tiun.init({
  snippetId: 'YOUR_SNIPPET_ID',
  language: 'en', // set to your site's language
});

You'll need your Snippet ID from the tiun dashboard. That's the only required option — see Initialization for the full list of configuration options.

Last updated

Was this helpful?