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

@the-ai-company/cbio-node-runtime

v1.55.1

Published

Node.js runtime for cbio identity and credential vault. Library only, no CLI or TUI.

Readme

cbio Vault Runtime

Node.js vault runtime with a Sovereign Vault architecture: authority is rooted in a master password, and agent identities are fully managed within the vault's encrypted storage.

Source: https://github.com/TheAICompany/cbio-node-runtime


Key Features

  • No CLI / No TUI: Pure library for integration into Node.js applications.
  • Authority-centric: Administrative control is tied to the vault's master password, not an external identity.
  • Managed Agent Custody: Generate and store agent private keys securely inside the vault.
  • Agent Session Tokens: Issue revocable, short-lived (or long-lived) tokens for agents to avoid handling raw private keys.
  • Zero-Configuration Discovery: Agents can self-introspect to discover their identity, capabilities, and toolset (v1.56.0+).
  • Process Isolation: Hard separation between the Security Process (Master) and Agent Processes (Consumers).
  • Zero-Leak Discovery: Vault metadata is fully encrypted and hidden until unlocked.

Install

Requires Node >= 18.

npm install @the-ai-company/cbio-node-runtime

Usage

1. Bootstrap a New Vault

The Sovereign Vault requires only a storage provider and a master password.

import { 
  createVault, 
  FsStorageProvider, 
  createWorkspaceStorage 
} from '@the-ai-company/cbio-node-runtime';

const storage = new FsStorageProvider('./my-vaults');

const myVault = await createVault(storage, {
  password: 'your-secure-password',
  nickname: 'Production Vault'
});

console.log(`Vault created: ${myVault.nickname}`);

2. Recover an Existing Vault

import { recoverVault, FsStorageProvider } from '@the-ai-company/cbio-node-runtime';

const vault = await recoverVault(storage, {
  vaultId: myVault.core.vaultId.value,
  password: 'your-secure-password'
});

3. Managed Agent Identities

You can generate and register agents directly within the vault. The vault holds the private keys for full custody.

import { createVaultClient } from '@the-ai-company/cbio-node-runtime';

const client = createVaultClient({
  vault: vault.vault,
  passwordVerifier: vault.verifyPassword
});

// Generate and register a new agent in one step
const createdAgent = await client.ownerCreateAgent({
  nickname: 'Background Worker'
});

const agentId = createdAgent.agent.agentId;
console.log(`Agent public key: ${createdAgent.agent.publicKey}`);
console.log(`Identity ID: ${createdAgent.agent.identityId}`);
const session = createdAgent.sessionToken;

// RECOMENDED (v1.48.4+): Batch issue tokens for all agents at once
const tokens = await client.ownerIssueAllSessionTokens();

5. Secret Management (Owner)

// Write a secret and bind it to a target site
const record = await client.ownerWriteSecret({
  alias: 'api-token',
  plaintext: 'super-secret-value',
  targetBindings: [{
    kind: 'site',
    targetId: 'my-api',
    targetUrl: 'https://api.example.com/endpoint',
    methods: ['POST']
  }]
});

// 4. Grant agent capabilities
await client.ownerGrantCapability({
  agentId,
  secretAliases: ['api-token'],
  scope: 'https://api.example.com/*',
  methods: ['POST']
});

// 5. Setup client with automatic warmup (v1.48.4+)
const client = createVaultClient({
  vault,
  ownerIdentity: { identityId: 'owner-1' }
  // warmup: true is now DEFAULT (v1.48.4+)
  // skipWarmup: true // Optional: pass this to disable automatic token generation
});

6. Consuming Secrets (Agent)

Agents run in isolated processes and communicate with the vault via a transport. Agent execution now requires a Session Token issued by the owner.

Using a Session Token (Stateless/Token-based)

import { createAgentClient } from '@the-ai-company/cbio-node-runtime';

const agent = createAgentClient({
  agentIdentity: { agentId },
  capability: myCapability, 
  token: session.token,
  vault: vault.vault
});

const result = await agent.agentDispatch({ ... });

The agent process does not execute directly with its raw private key. If it has an identity key, it still needs to exchange that trust for a session token before dispatching.

7. Proactive Capability Requests

If an LLM or orchestration layer already knows it needs a broader scope, it can ask for that scope up front instead of triggering one pending dispatch per concrete URL.

const request = await client.ownerSubmitCapabilityRequest({
  requester: { kind: 'trusted_executor', id: 'llm-planner' },
  agentId,
  secretAliases: ['api-token'],
  scope: 'https://api.example.com/users/*',
  methods: ['GET'],
  justification: 'Need collection-level user read access'
});

const pendingRequests = await client.ownerListPendingCapabilityRequests();

const capability = await client.ownerApproveCapabilityRequest({
  requestId: pendingRequests[0].requestId
});

This flow is separate from dispatch discovery:

  • ownerSubmitCapabilityRequest(...) creates a pending capability request for owner review.
  • ownerOnPendingCapabilityRequest(...) pushes new requests to the owner UI or controller.
  • ownerApproveCapabilityRequest(...) turns the request into a real stored capability.
  • ownerRejectCapabilityRequest(...) drops the request without granting access.

8. Zero-Configuration Agent Discovery (v1.56.0+)

Instead of hard-coding the agent's capabilities or tools, the agent can self-introspect at runtime. This is the "--help" and "llms.txt" for your agent.

const manifest = await agent.agentIntrospect();

console.log(manifest.agentId);      // The agent's identity in the vault
console.log(manifest.capabilities); // List of granted permissions
console.log(manifest.tools);        // List of available API tools with JSON-Schema

This manifest can be directly fed into an LLM's system prompt or tool-calling configuration to enable fully autonomous, zero-config integration.


Documentation

Architecture Rules

  1. Secret Isolation: Plane-text secrets never leave the Security Process.
  2. Authority Root: The master password is the only source of administrative authority.
  3. Auditability: Every administrative and agent action is recorded in the vault's audit log under the vault-master or agent principal.
  4. Binary Discovery: Either the vault is unlocked and visible, or it is a silent directory of encrypted shards.

Human-in-the-Loop (HITL) Workflow

The system uses a Discovery-first model. If an agent attempts an action not explicitly in its white-list (the "Iron Triangle" of Agent-Key-Action), the dispatch is paused:

// In Agent process
const result = await agent.agentDispatch({ ... });
if (result.status === 'PENDING') {
  console.log("Discovery needed: Waiting for owner approval...");
}

// OR: Use the Observer for real-time push (v1.48.4+)
ownerClient.ownerOnPendingDispatch((req) => {
  console.log("New discovery request:", req.requestId);
});

// In Owner process (GUI or Script)
const pending = await client.ownerListPendingDispatches();
if (pending.length > 0) {
  // Inspect and approve the request, optionally making it permanent
  await client.ownerApproveDispatch({ 
    requestId: pending[0].requestId, 
    permanent: true 
  });
}

Build & Test

npm run build
npm test
// 9. Sensitive actions (v1.55.0+)
// Sensitive reads require the vault password again for verification
const plaintext = await client.ownerReadSecretPlaintext({
  alias: 'api-token',
  password: 'your-secure-password'
});