npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vantageai

v0.4.1

Published

Vantage TypeScript SDK — vendor-neutral AI agent audit platform

Readme

vantageai

TypeScript SDK for Vantage governance, execution-boundary enforcement, and brokered model execution.

Install

pnpm add vantageai

Core Client

import { VantageClient } from 'vantageai';

const vantage = new VantageClient({
  apiKey: 'vt-...',
  agentId: 'mortgage-underwriter',
  baseUrl: 'https://api.vantage.ai',
});

Observed Telemetry

await vantage.logEvent({
  type: 'llm_call',
  vendor: 'openai',
  input: { model: 'gpt-4.1-mini' },
  output: { content: 'approved' },
  metadata: { guaranteeTier: 'observed' },
});

Evaluate, Authorize, Commit

const decision = await vantage.evaluate({
  actionType: 'approve_large_loan',
  actionPayload: { amount: 850000, applicantId: 'app-123' },
});

const authorization = await vantage.authorize({
  actionType: 'openai.chat.completions.create',
  actionPayload: {
    model: 'gpt-4.1-mini',
    messages: [{ role: 'user', content: 'Summarize the file' }],
  },
  executionTraceId: 'trace-123',
  ttlSeconds: 120,
});

if (authorization.decision === 'allow' && authorization.authorization) {
  await vantage.commitAuthorization(authorization.authorization.id, {
    actionPayload: {
      model: 'gpt-4.1-mini',
      messages: [{ role: 'user', content: 'Summarize the file' }],
    },
    executionTraceId: 'trace-123',
  });
}

Brokered Provider Execution

const result = await vantage.brokerOpenAIChatCompletion({
  executionTraceId: 'trace-123',
  ttlSeconds: 180,
  request: {
    model: 'gpt-4.1-mini',
    messages: [{ role: 'user', content: 'Review this mortgage application' }],
    stream: false,
  },
});

if (result.decision === 'allow') {
  console.log(result.authorizationId, result.commitAttemptId, result.completion);
}

Broker helpers are also available for client-style integrations:

import { createBrokeredOpenAIClient } from 'vantageai';

const openai = createBrokeredOpenAIClient(vantage, {
  executionTraceId: 'trace-123',
  ttlSeconds: 180,
});

await openai.chat.completions.create({
  model: 'gpt-4.1-mini',
  messages: [{ role: 'user', content: 'Review this mortgage application' }],
});

Operator Visibility

const boundary = await vantage.getExecutionBoundarySettings();
const authorizations = await vantage.listExecutionAuthorizations({ limit: 20 });
const attempts = await vantage.listExecutionCommitAttempts({ limit: 20 });
const performance = await vantage.getPerformanceSnapshot();

Existing Integrations

  • wrapOpenAI
  • wrapAnthropicClient
  • wrapGroqClient
  • wrapOpenRouterClient
  • wrapGeminiClient
  • VantageCallbackHandler for LangChain

Observed wrappers keep post-execution logging behavior. Brokered helpers are the authoritative path when you want Vantage to mediate the side effect.