For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation

Setup

Install the SDK from npm using your preferred package manager:

npm install @tiun/sdk
pnpm add @tiun/sdk
yarn add @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', // '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:

<script type="module">
  import { tiun } from 'https://unpkg.com/@tiun/sdk/tiun.js';

  tiun.init({
    snippetId: 'YOUR_SNIPPET_ID',
    language: 'en', // 'en' | 'de' | 'fr'
  });
</script>

See the Vanilla JS examples for the full set of patterns.

Last updated

Was this helpful?