
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@convai/analytics
Advanced tools
TypeScript SDK for the Convai analytics API. Designed for Claude Code, Codex, Cursor, and Node-side scripts.
TypeScript SDK for the Convai analytics API.
Install:
npm install @convai/analytics
If you are using an AI agent or MCP-capable client, the recommended starting point is @convai/analytics-mcp. It wraps this SDK as typed MCP tools and is listed in the Official MCP Registry as io.github.Conv-AI/convai-analytics-mcp.
import { ConvaiAnalytics } from "@convai/analytics";
const client = new ConvaiAnalytics({ apiKey: process.env.CONVAI_API_KEY! });
const summary = await client.summary({ range: "last_24h" });
const trace = await client.interactions.get("int_8a31...");
CONVAI_API_KEY is a bearer credential. Keep it server-side or in private agent workspaces; do not ship it in browser bundles, mobile apps, public repos, notebooks, screenshots, or logs.
See the repo root for full docs, MCP setup, recipes, and examples.
Direct REST mappings:
client.summary(params) → GET /v1/analytics/summaryclient.timeseries(params) → GET /v1/analytics/timeseriesclient.breakdown(params) → GET /v1/analytics/breakdownclient.sessions.list(params) → GET /v1/analytics/sessionsclient.sessions.get(id) → GET /v1/analytics/sessions/{id}client.interactions.get(id) → GET /v1/analytics/interactions/{id}client.catalog() → GET /v1/analytics/metrics/catalogclient.regressionDetection(params) → GET /v1/analytics/regression-detection (business+)client.query(cubeQuery) → POST /v1/analytics/query (business+)Convenience facades (delegate to the above with sensible defaults — agent-friendly):
client.latency.byComponent(...) — p50/p95/p99 by processorclient.providers.compare(...) — provider/model latency comparisonclient.errors.summary(...) — error counts by component/providerclient.usage.summary(...) — sessions, audio minutes, end usersThese convenience methods are pure delegation and match the curated tools exposed by @convai/analytics-mcp.
FAQs
TypeScript SDK for the Convai analytics API. Designed for Claude Code, Codex, Cursor, and Node-side scripts.
We found that @convai/analytics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.