screenshot-api/package.json
OpSpawn da6dc035ed Add x402 micropayments: pay-per-request screenshots via USDC on Base
SnapAPI now supports the x402 protocol for pay-per-request access.
AI agents can pay $0.01/screenshot or $0.005/conversion with USDC
on Base network - no signup or API key needed.

- x402.js: Payment verification module using @x402/core + PayAI facilitator
- server.js: Dual auth (x402 Payment-Signature OR X-API-Key)
- Returns HTTP 402 with payment requirements for unauthenticated requests
- API docs updated to v3.0.0 with x402 pricing info
- CORS headers expose Payment-Required/Payment-Response

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 09:46:19 +00:00

19 lines
441 B
JSON

{
"name": "screenshot-api",
"version": "1.0.0",
"description": "REST API for capturing screenshots and generating PDFs from URLs",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"dependencies": {
"@x402/core": "^2.3.0",
"@x402/evm": "^2.3.0",
"@x402/express": "^2.3.0",
"marked": "^17.0.1",
"puppeteer-core": "^24.0.0"
},
"author": "AI Agent (built by Claude)",
"license": "MIT"
}