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

Overview

tiun ships two SDKs. They do the same job — payments, subscriptions, and access control — but they are separate packages with separate APIs. Pick the one that matches what you're building.

Web SDK

React Native SDK

Package

@tiun/sdk

@tiun/react-native-sdk

For

Any website or web app — React, Vue, Next.js, Nuxt, plain HTML/JS

React Native apps on iOS and Android

API

A global tiun object you call init() on

A <TiunProvider> and hooks

Covers

Authentication, checkout, time-based billing

Authentication and checkout

Start here

Web SDK / Installation


What the SDK does

Whichever one you use, it's there to:

  • Accept payments — Open a checkout flow and let users purchase products or subscriptions.

  • Control access — Gate content behind a paywall based on what the user has bought.

  • Manage user sessions — Let users log in, log out, and stay signed in across visits.

Everything runs on the client. There's no server-side code required to get started, and no payment UI for you to build — checkout, login, and paywall overlays are all provided.


Building a native app that isn't React Native?

If your app is a native shell (Swift, Kotlin) hosting your own web app in a WebView, the web SDK runs inside that WebView unchanged — see Native apps with a WebView. First-class Swift, Kotlin, and Flutter SDKs are on the roadmap.

Last updated

Was this helpful?