Skip to main content
Version: v0.10.13

Installation

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

Prerequisites
  • Node.js >= 22.0.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: issueReceipt(), verifyReceipt(), schema validation, and all kernel types.


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/pay402

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 (Agent Communication 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

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

22 packages published on npm, plus additional workspace 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 for CAL semantics
@peac/discLightweight discovery with 20-line enforcement
@peac/prefAIPREF resolver with robots.txt bridge
@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
@peac/coreDeprecated -- use @peac/kernel, @peac/schema, @peac/crypto

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/pay402Generic HTTP 402 adapter with multi-rail negotiation
@peac/adapter-coreShared utilities for payment rail adapters
@peac/adapter-x402x402 evidence adapter
@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/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-aiprefIETF AIPREF vocabulary 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, etc.)

Layer 6 -- Consumer SDK

PackagePurpose
@peac/sdkClient SDK with discover and verify functions

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