Installation

Install the Tether CLI and SDK packages for your project.

CLI Installation

Install the Tether CLI globally:

# npm
npm install -g tthr

# pnpm
pnpm add -g tthr

# yarn
yarn global add tthr

SDK Packages

Install the SDK for your framework:

Package Framework Install
@tthr/vue Vue 3 / Nuxt npm install @tthr/vue
@tthr/react React npm install @tthr/react
@tthr/svelte Svelte / SvelteKit npm install @tthr/svelte
@tthr/client Vanilla JavaScript npm install @tthr/client

Server-side Usage

For server-side applications (API routes, webhooks, background jobs), use the server SDK:

npm install @tthr/server
import { createClient } from '@tthr/server';

const tether = createClient({
  url: 'https://tether-api.strands.gg',
  projectId: 'your-project-id',
  apiKey: process.env.TETHER_API_KEY,
});

const posts = await tether.query('posts.list');

Requirements

  • Node.js 18 or later
  • A Tether account (sign up at tether.strands.gg)