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

correctover-ccs

v4.0.2

Published

CCS v4.0 — Agent runtime verification protocol with synchronous interceptor governance and structural fail-closed guarantee (CWE-636).

Readme

@correctover/ccs

CCS v1.0 — Synchronous interceptor governance for AI Agent frameworks

TypeScript implementation of the Correctover Conformance Standard (CCS) v1.0.

Provides structural fail-closed guarantee: if governance evaluation fails, the tool function is NEVER invoked. This eliminates the CWE-636 fail-open vulnerability inherent to observer-pattern hooks.

Install

npm install @correctover/ccs

Quick Start

import { govern, GovernanceResult, getRuntime, CCSPolicy } from "@correctover/ccs";

// Wrap any function with governance
const searchWeb = (query: string) => fetch(`...`).then(r => r.text());
const governedSearch = govern(searchWeb, { policy: "default" });

governedSearch("test query"); // ✅ Allowed by default policy

// Custom policy
class BlockDeletePolicy implements CCSPolicy {
  evaluate(toolName: string, toolInput: Record<string, unknown>): GovernanceResult {
    if (toolName.includes("delete") || toolName.includes("rm")) {
      return GovernanceResult.DENY;
    }
    return GovernanceResult.ALLOW;
  }
}

const runtime = getRuntime();
runtime.registerPolicy("block_delete", new BlockDeletePolicy());

const governedDelete = govern(deleteFile, { policy: "block_delete" });
governedDelete("/etc/passwd"); // ❌ Throws PermissionError

Fail-Closed Guarantee

// If policy engine crashes, tool is STILL blocked
class CrashPolicy implements CCSPolicy {
  evaluate(): GovernanceResult {
    throw new Error("Policy engine failure!");
  }
}

runtime.registerPolicy("crash", new CrashPolicy());
const governed = govern(myTool, { policy: "crash" });

governed(args); // ❌ PermissionError — tool NEVER executes

This is the fundamental difference from observer-pattern hooks (which fail-open when the observer crashes).

API

govern(fn, options?)

Wraps a function with CCS governance. Returns a new function that evaluates governance before calling the original.

getRuntime(config?)

Returns the global CCS runtime singleton.

CCSRuntime

  • evaluate(toolName, toolInput, policyName?){ result, latencyUs }
  • registerPolicy(name, policy) → void
  • getStats() → performance statistics

GovernanceResult

Enum: ALLOW | DENY | ERROR

CCSPolicy (interface)

interface CCSPolicy {
  evaluate(toolName: string, toolInput: ToolInput): GovernanceResult;
}

Performance

Benchmarked on Node.js v22 (10,000 evaluations):

  • P50: ~75µs
  • P99: ~150µs

Python SDK is faster (~6µs P50) due to lower decorator overhead.

Standard Reference

License

CC BY 4.0 — © Correctover Standards