Get started implementing PEAC Protocol in your project.
Read the full getting started guide on GitHub.
npm install -g @peacprotocol/core
peac.txt
policy file:npx peac init
peac.txt
:npx peac validate peac.txt
peac.txt
to the root of your domain:# 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.