Labsco
tinybirdco logo

tinybird-typescript-sdk-guidelines

19

by tinybirdco · part of tinybirdco/tinybird-agent-skills

Tinybird TypeScript SDK for defining datasources, pipes, and queries with full type inference. Use when working with @tinybirdco/sdk, TypeScript Tinybird…

🔥🔥🔥✓ VerifiedFreeQuick setup
🧩 One of 5 skills in the tinybirdco/tinybird-agent-skills package — works on its own, and pairs well with its siblings.

This is the playbook your agent receives when the skill activates — you don't need to read it to use the skill, but it's here to audit before installing.

by tinybirdco

Tinybird TypeScript SDK for defining datasources, pipes, and queries with full type inference. Use when working with @tinybirdco/sdk, TypeScript Tinybird… npx skills add https://github.com/tinybirdco/tinybird-agent-skills --skill tinybird-typescript-sdk-guidelines Download ZIPGitHub19

Tinybird TypeScript SDK Guidelines

Guidance for using the @tinybirdco/sdk package to define Tinybird resources in TypeScript with complete type inference.

When to Apply

  • Installing or configuring @tinybirdco/sdk

  • Defining datasources or pipes in TypeScript

  • Creating typed Tinybird clients

  • Using type-safe ingestion or queries

  • Running tinybird dev/build/deploy commands for TypeScript projects

  • Migrating from legacy .datasource/.pipe files to TypeScript

  • Defining connections (Kafka, S3, GCS)

  • Creating materialized views, copy pipes, or sink pipes

Rule Files

  • rules/getting-started.md

  • rules/configuration.md

  • rules/defining-datasources.md

  • rules/defining-endpoints.md

  • rules/typed-client.md

  • rules/low-level-api.md

  • rules/cli-commands.md

  • rules/connections.md

  • rules/materialized-views.md

  • rules/copy-sink-pipes.md

  • rules/tokens.md

Quick Reference

  • Install: npm install @tinybirdco/sdk

  • Initialize: npx tinybird init

  • Dev mode: tinybird dev (uses configured devMode, typically branch)

  • Build: tinybird build (builds against configured dev target)

  • Deploy: tinybird deploy (deploys to main/production)

  • Preview in CI: tinybird preview

  • Server-side only; never expose tokens in browsers