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

@vantinelai/js-sdk

v0.4.6

Published

Vantinel AI Observability SDK for Browser/JavaScript

Readme

@vantinel/js-sdk

Browser/JavaScript SDK for Vantinel — real-time AI agent observability & guardrails.

Installation

npm install @vantinel/js-sdk
# or
yarn add @vantinel/js-sdk
# or
pnpm add @vantinel/js-sdk

Quick Start

import { VantinelClient } from '@vantinel/js-sdk';

const vantinel = new VantinelClient({
  apiKey: 'your-api-key',
  agentId: 'my-agent',
});

// Wrap any tool call
const result = await vantinel.track('search_database', { query: 'hello' });

if (result.decision === 'block') {
  console.warn('Tool call blocked by Vantinel policy');
}

Configuration

| Option | Type | Default | Description | |---|---|---|---| | apiKey | string | — | Your Vantinel API key | | agentId | string | 'browser-agent' | Identifier for this agent | | collectorUrl | string | http://localhost:8000 | Vantinel Collector endpoint |

const vantinel = new VantinelClient({
  apiKey: 'vantinel_abc123',
  agentId: 'customer-support-bot',
  collectorUrl: 'https://collector.yourcompany.com',
});

Note: collectorUrl must use HTTPS for non-localhost URLs. The SDK will throw at construction time if this is violated.

API

vantinel.track(toolName, args)

Sends a telemetry event to the Vantinel Collector and returns an enforcement decision.

const result = await vantinel.track('send_email', { to: '[email protected]' });
// result.decision: 'allow' | 'block' | 'require_approval' | 'warn'

What is sent to the Collector:

  • Tool name
  • A hash of the arguments (never the raw values)
  • Session ID (auto-generated UUID per client instance)
  • Agent ID
  • Timestamp

No user data, query content, or tool results ever leave the client.

Exported Utilities

import { validateCollectorUrl, redactApiKey } from '@vantinel/js-sdk';

// Throws if URL is not HTTPS (unless localhost)
validateCollectorUrl('https://collector.example.com');

// Safe for logging — shows first/last 4 chars only
redactApiKey('vantinel_abc123xyz'); // → 'vant****exyz'

Framework Examples

Next.js / React

// lib/vantinel.ts
import { VantinelClient } from '@vantinel/js-sdk';

export const vantinel = new VantinelClient({
  apiKey: process.env.NEXT_PUBLIC_VANTINEL_API_KEY,
  agentId: 'nextjs-agent',
  collectorUrl: process.env.NEXT_PUBLIC_COLLECTOR_URL,
});
// components/AgentButton.tsx
import { vantinel } from '@/lib/vantinel';

async function runTool() {
  const result = await vantinel.track('fetch_data', { source: 'api' });
  if (result.decision !== 'block') {
    // proceed with tool
  }
}

Vanilla JS

<script type="module">
  import { VantinelClient } from 'https://esm.sh/@vantinel/js-sdk';

  const vantinel = new VantinelClient({ apiKey: 'your-key' });
  await vantinel.track('my_tool', { input: 'value' });
</script>

Security

  • All requests are signed with HMAC-SHA256 using the Web Crypto API
  • Each request includes a timestamp and random nonce to prevent replay attacks
  • API keys are never sent in plaintext headers — only a redacted identifier is included
  • No sourcemaps are included in the published package

License

MIT © Vantinel AI