Automated EPUB structural preflight

Automated screen for one base64-encoded EPUB, maximum 4 MiB. It checks ZIP structure, the EPUB mimetype and container, package manifest resource references, spine references, and basic title/identifier/navigation metadata.

Price: $0.05 USDC per call on Base via x402.

Send a POST request to /audit with JSON containing an epub_base64 string. An unpaid request should return HTTP 402 payment details; use an x402-compatible client to pay and retry.

Example

curl -X POST 'https://YOUR-DEPLOYED-HOST/audit' \
  -H 'Content-Type: application/json' \
  -d '{"epub_base64":"BASE64_ENCODED_EPUB"}'

Limits and caveats

Independent service; not affiliated with EPUB or any retailer.