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

@volji/protect

v0.1.0

Published

Runtime AI agent security proxy — blast radius scoring, audit traces, HITL

Readme

@volji/protect

Runtime AI agent security proxy. Wraps any MCP executor and reports every tool call to the Volji audit pipeline — blast radius scoring, immutable traces, HITL queuing.

Install

npm install @volji/protect

Requires Node.js 18+ and a Volji license key. Start a free trial at volji.io.

Quickstart

import { wrapWithVolji } from '@volji/protect'

const protect = wrapWithVolji(myMcpServer, { licenseKey: 'VOLJI-PT-xxxxxxxxxxxxxxxx-xxxxxxxx' })
const result = await protect.call('write_file', { path: './out.json', content: data }, { agentId: 'my-agent', sessionId: 'sess-001' })

That's it. Every call is scored and logged in your Volji dashboard with zero latency overhead — telemetry is fire-and-forget.

API

wrapWithVolji(server, options)

| Parameter | Type | Description | |-----------|------|-------------| | server | { call(tool, args): Promise<unknown> } | Your MCP executor or client | | options.licenseKey | string | Volji license key (from your dashboard) | | options.apiUrl | string | Override API URL (default: Volji production) |

Returns a ProtectedServer with one method:

protect.call(tool, args, context)

| Parameter | Type | Description | |-----------|------|-------------| | tool | string | MCP tool name | | args | object | Tool arguments | | context.agentId | string | Stable identity of the calling agent | | context.sessionId | string | Conversation or workflow session ID | | context.parentAgentId | string? | Orchestrator agent ID (for swarm detection) |

The call is never blocked — observe-only in v0.1. The actual tool executes and results pass through unchanged. Errors are re-thrown after the trace is recorded.

Blast radius scoring

Each tool call is scored 0–100 based on tool name patterns:

| Pattern | Score | |---------|-------| | Read-only (default) | +5 | | File writes (write_file, delete_file, ...) | +30 | | Database mutations (execute_sql, insert_record, ...) | +25 | | External egress (http_request, send_email, webhook, ...) | +20 |

Scores above 75 = critical, 50–74 = high, 25–49 = medium, below 25 = low.

Full-featured usage (AuditProxy)

For HITL, permission enforcement, swarm detection, and blocking, use the lower-level AuditProxy class directly:

import { AuditProxy } from '@volji/protect'

const proxy = new AuditProxy({
  executor:         myMcpClient,
  agentPermissions: new Map([['my-agent', ['read:files', 'write:files']]]),
  toolPermissions:  new Map([['write_file', ['write:files']]]),
  blockCritical:    true,
  hitl: {
    requireApprovalAbove: 'high',
    mode: 'async',
    onApprovalRequired: async (entry) => {
      // post to Slack, Zendesk, etc.
      return awaitHumanDecision(entry)
    },
  },
  onTrace: async (entry) => {
    console.log(entry.decision, entry.blastRadius.score)
  },
})

const result = await proxy.call({
  tool:      'write_file',
  arguments: { path: './report.csv', content: csvData },
  agentId:   'report-agent',
  sessionId: 'weekly-run-001',
})

Environment variable

Set VOLJI_DEBUG=1 to log telemetry send failures to stderr (silenced by default).

License

Commercial. See volji.io/terms.