Skip to main content

SDKs

Official client packages. Each one is a thin, typed layer over the same API described in the reference.

@throughlinehq/server

TypeScript and JavaScript · Your backend, on Node.js 20 or later

The whole server API: Contacts, Events, export and erasure, with the token exchange, retries and deduplication handled for you. Also computes the IdentityHash the browser package needs.

npm install @throughlinehq/server
Read the package guide on npm

@throughlinehq/browser

TypeScript and JavaScript · Your frontend, in the signed-in user's browser

Records Events for the signed-in Contact from your web app, using a publishable key and an IdentityHash your backend computed. Sets no cookie and stores nothing.

Includes adapters for React, Vue, Angular.

npm install @throughlinehq/browser
Read the package guide on npm