PEAC protocol

PEAC Protocol – Implementation

Get started implementing PEAC Protocol in your project.
Read the full getting started guide on GitHub.

Quickstart

npm install -g @peacprotocol/core
npx peac init
npx peac validate peac.txt
# Example:
# https://yourdomain.com/peac.txt

const { Parser } = require('@peacprotocol/core');
const policy = await Parser.parse('example.com');
if (policy.requiresPayment('ai_training')) {
  // Handle payment
}
      

For full integration details, best practices, and troubleshooting, see the GitHub guide.