Skip to content

@xtandard/links/analytics/kv

The default analytics sink: time-bucket rollups in the links storage itself (zero extra infrastructure). createLinksCore uses it when no analytics is passed; import it to tune retention.

import { … } from "@xtandard/links/analytics/kv";
Name Summary
createKvAnalytics Create the KV rollup sink over a links storage.
Name Summary
UnsupportedQueryError Thrown for queries the KV rollups cannot answer (see module docs).
Name Summary
KvAnalytics The KV sink, with a retention sweep.
KvAnalyticsOptions Options for createKvAnalytics.
RollupBucket A stored rollup bucket.
Name Summary
Packed Compact metrics tuple: clicks, botClicks, leads, sales, saleAmount.