Commit Graph

6 Commits

Author SHA1 Message Date
OpSpawn
120f033cf5 v3.2: x402 discovery endpoint, demo client, hackathon prep
- Added /x402 endpoint: machine-readable service catalog for agent discovery
- Added x402-demo-client.mjs: demonstrates full x402 payment flow
- Updated README with three distribution layers and discovery docs
- Service catalog includes pricing, input/output schemas, MCP info, Bazaar reference
2026-02-06 10:57:40 +00:00
OpSpawn
0ddd7f2774 Add MCP server for LLM agent integration
5 tools (capture_screenshot, markdown_to_pdf, markdown_to_image,
markdown_to_html, api_status) + API docs resource. Stdio transport
for Claude Code/Desktop integration. Updated README with MCP setup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 10:36:19 +00:00
OpSpawn
53c890c1f6 x402 v3.1: Add Bazaar discovery extensions for AI agent discoverability
Integrates @x402/extensions/bazaar to enrich 402 responses with
machine-readable input/output schemas. AI agents can now auto-discover
API capabilities, parameter types, and descriptions from the payment
header alone.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 10:17:01 +00:00
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
OpSpawn
9361f9e4e2 Add USDC payment integration (Polygon, direct wallet monitoring)
- payments.js: Invoice creation, blockchain polling, payment matching
- Endpoints: POST /api/subscribe, GET /api/subscribe/:id, GET /api/pricing
- Plans: Pro ($10/mo, 1000 captures), Enterprise ($50/mo, 10000 captures)
- Zero fees: Direct USDC transfer monitoring on Polygon
- Unique cent offsets per invoice for payment reconciliation
- Auto-generates API keys on payment confirmation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 07:49:05 +00:00
OpSpawn
0609754ab3 SnapAPI v2.0: Screenshot and document conversion API 2026-02-06 06:47:04 +00:00