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

@agenttrustvault/core

v0.1.0

Published

ATV — Agent Trust Vault: The Trust Layer for AI. Secure collaboration for humans, AI agents, and automated workflows without exposing secrets.

Readme

ATV — Agent Trust Vault

The Trust Intelligence Platform for AI

ATV transforms AI collaboration from a security challenge into a trust-driven partnership. Instead of giving agents access to sensitive information, ATV intelligently evaluates trust, issues time-bound capabilities, and audits every interaction.

ATV allows humans, AI agents, and automated workflows to securely collaborate using protected information without exposing secrets.

No secrets. No copy/paste. Complete governance. Explainable trust.

Why ATV?

Most AI systems force organizations to choose between:

  • Giving AI access to sensitive information, or
  • Preventing AI from performing valuable work

ATV introduces a third option:

Trust-driven access - Decisions based on behavior, not just rules
Explainable decisions - See exactly why access was approved or denied
Ephemeral execution - Credentials exist only during execution, then destroyed
Zero trust architecture - Verify everything, trust nothing by default
Complete audit trail - Every decision, signal, and action is logged
Platform agnostic - Works with Buzz, Claude Desktop, VS Code, MCP, CLI, and more

Architecture

Human/Agent
    ↓
Trust Intelligence Platform
    ├─ Runtime Attestation (verify execution environment)
    ├─ Adaptive Trust Engine (behavior-based scoring)
    ├─ Trust Decision Service (explainable decisions)
    ├─ Policy Simulation (what-if testing)
    ├─ Trust Timeline (visual lifecycle tracking)
    └─ Platform Adapter (decouple from Buzz)
    ↓
Capability Token v2
    ├─ Cryptographic signing
    ├─ Runtime attestation
    └─ Trust score snapshot
    ↓
Execution Gateway
    ├─ Secret injection
    └─ Context cleanup
    ↓
Audit & Compliance
    ├─ Trust timeline
    ├─ Trust replay
    └─ Compliance reporting

The ATV Trust Intelligence Platform orchestrates secure collaboration through:

  • Trust Intelligence - Adaptive trust scoring based on observed behavior
  • Explainable Decisions - Clear reasoning for all approvals and denials
  • Runtime Attestation - Verify SDK, capability, principal, and execution gateway
  • Capability Token v2 - Ed25519-signed tokens with embedded trust context
  • Adaptive Trust Engine - Learns from successful operations to improve future decisions
  • Platform Adapter - Abstract interface supporting multiple platforms
  • Trust Timeline - Visual, interactive lifecycle of artifacts and decisions
  • Policy Simulation - Test what-if scenarios before policies go live
  • Trust Replay - Audit historical decisions against current policies

Installation

npm install @agenttrustvault/core

SDK packages:

npm install @agenttrustvault/sdk
npm install @agenttrustvault/buzz

Quick Start

Protect Information

import { AgentTrustVault } from '@agenttrustvault/core';

const atv = new AgentTrustVault();

const protected = await atv.protect({
  data: '{"api_key": "sk_live_..."}',
  classification: 'secret',
  policy: {
    allowedPrincipals: ['agent-1', 'user-123'],
    requiresApproval: false
  }
});

Authorize Work

const capability = await atv.authorize({
  principal: 'agent-1',
  resource: protected.id,
  action: 'execute',
  duration: '1h'
});

Execute with Protection

const result = await atv.execute({
  capability: capability.token,
  context: { agent: 'agent-1' }
});

// The secret is injected into the execution context
// and destroyed immediately after use

Core Features

Automatic Sensitive Data Detection

Automatically detects and protects:

  • PII: SSN, phone numbers, emails, dates of birth
  • Financial Data: Credit card numbers, account numbers, routing numbers, IBANs
  • Medical Data: Patient IDs, diagnosis, treatment information
  • Cryptographic Credentials: Passwords, API keys, tokens, private keys
  • Proprietary Information: Customer data, contracts, confidential markings
  • Database Content: SQL queries, database keywords

