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

@verdicter/sdk

v1.1.2

Published

Runtime security for AI agents — evaluate tool calls against policies in real time

Readme

@verdicter/sdk

Runtime security for AI agents. Evaluate every tool call against your policies - get ALLOW, DENY, or ESCALATE in under 50ms.

npm version npm downloads license


What is Verdicter?

Your agents act fast. Verdicter makes sure they act right.

Every tool call - across every agent, every request - passes through a policy engine in real time before it executes. No per-call code changes needed.

Agent action → verdicter.evaluate() → Policy engine → ALLOW / DENY / ESCALATE → Tool runs

Get your free API key at verdicter.dev


Install

npm install @verdicter/sdk

Quick start

1. Get an API key at verdicter.dev - free to sign up, 10k evaluations/month on the free plan.

2. Register your agent in the dashboard and create a policy (e.g. "block any send_email where recipient is external").

3. Evaluate before every tool call:

import { Verdicter } from '@verdicter/sdk';

const verdicter = new Verdicter({
  apiKey: process.env.VERDICTER_API_KEY!,
});

const { decision, modifiedPayload } = await verdicter.evaluate({
  agentId: 'support_bot',         // registered in your Verdicter dashboard
  tool:    'send_email',
  payload: { to: user.email, subject, body },
});

if (decision === 'ALLOW')    await sendEmail(payload);
if (decision === 'DENY')     throw new Error('Blocked by policy');
if (decision === 'ESCALATE') await requestHumanApproval(payload);

Or wrap your tools - zero per-call changes:

const safeSendEmail = verdicter.wrapFn('send_email', sendEmail, {
  agentId: 'support_bot',
});

// Evaluation + policy enforcement happens automatically
await safeSendEmail({ to: user.email, subject, body });

LangChain adapter

import { VerdicterToolkit } from '@verdicter/sdk/langchain';

const toolkit = new VerdicterToolkit({ client: verdicter, agentId: 'support_bot' });
const guardedTools = toolkit.guardTools(tools); // wrap your existing LangChain tools

Vercel AI SDK adapter

import { guardTools } from '@verdicter/sdk/vercel-ai';

const tools = guardTools(verdicter, 'support_bot', {
  send_email: tool({ ... }),
});

Configuration

const verdicter = new Verdicter({
  apiKey:      process.env.VERDICTER_API_KEY!,
  timeout:     5000,    // ms, default 5000
  maxRetries:  2,       // default 2
  failOpen:    false,   // if true, ALLOW on network errors (default: false = fail closed)
});

| Option | Type | Default | Description | |--------|------|---------|-------------| | apiKey | string | required | Your Verdicter API key | | timeout | number | 5000 | Request timeout in ms | | maxRetries | number | 2 | Retries on 429/5xx | | failOpen | boolean | false | ALLOW on network errors instead of throwing |


Decisions

| Decision | Meaning | |----------|---------| | ALLOW | Policy passed - run the tool | | DENY | Policy blocked it - don't run, inform user | | ESCALATE | Needs human review - route to your approval flow |


Dashboard

Everything is visible in your Verdicter dashboard:

  • Live audit log - every evaluation with risk score, decision, and trace
  • Policy editor - create rules in plain language or JSON
  • Agents - register agents, track risk scores over time
  • Escalations - approve/reject high-risk actions from Slack, email, or the dashboard
  • Comply - SOC 2, GDPR, HIPAA reports generated from your audit log

Links


MIT License © Verdicter