This package is experimental. APIs may change between versions.
What is the Tinybird TypeScript SDK?
The SDK provides a code-first approach to building data pipelines with Tinybird. Instead of writing.datasource and .pipe files, you define your resources as TypeScript objects with full type safety.
Key Benefits
Full Type Safety
Get end-to-end type inference from schema definition to query results. TypeScript validates your queries at compile time.
Developer Experience
Enjoy autocomplete, inline documentation, and refactoring support in your IDE. Catch errors before deployment.
Version Control
Define your data infrastructure as code. Track changes, review diffs, and collaborate using familiar Git workflows.
Incremental Migration
Mix TypeScript definitions with existing
.datasource and .pipe files. Migrate at your own pace.How It Works
The SDK workflow follows these steps:Define Resources in TypeScript
Create datasources with typed schemas, define query endpoints with parameters and output types, and configure connections.
Generate Typed Client
The SDK generates a fully-typed client that provides autocomplete for all your endpoints and datasources.
Sync to Tinybird
Use
tinybird dev to automatically sync changes to Tinybird as you develop, or tinybird deploy for production.Example
Here’s a quick example of what code looks like with the SDK:What’s Next?
Installation
Install the SDK and set up your development environment
Quickstart
Build your first typed data pipeline in minutes