Client-Side Encryption

  • AES-256-GCM - Military-grade encryption for all protected content
  • Per-Artifact Keys - Each protected item can have its own encryption key
  • Secure Key Management - Automatic key generation, storage, and rotation

Policy-Based Access Control

  • Room-Aware Permissions - Collaboration context-aware access rules
  • Identity-Based Control - Three access levels: Room Members, Specific People, Require Approval
  • Agent Permissions - Fine-grained control over AI agent access (Allow, Metadata Only, Denied)

Audit Trail

  • Complete Logging - Every access attempt, approval, and modification is recorded
  • Compliance Ready - Full audit trail for regulatory requirements
  • Trust Timeline - Historical view of all trust events

Project Structure

src/
├── types/                 # TypeScript type definitions
├── services/              # Core services
│   ├── EncryptionService.ts
│   ├── SensitiveDetectionService.ts
│   ├── PolicyEngine.ts
│   ├── ArtifactService.ts
│   └── AuditService.ts
├── db/                    # Database layer
├── api/                   # REST API
└── buzz-capabilities/     # Buzz integration

Configuration

Set environment variables:

  • PORT - Server port (default: 3000)
  • DB_PATH - SQLite database path (default: :memory:)

Development

Build

npm run build

Test

npm test
npm run test:watch
npm run test:coverage

Run

npm run dev          # Development mode
npm run build && npm start  # Production

API Endpoints

Artifact Management

  • POST /api/artifacts/create - Protect information using ATV
  • POST /api/artifacts/create-with-detection - Protect with automatic detection
  • GET /api/artifacts/:id - Get protected item metadata
  • POST /api/artifacts/:id/access - Request access with authorization
  • POST /api/artifacts/:id/revoke - Revoke access permissions
  • POST /api/artifacts/:id/update-policy - Update trust policy
  • GET /api/artifacts/:id/audit - Get trust timeline

Room Management

  • GET /api/rooms/:roomId/artifacts - List protected items in collaboration space
  • POST /api/rooms/:roomId/policy - Set room trust policy

Health

  • GET /api/health - Health check

Data Models

Protected Item

{
  id: string
  name: string
  ownerId: string
  roomId: string
  ciphertext: Buffer          // Encrypted content
  metadata: ItemMetadata
  accessLevel: AccessLevel
  allowedUserIds?: string[]
  agentPermissions?: Record<string, AgentPermission>
  expiresAt?: Date
  isRevoked: boolean
  createdAt: Date
  updatedAt: Date
}

Access Levels

  • ROOM_MEMBERS - All collaboration members can access
  • SPECIFIC_PEOPLE - Only specified identities can access
  • REQUIRE_APPROVAL - Requires explicit approval for each access

Agent Permissions

  • ALLOW - Full access to protected content
  • METADATA_ONLY - Access to metadata only, no decryption
  • DENIED - No access

Security Considerations

  1. Never Store Plaintext - Only encrypted content is persisted
  2. Ephemeral Execution - Protected information exists only in memory during use, then is destroyed
  3. Per-Item Encryption - Each protected item can have its own encryption key
  4. Automatic Expiration - Protected items can be configured to expire automatically
  5. Revocation - Access can be revoked immediately at any time
  6. Complete Audit Trail - All access is logged for compliance and investigation

Use Cases

Secure AI Agent Workflows

Agents perform valuable work with access to sensitive information through ATV, without ever holding credentials or seeing plaintext secrets.

Cross-Organization Collaboration

Share protected information with trusted partners, agents, and automated workflows with fine-grained access control and complete audit trails.

Compliance and Governance

Maintain complete control over sensitive data in AI-powered workflows while meeting regulatory requirements.

Automated Secret Injection

Credentials, API keys, and confidential data are automatically injected into execution contexts where needed and destroyed immediately after use.

Future Enhancements

  • Hardware-backed key storage (TPM, HSM, Secure Enclave)
  • Data residency controls (EU/US separation)
  • Advanced ML-based sensitivity detection
  • Marketplace integration
  • External sharing workflows
  • Fine-grained agent capability negotiation

Contributing

Contributions are welcome. Please see CONTRIBUTING.md for guidelines.

License

ISC