
Security News
NIST Officially Stops Enriching Most CVEs as Vulnerability Volume Skyrockets
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.
vantageaiops
Advanced tools
LLM cost tracking and AI API monitoring SDK for TypeScript and JavaScript — track OpenAI, Anthropic, Google and Mistral spending
LLM cost tracking and AI API monitoring SDK for TypeScript and JavaScript.
Track token usage, cost, latency and quality for OpenAI, Anthropic, Google and Mistral — with one line of code.
npm install vantageaiops
# peer deps — install whichever providers you use
npm install openai # for OpenAI proxy
npm install @anthropic-ai/sdk # for Anthropic proxy
import { init, createOpenAIProxy } from "vantageaiops";
import OpenAI from "openai";
// 1. Init once (e.g. in app startup)
init({ apiKey: "vnt_your_key" });
// 2. Wrap your OpenAI client — zero other changes needed
const openai = createOpenAIProxy(new OpenAI());
// 3. Use normally — every call is automatically tracked
const res = await openai.chat.completions.create({
model: "gpt-4o",
messages: [{ role: "user", content: "Hello!" }],
});
import { init, createAnthropicProxy } from "vantageaiops";
import Anthropic from "@anthropic-ai/sdk";
init({ apiKey: "vnt_your_key" });
const client = createAnthropicProxy(new Anthropic());
const res = await client.messages.create({
model: "claude-3-5-sonnet-20241022",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello!" }],
});
import { getClient } from "vantageaiops";
getClient().capture({
eventId: crypto.randomUUID(),
provider: "openai",
model: "gpt-4o",
promptTokens: 500,
completionTokens: 120,
totalCostUsd: 0.0035,
latencyMs: 842,
team: "search",
environment: "production",
});
import { init, trace } from "vantageaiops";
import OpenAI from "openai";
init({ apiKey: "vnt_your_key" });
const traceId = crypto.randomUUID();
// Wrap each LLM call with trace() to group them
const step1 = await trace(
() => openai.chat.completions.create({ model: "gpt-4o", messages: [...] }),
{ traceId, spanDepth: 0, team: "agent" }
);
const step2 = await trace(
() => openai.chat.completions.create({ model: "gpt-4o-mini", messages: [...] }),
{ traceId, spanDepth: 1, team: "agent" }
);
Traces appear in the Agent Traces tab of your dashboard with per-span cost breakdown.
import { calculateCost, findCheapest } from "vantageaiops";
const cost = calculateCost("gpt-4o", 10_000, 2_000);
console.log(`Cost: $${cost.totalCostUsd.toFixed(4)}`);
const alt = findCheapest("gpt-4o", 10_000, 2_000);
console.log(`Save ${((cost.totalCostUsd - alt.costUsd) / cost.totalCostUsd * 100).toFixed(0)}% with ${alt.model}`);
import { init } from "vantageaiops";
init({
apiKey: "vnt_your_key",
org: "acme", // auto-parsed from key if omitted
team: "platform", // default team tag
environment: "production", // default: "production"
ingestUrl: "https://api.vantageaiops.com", // default
flushInterval: 2, // seconds between auto-flush
batchSize: 50, // events per HTTP request
debug: false,
});
FAQs
LLM cost tracking and AI API monitoring SDK for TypeScript and JavaScript — track OpenAI, Anthropic, Google and Mistral spending
The npm package vantageaiops receives a total of 126 weekly downloads. As such, vantageaiops popularity was classified as not popular.
We found that vantageaiops 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.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.