Quickstart

Get from zero to a live event stream in about two minutes. This guide uses the JavaScript SDK; the same concepts apply to every client.

1. Install

terminal
npm install @featuretrack/sdk

2. Initialize with your key

Grab a client key from Developer → API Keys. Keys are environment-scoped, so a Development key never writes to production data.

app.ts
import { FeatureTrack } from '@featuretrack/sdk'
export const ft = new FeatureTrack({ key: 'ft_dev_9f2c…' })

3. Track an event

An event is a name plus an optional bag of properties. Property types are inferred on first sight and enforced afterwards.

checkout.ts
ft.track('checkout_started', { plan: 'pro', seats: 12 })

That's it. Open Tracking → Live Events and you'll see it arrive within a second.