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

@proofgate/goat-plugin

v0.1.0

Published

ProofGate transaction validation plugin for GOAT SDK - secure your AI agents

Readme

@proofgate/goat-plugin

Transaction validation guardrails for GOAT AI agents 🐐🛡️

npm version License: MIT

What is this?

This plugin adds transaction validation to your GOAT-powered AI agents. Before any blockchain transaction executes, ProofGate checks it against your security guardrails.

Prevents:

  • 🚫 Wallet drains from prompt injection
  • 🚫 Infinite token approvals
  • 🚫 Interactions with unknown contracts
  • 🚫 Transactions exceeding your limits

Installation

npm install @proofgate/goat-plugin
# or
pnpm add @proofgate/goat-plugin

Quick Start

import { proofgate } from '@proofgate/goat-plugin';
import { uniswap } from '@goat-sdk/plugin-uniswap';
import { createGoatAgent } from '@goat-sdk/core';

const agent = createGoatAgent({
  plugins: [
    // Add ProofGate for transaction validation
    proofgate({ 
      apiKey: 'pg_live_xxx', // Get from www.proofgate.xyz
    }),
    // Your other plugins
    uniswap({ ... }),
  ],
});

How It Works

The plugin provides two tools to your agent:

1. proofgate_validate_transaction

Full validation with detailed checks:

// Agent can call this before any transaction
const result = await agent.tools.proofgate_validate_transaction({
  to: '0xContractAddress',
  data: '0x095ea7b3...', // Approval calldata
  value: '0',
});

// Returns:
{
  validationId: 'val_abc123',
  result: 'PASS', // or 'FAIL'
  safe: true,
  reason: 'All checks passed',
  checks: [
    { check: 'chain_support', passed: true, message: '...' },
    { check: 'infinite_approval', passed: true, message: '...' },
  ],
}

2. proofgate_is_transaction_safe

Quick yes/no check:

const { safe, reason } = await agent.tools.proofgate_is_transaction_safe({
  to: '0xContractAddress',
  data: '0x...',
});

if (safe) {
  // Execute transaction
} else {
  console.log('Blocked:', reason);
}

Configuration

proofgate({
  // Required: Your API key from www.proofgate.xyz
  apiKey: 'pg_live_xxx',
  
  // Optional: Use a specific guardrail for stricter rules
  guardrailId: 'my-guardrail-id',
  
  // Optional: Auto-throw on unsafe transactions (default: true)
  autoBlock: true,
  
  // Optional: Enable debug logging
  debug: false,
});

Supported Chains

All EVM chains supported by GOAT, including:

  • Ethereum (1)
  • Base (8453)
  • Arbitrum (42161)
  • Polygon (137)
  • Optimism (10)
  • And 14 more...

Creating Guardrails

Define custom security rules at www.proofgate.xyz/guardrails:

  • Contract whitelists — Only allow Uniswap, Aave, etc.
  • Approval limits — Max 1000 USDC per approval
  • Daily spending caps — $10k/day maximum
  • Slippage protection — Block trades with >2% slippage

Pricing

| Tier | Validations/mo | Price | |------|----------------|-------| | Free | 100 | $0 | | Pro | 10,000 | $49/mo | | Enterprise | Unlimited | Contact |

Example: Protected DEX Trading

import { proofgate } from '@proofgate/goat-plugin';
import { uniswap } from '@goat-sdk/plugin-uniswap';
import { erc20 } from '@goat-sdk/plugin-erc20';

const agent = createGoatAgent({
  plugins: [
    proofgate({ 
      apiKey: process.env.PROOFGATE_API_KEY!,
      guardrailId: 'defi-trading', // Your guardrail
    }),
    uniswap({ ... }),
    erc20(),
  ],
});

// Now your agent's trades are protected!
// ProofGate validates every transaction before execution.

Links

License

MIT © 0xCR6