@brivora/verify
@brivora/verify wraps any AI API call with governance rules and generates a cryptographic proof of compliance. PQC-signed Merkle root. Independently verifiable by anyone. No API call. No account. Pure math.
Install
Section titled “Install”npm install @brivora/verify5-Line Quick Start
Section titled “5-Line Quick Start”import { verify } from '@brivora/verify';
const result = await verify.govern( () => anthropic.messages.create({ model: 'claude-sonnet-4-5-20250929', messages: [{ role: 'user', content: 'Analyze this loan application' }] }), { governance: 'eu-ai-act-v1', audit: true });
console.log(result.output); // The AI responseconsole.log(result.proof); // PQC-signed Merkle rootconsole.log(result.valid); // trueconsole.log(result.report); // Compliance reportconsole.log(result.score); // Fidelity score 0.0-1.0Key Properties
Section titled “Key Properties”- Provider agnostic — Works with Anthropic, OpenAI, Google, Mistral, Ollama, or any function that returns a promise
- Self-contained proofs — A
BrivoraProofcontains everything needed for independent verification - Governance packs are data — Rule definitions, not executable code. Safe by design.
- Zero side effects — No disk writes, no network calls (beyond your AI call), no logging
- Post-quantum signatures — ML-DSA-65 + Ed25519 hybrid via
@brivora/crypto
Requirements
Section titled “Requirements”- Node.js 20+
@brivora/crypto(installed automatically as a dependency)