Skip to content

@xtandard/links/analytics/tinybird

Tinybird analytics sink (fetch only, no peer dependencies): Events API ingestion, SQL API queries, and the tinybirdDatasource() .datasource file helper.

import { … } from "@xtandard/links/analytics/tinybird";
Name Summary
createTinybirdAnalytics Create a Tinybird-backed AnalyticsSink.
tinybirdDatasource The .datasource file text for the events data source. Save it as datasources/links_events.datasource (or your chosen name) and deploy it.
Name Summary
TinybirdAnalyticsOptions Options for createTinybirdAnalytics.
TinybirdAnalyticsSink The Tinybird sink; deleteLink and events are always available.
TinybirdDatasourceOptions Options for tinybirdDatasource.