Install the SDK
Install the SDK using your preferred package manager:System Requirements
Node.js Version
The SDK requires Node.js 20 LTS or later. Check your Node.js version:TypeScript Version
For TypeScript projects, TypeScript 4.9 or later is required:The SDK is designed for TypeScript projects and provides the best experience with full type inference when using TypeScript.
Supported Runtimes
Officially Supported
The SDK is officially tested and supported on:- Node.js 20 LTS or later non-EOL versions
Community Support
The following runtimes are not officially tested but may work:- Deno >= 1.28.0
- Bun >= 1.0.0
- Cloudflare Workers
- Vercel Edge Runtime
- Jest >= 28 (including
"node"environment) - Nitro >= 2.6.0
Verify Installation
Verify the SDK is installed correctly:Initialize Your Project
Once installed, you’re ready to initialize your Tinybird project:Generate Project Files
Creates starter files:
src/tinybird/datasources.ts- Define your datasourcessrc/tinybird/pipes.ts- Define your pipes/endpointssrc/tinybird/client.ts- Your typed Tinybird client
If you have existing
.datasource and .pipe files, the CLI will detect them and ask if you want to include them in your configuration for incremental migration.Configuration Options
Theinit command accepts optional flags:
Project Structure
After initialization, your project will have this structure:Environment Variables
Your Tinybird token is stored in.env.local:
.env.local
Next Steps
Now that you have the SDK installed and your project initialized, you’re ready to build your first data pipeline!Quickstart Guide
Follow the quickstart to create your first datasource and endpoint