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

@agenticcontrolplane/governance

v0.1.0

Published

Core SDK for the Agentic Control Plane — govern any tool call from any agent framework. Delegation chain, scope intersection, budget propagation, audit log.

Downloads

33

Readme

@agenticcontrolplane/governance

Core SDK for the Agentic Control Plane. Govern any tool call from any agent framework with one consistent API: PreToolUse → execute → PostToolUse.

Install

npm install @agenticcontrolplane/governance

Quick start

import { GovernanceClient } from "@agenticcontrolplane/governance";

const acp = new GovernanceClient({
  apiKey: process.env.ACP_API_KEY!, // gsk_yourslug_xxxxxxxxxxxx
});

// Wrap any tool call. ACP runs PreToolUse before, PostToolUse after.
const result = await acp.governTool({
  tool: "github.repos.create",
  input: { name: "new-repo", private: true },
  agent: { agentName: "pr-reviewer", agentTier: "api" },
  execute: async () => {
    // your actual tool execution
    return await github.repos.create({ name: "new-repo", private: true });
  },
});

console.log(result.output);     // the tool's output (or redacted version)
console.log(result.redacted);   // true if ACP redacted the output
console.log(result.findings);   // PII / injection findings, if any

What you get

  • PreToolUse enforcement: deny decisions throw GovernanceDeniedError before your tool runs.
  • PostToolUse scanning: PII detection, prompt injection scanning, secret redaction.
  • Audit log entry per call in your ACP dashboard, tagged with agent_name.
  • Delegation chain attribution: when this agent invokes another, the chain link is created automatically.
  • Fail-closed by default: if ACP is unreachable, tool calls are denied for safety. Switch to failureMode: "open" only if you explicitly accept ungoverned calls during outages.

API

new GovernanceClient(options)

interface GovernanceClientOptions {
  apiKey: string;             // gsk_… key from cloud.agenticcontrolplane.com
  baseUrl?: string;           // default: https://api.agenticcontrolplane.com
  timeoutMs?: number;         // default: 5000
  failureMode?: "open" | "closed"; // default: "closed"
}

acp.governTool({ tool, input, agent, execute })

Wraps a tool execution end-to-end. Returns Promise<GovernResult<T>>.

acp.preToolUse(req) / acp.postToolUse(req)

Manual control for framework adapters that need to interleave governance with framework-specific control flow.

Framework adapters

Use these instead of writing your own integration:

  • @agenticcontrolplane/governance-anthropic — Anthropic SDK + Agent SDK
  • @agenticcontrolplane/governance-openai (planned) — OpenAI SDK + Agents SDK
  • acp-governance-crewai (PyPI, planned) — CrewAI Python adapter
  • acp-governance-langchain (PyPI, planned) — LangChain / LangGraph adapter

License

MIT