Skip to main content
Version: v0.16.4

Installation

Install the packages you need based on your integration. All packages are published on npm under the @peac scope.

Prerequisites
  • Node.js >= 22.13.0 -- check with node --version
  • npm, yarn, or pnpm package manager

Core protocol​

The main package for receipt issuance and verification. This is the starting point for most integrations.

Terminal
npm install @peac/protocol

This gives you the high-level API: issue(), verifyLocal(), schema validation, and all kernel types. The Interaction Record format supports structured kinds, typed extensions, and policy binding.


Express middleware​

Add automatic receipt issuance to any Express.js application.

Terminal
npm install @peac/protocol @peac/middleware-express

One middleware call attaches a signed PEAC-Receipt header to every response.


MCP server​

Expose PEAC receipt operations to AI agents via Model Context Protocol. Five tools: verify, inspect, decode, issue, and bundle.

Terminal
npm install @peac/mcp-server

Payment rails​

Attach payment evidence from your payment processor to PEAC receipts.

x402 (Coinbase)​

Terminal
npm install @peac/protocol @peac/rails-x402

Stripe​

Terminal
npm install @peac/protocol @peac/rails-stripe

Card networks​

Terminal
npm install @peac/protocol @peac/rails-card

HTTP 402 (generic multi-rail)​

Terminal
npm install @peac/protocol @peac/adapter-x402

x402 ecosystem adapters​

Normalize events from x402 ecosystem platforms into PEAC receipts.

Terminal
# Daydreams AI inference events
npm install @peac/adapter-x402-daydreams

# Fluora MCP marketplace events
npm install @peac/adapter-x402-fluora

# Pinata private IPFS object events
npm install @peac/adapter-x402-pinata

Agent protocol mappings​

Map metadata from agent communication protocols into PEAC receipt evidence.

MCP (Model Context Protocol)​

Terminal
npm install @peac/protocol @peac/mappings-mcp

ACP (Agentic Commerce Protocol)​

Terminal
npm install @peac/protocol @peac/mappings-acp

TAP (Visa Trusted Agent Protocol)​

Terminal
npm install @peac/protocol @peac/mappings-tap

UCP (Google Universal Commerce Protocol)​

Terminal
npm install @peac/protocol @peac/mappings-ucp

RSL (Robots Specification Layer)​

Terminal
npm install @peac/protocol @peac/mappings-rsl

AIPREF (IETF AI Preferences)​

Terminal
npm install @peac/protocol @peac/mappings-aipref

A2A (Agent-to-Agent Protocol)​

Terminal
npm install @peac/protocol @peac/mappings-a2a

Content signals​

Observe content use policy signals from robots.txt, AIPREF headers, and tdmrep.json. Observation-only: records signals, never enforces them.

Terminal
npm install @peac/mappings-content-signals

Inference evidence​

Hash-first interaction evidence for OpenAI-compatible chat completion APIs. Records SHA-256 digests of prompts and outputs; no raw text stored.

Terminal
npm install @peac/adapter-openai-compatible

OpenClaw capture​

Capture interaction evidence using the OpenClaw adapter with spool store and deduplication.

Terminal
npm install @peac/adapter-openclaw @peac/capture-core

For file-system-backed durable stores (spool + deduplication index):

Terminal
npm install @peac/adapter-openclaw @peac/capture-core @peac/capture-node

Full package reference​

36 packages published on npm, plus additional workspace-private packages. Dependencies flow down only -- higher layers depend on lower layers, never the reverse.

Layer 0 -- Kernel​

PackagePurpose
@peac/kernelNormative constants, error codes, and registry types

Layer 1 -- Schema​

PackagePurpose
@peac/schemaZod schemas, JSON schemas, OpenAPI specs, and TypeScript types

Layer 2 -- Crypto​

PackagePurpose
@peac/cryptoEd25519 JWS signing and verification

Layer 3 -- Protocol​

PackagePurpose
@peac/protocolHigh-level issuance and verification API
@peac/controlPolicy evaluation and access control engine
@peac/contractsCanonical error codes and verification mode contracts
@peac/receiptsReceipt builders, parsers, and validators with CBOR support
@peac/capture-coreSpool store and deduplication primitives
@peac/capture-nodeFile-system-backed durable stores (Node.js)
@peac/attributionContent derivation and usage proof attestation
@peac/auditAudit logging and case bundle generation for disputes
@peac/policy-kitDeterministic policy evaluation and peac.txt parsing
@peac/net-nodeSSRF-safe network utilities with DNS pinning (Node.js)
@peac/jwks-cacheEdge-safe JWKS fetch and cache with SSRF protection
@peac/http-signaturesRFC 9421 HTTP Message Signatures parsing and verification

Layer 3.5 -- Middleware​

PackagePurpose
@peac/middleware-coreFramework-agnostic middleware primitives
@peac/middleware-expressExpress.js middleware for automatic receipt issuance

Layer 4 -- Adapters and mappings​

PackagePurpose
@peac/rails-x402x402 payment evidence adapter (Coinbase)
@peac/rails-stripeStripe payment evidence adapter
@peac/rails-cardCard network evidence adapter (Flowglad, Stripe Billing, Lago)
@peac/adapter-x402x402 evidence adapter with four-layer architecture
@peac/adapter-coreShared utilities for payment rail adapters
@peac/adapter-runtime-governanceGeneric runtime governance evidence adapter (AGT as first mapper)
@peac/adapter-managed-agentsClaude Managed Agents session evidence adapter
@peac/adapter-diddid:key and did:web resolution with caching
@peac/adapter-x402-daydreamsDaydreams AI inference event normalizer
@peac/adapter-x402-fluoraFluora MCP marketplace event normalizer
@peac/adapter-x402-pinataPinata private IPFS object event normalizer
@peac/adapter-openclawOpenClaw capture adapter
@peac/adapter-openai-compatibleHash-first inference evidence for OpenAI-compatible APIs
@peac/transport-grpcgRPC carrier adapter (8 KiB metadata default)
@peac/mappings-mcpMCP tool call evidence mapping
@peac/mappings-acpACP interaction evidence mapping
@peac/mappings-tapVisa Trusted Agent Protocol mapping
@peac/mappings-ucpGoogle Universal Commerce Protocol mapping
@peac/mappings-rslRobots Specification Layer mapping
@peac/mappings-a2aA2A interaction evidence mapping (v1.0.0 required)
@peac/mappings-aiprefIETF AIPREF vocabulary mapping
@peac/mappings-paymentauthHTTP Payment authentication challenge and receipt mapping
@peac/mappings-content-signalsContent use policy signal observation
@peac/mappings-intotoin-toto v1.0 provenance mapping
@peac/mappings-slsaSLSA v1.2 provenance mapping

Layer 5 -- Applications​

PackagePurpose
@peac/mcp-serverMCP server with 5 verification and issuance tools
@peac/serverVerification server with DoS protection and rate limiting
@peac/cliCommand-line tools (peac keygen, peac verify, peac doctor, etc.)

Telemetry​

PackagePurpose
@peac/telemetryTelemetry interfaces and no-op implementation
@peac/telemetry-otelOpenTelemetry adapter for PEAC telemetry

Edge workers​

PackagePurpose
@peac/worker-coreRuntime-neutral TAP verification handler for edge platforms

Start here

If you're not sure which packages you need, start with @peac/protocol. It re-exports the kernel, schema, and crypto layers -- everything you need to issue and verify receipts.

Next steps​