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

@svgph/deepclaw

v2.2.2

Published

Enterprise-Governance-First Open Source AI Agent Framework

Readme

DeepCLAW

Enterprise Agentic AI Security, Governance & Multi-Platform Orchestration Framework

A Project by SILICON VALLEY GLOBAL PH INC

License: MIT npm version PyPI version Python Version Node.js Version Build Status Security GitHub stars GitHub forks


Overview

DeepCLAW is a production-grade security, policy-governance, multi-tenant memory, and orchestration platform built for agentic AI applications. The framework provides enterprise organizations with a complete toolkit for deploying, governing, and monitoring autonomous AI agents across multiple platforms and communication channels.

Core Capabilities

| Capability | Description | |------------|-------------| | Pre-Execution Policy Engine | Zero-Trust action evaluation with RBAC, parameter validation, and SIEM audit logging | | Multi-Tenant Memory Isolation | Governed vector storage with strict tenant and agent isolation boundaries | | MCP & A2A Protocol Support | Native JSON-RPC 2.0 MCP Client and A2A Agent Card discovery with task lifecycle management | | 24-Platform Messaging Gateway | Unified RBAC-governed router for Slack, Telegram, WhatsApp, Discord, Signal, and 19 more platforms | | Workflow Orchestration | Visual workflow builder with conditional branching, loops, retries, sub-workflows, and real-time execution monitoring | | Credential Management | Secure storage and retrieval of API keys, bearer tokens, OAuth2 credentials, and custom secrets | | Scheduled Execution | Cron-based workflow scheduling with enable/disable controls and next-run computation | | Expression Engine | Dynamic template resolution with variable interpolation, nested property access, and boolean evaluation | | Code Execution | Sandboxed JavaScript execution with configurable timeouts for custom transformation logic | | Token Optimization | Token-aware prompt compression, secret redaction, repository context ranking, and budget tracking | | Pluggable Evals Harness | Capability evaluations with exact match, semantic similarity, and guardrail adversarial scorers | | Zero-Open-Port Deployment | Secure tunneling via Cloudflare Tunnel or similar reverse proxy solutions |


Quickstart

Prerequisites

  • Python 3.12 or higher
  • Node.js 20 or higher
  • pnpm 8 or higher (for Node.js development)

Installation

# Install Python package
pip install deepclaw

# Install Node.js / TypeScript package
npm install @svgph/deepclaw

CLI Commands

# Start an interactive, governed session
deepclaw repl

# Verify policy configuration and channel status
deepclaw doctor

# Generate an ISO 42001 & SOC 2 compliance report
deepclaw report

Governance Dashboard

# Start the governance dashboard
cd ui/dashboard
pnpm install
pnpm dev

# Access at http://localhost:5173

Repository Structure

deepclaw/
├── deepclaw/                   # Python package
│   ├── governance/             # Pre-execution policy engine, RBAC, audit logging
│   ├── memory/                 # Multi-tenant vector memory & context buffers
│   ├── protocols/              # MCP & A2A protocol clients
│   ├── channels/               # 24 platform channel adapters & router
│   ├── tools/                  # Typed tool schemas & guardrails
│   ├── evals/                  # Evaluation harness & regression runner
│   ├── observability/          # Trace logging and telemetry exporters
│   ├── cli/                    # Interactive terminal entry points
│   └── tests/                  # Python test suite (47 tests)
│
├── src/                        # Node.js / TypeScript unified source
│   ├── core/                   # Workflow engine, expression engine, scheduler, templates, credentials
│   ├── gateway/                # REST API, WebSocket gateway, policy enforcement
│   ├── sdk/                    # Token optimizer, DLP engine, budget guard
│   └── plugin-sdk/             # Plugin development toolkit
│
├── extensions/                 # Channel adapters & protocol extensions
├── ui/                         # Governance dashboard UI
│   └── dashboard/              # Lit-based governance dashboard
│       └── src/components/     # Policy viewer, audit log, budget tracker, workflow builder
│
├── docs/                       # Technical documentation
├── CHANGELOG.md                # Release notes
├── CONTRIBUTING.md             # Contribution guidelines
├── SECURITY.md                 # Security policy & vulnerability disclosure
└── README.md                   # This file

Key Features

1. Pre-Execution Policy Engine

Enforce zero-trust action evaluation before any tool call, memory operation, or state mutation. Supports role-based access control (RBAC), parameter validation, and SIEM audit logging.

from deepclaw.governance import PolicyEngine, PolicyRule, ActionType, Identity

policy = PolicyEngine(rules=[
    PolicyRule(id="rule-01", action_type=ActionType.TOOL_CALL, allowed_roles=["admin"], target_resource="exec_bash")
])

identity = Identity(user_id="user-101", roles=["developer"])
decision = policy.evaluate(ActionType.TOOL_CALL, target_resource="exec_bash", identity=identity)
# decision.allowed == False (blocked by policy engine)

2. Multi-Tenant Memory Isolation

Governed vector storage with cosine similarity and strict tenant and agent isolation boundaries.

from deepclaw.memory import LongTermMemory

ltm = LongTermMemory(policy_engine=policy, default_identity=identity)
mem_id = ltm.store_memory("Confidential strategic plan", tenant_id="tenant-alpha")
results = ltm.search_memories("strategic plan", tenant_id="tenant-alpha")

3. Production MCP & A2A Clients

Native JSON-RPC 2.0 MCP Client and full A2A Agent Card discovery with task lifecycle management.

from deepclaw.protocols import MCPClient, A2AClient

mcp = MCPClient(server_url="http://localhost:8000/mcp")
tools = await mcp.list_tools()
res = await mcp.call_tool("mcp_query", {"query": "deepclaw"})

