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

@vorionsys/sdk

v0.1.1

Published

Vorion SDK - Simple interface for AI agent governance

Readme

@vorionsys/sdk

Developer-friendly SDK for AI agent governance. Register agents, request action permissions, and report outcomes with a simple API. Supports both local mode (in-memory, for testing) and remote mode (Cognigate API).

Installation

npm install @vorionsys/sdk

Quick Start

import { Vorion } from '@vorionsys/sdk';

// Local mode (for development/testing)
const vorion = new Vorion({ localMode: true });

const agent = await vorion.registerAgent({
  agentId: 'my-agent',
  name: 'My AI Agent',
  capabilities: ['read:*', 'write:documents'],
});

const result = await agent.requestAction({
  type: 'read',
  resource: 'documents/report.pdf',
});

if (result.allowed) {
  // Perform the action
  await agent.reportSuccess('read');
} else {
  console.log('Denied:', result.reason);
}

Features

  • Simple API: Register agents, request permissions, report outcomes
  • Local Mode: In-memory governance for development and testing
  • Remote Mode: Connect to a hosted Cognigate API for production
  • Trust Signals: Report success/failure to dynamically update agent trust scores
  • Capability Checks: Permission-based action authorization
  • Audit Trail: Every action request returns a proof ID for compliance
  • Full TypeScript: Complete type definitions for all APIs

Modes

Local Mode

No external dependencies. Agent trust is managed in-memory with a simple capability check:

const vorion = new Vorion({ localMode: true });

Remote Mode

Connects to a Cognigate API instance for production governance:

const vorion = new Vorion({
  apiEndpoint: 'https://cognigate.dev',
  apiKey: process.env.VORION_API_KEY,
});

API Reference

Vorion Client

const vorion = new Vorion({
  apiEndpoint?: string,       // Cognigate API URL (enables remote mode)
  apiKey?: string,            // API key (required for remote mode)
  localMode?: boolean,        // Force local mode (default: true if no endpoint)
  defaultObservationTier?: 'BLACK_BOX' | 'GRAY_BOX' | 'WHITE_BOX',
  timeout?: number,           // Request timeout in ms (default: 30000)
});

// Or use the factory
import { createVorion } from '@vorionsys/sdk';
const vorion = createVorion({ localMode: true });

Agent Registration

const agent = await vorion.registerAgent({
  agentId: 'unique-id',
  name: 'Agent Name',
  capabilities: ['read:*', 'write:documents'],
  observationTier: 'GRAY_BOX',  // Optional
  metadata: { version: '1.0' }, // Optional
});

Action Requests

const result = await agent.requestAction({
  type: 'read',
  resource: 'documents/report.pdf',
  parameters: { format: 'json' }, // Optional
});

// result: {
//   allowed: boolean,
//   tier: 'GREEN' | 'YELLOW' | 'RED',
//   reason: string,
//   proofId: string,
//   constraints?: string[],
//   processingTimeMs?: number,  // Remote mode only
// }

Trust Signals

// Report successful action
await agent.reportSuccess('read');

// Report failed action
await agent.reportFailure('write', 'Permission denied by upstream service');

// Get current trust info
const trust = await agent.getTrustInfo();
// { score: 750, tierName: 'Standard', tierNumber: 4, observationTier: 'GRAY_BOX' }

Utilities

vorion.isLocalMode();      // boolean
vorion.getAgent('id');     // Agent | undefined
vorion.getAllAgents();     // Agent[]
await vorion.healthCheck(); // { status, version }

Trust Tiers

Agents start at T3 (Monitored, score 500) in local mode. Trust adjusts based on signals:

| Tier | Score | Name | Constraints | |------|-------|------|-------------| | T0-T1 | 0-349 | Sandbox/Observed | rate_limit:10/min, audit:full, sandbox:true | | T2-T3 | 350-649 | Provisional/Monitored | rate_limit:100/min, audit:standard | | T4-T5 | 650-875 | Standard/Trusted | rate_limit:1000/min, audit:light | | T6-T7 | 876-1000 | Certified/Autonomous | No constraints |

TypeScript

import type {
  VorionConfig,
  AgentOptions,
  ActionResult,
  TrustInfo,
  TrustTier,
  DecisionTier,
  AgentCredentials,
  Action,
  TrustSignal,
} from '@vorionsys/sdk';

License

MIT