TypeScript SDK

Build Fasterwith the Anythink SDK

Our open source TypeScript SDK gives you fully typed, auto-generated client code for every entity in your project. Stop writing API glue — start shipping features.

Open SourceFully TypedAuto-GeneratedZero Config

Everything typed, nothing to hand-write

The SDK reflects your live schema. Add a field in the designer, your types update instantly.

Type-Safe API Client

Fully generated TypeScript types derived from your entity schemas. Get autocomplete, compile-time checks, and zero runtime surprises — all from the same CMS model you already defined.

In Practice

Real code, zero boilerplate

setup.ts
import { AnythinkClient } from '@anythink/sdk'

const client = new AnythinkClient({
  apiKey: process.env.ANYTHINK_API_KEY,
  orgId: 'your-org-id'
})

// Define your entity shape once, reuse everywhere
type Product = {
  id: number
  name: string
  price: number
  status: 'active' | 'draft'
}

What you can build

01

SaaS product with per-user data

Model your tenants, users, and records in Anythink. The SDK handles auth tokens, RLS enforces data isolation, and you ship a multi-tenant product without writing a single line of access-control logic.

02

Internal tools your team will actually use

Wire the SDK into a React or Next.js admin panel. Typed queries mean your UI stays in sync with your schema. Add a field in Anythink — your TypeScript types update with one command.

03

Automate workflows from your codebase

Trigger Anythink workflows directly from the SDK — send a welcome email when a user signs up, kick off a fulfilment job when an order is created, or chain multi-step automations without any extra infrastructure.