Built for fast-moving teams
Pipe product events straight into dashboards your team actually reads. Pick the integration style that fits each surface— backend jobs, edge workers, or drop-in React visualizations.
1import { getMetricsClient } from "@acme/analytics/server";2 3export async function getInsights(dashboardId: string) {4 const client = await getMetricsClient();5 const { series, window } = await client.query({6 dashboardId,7 range: "last_24_hours",8 });9 10 if (!series || series.length === 0) {11 throw new Error("No data available for this dashboard");12 }13 14 return {15 points: series,16 window,17 };18}