New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@openrng/core

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openrng/core

VEO-2 types, schema, and shared primitives for OpenRNG

latest
Source
npmnpm
Version
1.3.2
Version published
Maintainers
1
Created
Source

@openrng/core

VEO-2 types, schema, and shared primitives for the OpenRNG ecosystem.

VEO = Verifiable Execution Object — a standard format for recording, proving, and explaining AI decisions.

Install

npm install @openrng/core

Quick Start

import { createVEO, validateVEO, createVEOHash } from '@openrng/core';

// Create a VEO for an AI execution
const veo = createVEO({
  provider_id: 'my-service',
  execution: {
    prompt_hash: 'sha256-of-prompt',
    output_hash: 'sha256-of-output',
    model_id: 'gpt-4o',
    latency_ms: 412,
    cost: { total_tokens: 1500, cost_usd: 0.003 },
  },
  confidence: { score: 850, grade: 'AA' },
});

// Validate
const { valid, errors } = validateVEO(veo);

// Hash (for anchoring)
const hash = createVEOHash(veo);

Object Classes

ClassNameUse Case
VEO-2ARaw ExecutionSingle AI call (chat, completion, inference)
VEO-2BComposite ExecutionMulti-step chains, agent pipelines
VEO-2CAnchored ExecutionWith blockchain proof / Merkle anchor
VEO-2DGoverned ExecutionWith policy assertions, human approvals

VEO Lifecycle

created → signed → anchored → indexed → verified

Full Spec

  • RFC-0002: VEO-2
  • JSON Schema
  • Example VEO objects
PackagePurpose
@openrng/coreTypes, schema, validation (this package)
@openrng/verifyVerify any VEO object
@openrng/autoAuto-instrument AI SDK calls

License

MIT — OpenRNG

Keywords

openrng

FAQs

Package last updated on 01 Aug 2026

Related posts