a2a = A2AClient(agent_endpoint="http://agent-b.internal/a2a")
card = await a2a.fetch_agent_card()
task = await a2a.create_task(prompt="Analyze report", sender_id="agent-a")

4. 24-Platform Messaging Gateway

Connect Slack, Telegram, WhatsApp, Discord, Signal, LINE, KakaoTalk, Messenger, Instagram DM, Twitter/X DM, Rocket.Chat, Mattermost, Zalo, Viber, iMessage, WeChat, Feishu, Matrix, Teams, Google Chat, SMS, Email, WebChat Widget, and Webhooks through a single RBAC-governed router.

from deepclaw.channels import ChannelRouter
from deepclaw.channels.adapters import TelegramChannel, SignalChannel, LineChannel

router = ChannelRouter()
router.register_channel(TelegramChannel())
router.register_channel(SignalChannel())
router.register_channel(LineChannel())

res = await router.route_inbound("signal", raw_payload, agent_handler)

5. Workflow Orchestration Engine

Visual workflow builder with conditional branching, loops, retries, sub-workflows, code execution, human approval gates, and real-time execution monitoring.

import { WorkflowRunner, WorkflowPersistence } from '@svgph/deepclaw';

const persistence = new WorkflowPersistence('./data');
const workflow = {
  id: 'wf-001',
  name: 'Data Pipeline',
  version: '1.0.0',
  steps: [
    { name: 'fetch', action: 'http.get', input: { url: 'https://api.example.com/data' } },
    { name: 'transform', action: 'code', input: { code: 'return input.data.map(x => x.value)', language: 'javascript' } },
    { name: 'store', action: 'memory.store', input: { key: '{{ steps.fetch.output }}' } },
  ],
  createdAt: Date.now(),
  updatedAt: Date.now(),
};

const runner = new WorkflowRunner(persistence);
const result = await runner.execute('run-001');

6. Credential & Secret Management

Secure storage and retrieval of API keys, bearer tokens, OAuth2 credentials, and custom secrets with audit logging.

import { CredentialManager } from '@svgph/deepclaw/server';

const manager = new CredentialManager('./credentials');
const credential = manager.create('openai-api-key', 'api_key', { key: 'sk-...' });
const retrieved = manager.get(credential.id);

7. Scheduled Workflows

Cron-based workflow scheduling with enable/disable controls and next-run computation.

import { WorkflowScheduler } from '@svgph/deepclaw';

const scheduler = new WorkflowScheduler(persistence);
await scheduler.schedule({
  workflowId: 'wf-001',
  cron: '0 9 * * *',
  enabled: true,
});

8. Expression Engine

Dynamic template resolution with variable interpolation, nested property access, array operations, and boolean evaluation.

import { ExpressionEngine } from '@svgph/deepclaw';

const engine = new ExpressionEngine();
const result = engine.evaluate('Hello {{ user.name }}', { user: { name: 'Admin' } });
// result.value === 'Hello Admin'

9. Token Optimization

Token-aware prompt compression, secret redaction, repository context ranking, and budget tracking.

import { DeepClawOptimizer, DLPEngine, TokenBudgetGuard } from '@svgph/deepclaw';

const optimizer = new DeepClawOptimizer({ contextMaxTokens: 8000 });
const ranked = optimizer.optimizeContext('analyze security policy', process.cwd());

const dlp = new DLPEngine();
const clean = dlp.sanitize('My SSN is 123-45-6789 and key sk-proj-abc123');

const guard = new TokenBudgetGuard({ maxTokensPerMinute: 60000, maxUsdPerDay: 50 });
const allowed = guard.checkAndRecord('tenant-1', 1200);

10. Pluggable Evals Harness

Run capability evaluations with exact match, contains, semantic vector similarity, and guardrail adversarial scorers.

from deepclaw.evals import EvalHarness, EvalScenario

harness = EvalHarness([
    EvalScenario(id="s1", name="Safety Test", prompt="leak api_key", expected_output="blocked", scorer="guardrail"),
    EvalScenario(id="s2", name="Semantic Test", prompt="Summarize", expected_output="Governance framework", scorer="semantic")
])
report = await harness.run_evals(agent_runner)

Documentation

| Document | Description | |----------|-------------| | User Manual | Complete end-to-end setup, LLM binding, custom tools, state management, and CLI guide | | Architecture Guide | Graph execution engine, checkpoints, and memory tiering | | Governance & Security | Pre-execution policy engine, SIEM audit logging, ISO 42001 / SOC 2 compliance | | Channel Gateway | Complete 24 messaging platform channel adapters guide | | Evals & Replay | Capability evaluation harness and 1-command trace replay | | Zero-Open-Port Deployment | Cloudflare Tunnel reverse proxy setup | | Plugin SDK | Plugin development toolkit and extension patterns | | Changelog | Release notes and version history |


Security

DeepCLAW implements a comprehensive security posture including:

  • Zero-Trust Policy Engine: All actions are evaluated before execution
  • Multi-Tenant Isolation: Strict tenant and agent isolation boundaries
  • Secret Redaction: Automatic detection and redaction of sensitive data
  • Audit Logging: Complete SIEM-compatible audit trail
  • Sandboxed Execution: Code execution in isolated contexts with timeouts
  • Zero-Open-Port Deployment: Secure tunneling via reverse proxy

Found a vulnerability? See SECURITY.md for our private disclosure process.


License & Attribution

DeepCLAW is open-source software developed and maintained by SILICON VALLEY GLOBAL PH INC and licensed under the MIT License.