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

@rends/agent-sdk

v1.0.1

Published

Runtime interception SDK for AI agent governance — wraps agent tool calls with synchronous policy enforcement

Readme

@rends/agent-sdk

npm version npm downloads PyPI version License: MIT

Runtime interception SDK for AI agent governance. Wraps agent tool calls with synchronous policy enforcement via the AgentCompliant/Rends platform.

Install

# TypeScript / Node.js
npm install @rends/agent-sdk

# Python
pip install rends-agent-sdk

Quick Start (TypeScript)

import { RendsClient } from '@rends/agent-sdk';

const client = new RendsClient({
  apiKey: 'ac_live_...',
  orgId: 'your-org-uuid',
  agentId: 'your-agent-uuid',
  mode: 'enforce',  // 'enforce' | 'monitor' | 'dry-run'
});

// Wrap any tool call with governance
const result = await client.govern(
  {
    actionType: 'database_query',
    actionName: 'select_users',
    resourceType: 'customer_records',
    inputSummary: 'SELECT * FROM users WHERE region = us-east-1',
    metadata: { dataClassification: 'pii' },
  },
  async (params) => db.query('SELECT * FROM users WHERE region = $1', ['us-east-1'])
);

// result.allowed = true/false
// result.status = 'pass' | 'warn' | 'block'
// result.result = query output (if allowed)
// result.check.violations = [] (if blocked, why)

// Flush telemetry before exit
await client.drain();

Quick Start (Python)

from rends_sdk import RendsClient, RendsClientConfig, ActionContext

async with RendsClient(RendsClientConfig(
    api_key="ac_live_...",
    org_id="your-org-uuid",
    agent_id="your-agent-uuid",
)) as client:
    result = await client.govern(
        ActionContext(
            action_type="database_query",
            action_name="select_users",
            resource_type="customer_records",
            input_summary="SELECT * FROM users WHERE region = us-east-1",
        ),
        tool_fn=lambda params: db.query("SELECT * FROM users"),
    )

LangChain Integration

import { RendsClient } from '@rends/agent-sdk';
import { governTool, governTools } from '@rends/agent-sdk/adapters/langchain';

const client = new RendsClient({ apiKey: '...', orgId: '...', agentId: '...' });

// Wrap a single tool
const governedSearch = governTool(client, searchTool, 'web_search');

// Wrap all tools at once
const governedTools = governTools(client, [search, calculator, browser], 'tool');

// Use with any LangChain agent
const agent = createReactAgent({ llm, tools: governedTools });

CrewAI Integration (Python)

from rends_sdk.adapters import govern_crewai_tool

search = SerperDevTool()
governed = govern_crewai_tool(client, search, resource_type="web_search")
agent = Agent(tools=[governed], ...)

AutoGen Integration (Python)

from rends_sdk.adapters import govern_autogen_tool

def search_web(query: str) -> str:
    return tavily.search(query)

governed = govern_autogen_tool(client, search_web, "search_web", resource_type="web_search")
agent.register_function(function_map={"search_web": governed})

Enforcement Modes

| Mode | Behavior | |------|----------| | enforce | BLOCK → throws GovernanceBlockError, PASS/WARN → executes | | monitor | All decisions logged but never block execution | | dry-run | Policy checked, nothing executed, nothing logged |

Pre-flight Check

// Check policy without executing
const check = await client.checkPolicy({
  actionType: 'data_export',
  actionName: 'export_pii',
  resourceType: 'user_data',
  inputSummary: 'Export all PII to CSV',
});
// check.allowed, check.status, check.violations

Pipeline Stages

The SDK runs a 5-stage pipeline on every govern() call:

  1. beforeAction — validates action shape, computes input hash
  2. policyCheck — calls POST /v1/compliance/check-action synchronously
  3. decisionReturn — parses { allowed, status, violations, warnings }
  4. executionGate — executes tool if allowed, throws if blocked (in enforce mode)
  5. telemetryEmit — logs to POST /v1/telemetry/ingest (hash-chained audit trail)

API Reference

RendsClient(config)

| Config | Type | Default | Description | |--------|------|---------|-------------| | apiKey | string | required | API key (ac_live_...) | | orgId | string | required | Organization UUID | | agentId | string | required | Agent UUID | | endpoint | string | https://agentcompliant.ai/api | API base URL | | mode | string | enforce | Enforcement mode | | timeoutMs | number | 10000 | Policy check timeout | | retries | number | 2 | Retry count for transient failures | | failOpen | boolean | false | Allow action if policy check fails |

ActionContext

| Field | Type | Max Length | Description | |-------|------|-----------|-------------| | actionType | string | 200 | Category: tool_call, api_request, data_access | | actionName | string | 500 | Specific action: database_query, send_email | | resourceType | string | 200 | Target resource: customer_records, email_server | | inputSummary | string | 8000 | Free-text description of the input | | metadata | object | — | Additional context (not sent to policy check) |