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.
import { getMetricsClient } from \"@acme/analytics/server\";
export async function getInsights(dashboardId: string) {
const client = await getMetricsClient();
const { series, window } = await client.query({
dashboardId,
range: \"last_24_hours\",
});
if (!series || series.length === 0) {
throw new Error(\"No data available for this dashboard\");
}
return { points: series, window };
}