Installation
This page covers the web SDK, @tiun/sdk — for websites and web apps.
Setup
Install the SDK from npm using your preferred package manager:
npm install @tiun/sdkpnpm add @tiun/sdkyarn add @tiun/sdkConfiguration
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', // 'en' | 'de' | 'fr'
});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.
Use without a bundler
If you don't have a build step, load the SDK as an ES module from unpkg:
See the Vanilla JS examples for the full set of patterns.
Last updated
Was this helpful?

