Requirements
Before installing Thred SDK, ensure your environment meets these requirements:Node.js
- Node.js 16.0.0 or higher is required
- For Node.js versions below 18, you’ll need a fetch polyfill (see below)
Browser Support
Thred SDK uses modern JavaScript features and requires:- Chrome 80+
- Firefox 75+
- Safari 13.1+
- Edge 80+
- ES2020+
- Fetch API
- ReadableStream
- TextDecoder
- AbortController
Install the Package
Install the Thred SDK using your preferred package manager:Get Your API Key
To use Thred SDK, you’ll need an API key:- Visit https://thred.ai and create an account
- Navigate to your dashboard
- Generate a new API key
- Copy your API key (it should start with
sk_)
Environment Setup
Using Environment Variables (Recommended)
Store your API key in an environment variable for security:Node.js < 18 Setup
If you’re using Node.js version 17 or below, you’ll need to install and configure a fetch polyfill:Verify Installation
Create a simple test file to verify your installation:test.ts
TypeScript Configuration
Thred SDK is written in TypeScript and includes full type definitions. No additional setup is required, but ensure yourtsconfig.json includes:
tsconfig.json
Next Steps
Now that you have Thred SDK installed, let’s generate your first AI response!Quickstart Guide
Generate your first AI-powered response with brand enrichment in under 5 minutes
