Skip to content

Sell training crawlers a day pass on /crawl (x402-gateway 0.11) - #323

Merged
ralyodio merged 1 commit into
masterfrom
feat/crawl-gateway
Oct 21, 2026
Merged

ralyodio merged 1 commit into
masterfrom
feat/crawl-gateway

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor
  • New optional config.crawl from COINPAY_X402_KEY + CRAWL_PAY_TO (both or nothing; self-hosted boards without them never sell).
  • createApp mounts the @profullstack/x402-gateway 0.11 Hono adapter first, before withViewer (no DB query for a refused crawler: agenticjobs.work saw ~53k crawler requests in the last day) and before the security headers (their form-action would block the /crawl/checkout redirect to CoinPay).
  • Training crawlers, headless browsers, SEO scrapers: 402 with PAYMENT-REQUIRED, $1/day offer (USDC Base/Polygon/Ethereum), Buy a day pass checkout. Browsers, verified Googlebot/Bingbot, AI chat/search fetchers and aj_session holders untouched; /api/health, /llms.txt, /.well-known/ open.
  • Deps: @profullstack/x402-gateway ^0.11.0 (pnpm also moved @profullstack/footer latest 0.2.1 -> 0.2.5).
  • Prod: scoped "x402 crawl passes" key on the agenticjobs.work CoinPay business (vault agenticjobs--prod + dev2 app.env).
  • Tests: test/crawl-gateway.test.ts; full suite 890 pass, 1 skip.

🤖 Generated with Claude Code

…y 0.11)

The crawl gateway runs first when COINPAY_X402_KEY and CRAWL_PAY_TO are
set: GPTBot, ClaudeBot, headless and SEO scrapers get a 402 with
PAYMENT-REQUIRED and the /crawl sales page (x402 USDC or the CoinPay Buy
a day pass checkout) before the board spends a query on them. People,
verified search crawlers, AI chat/search fetchers and aj_session holders
pass through; /api/health stays open. A board without the two settings
never sells.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​profullstack/​footer@​0.2.1 ⏵ 0.2.578 +4100100 +194 +5100
Added@​profullstack/​x402-gateway@​0.11.08810010096100

View full report

@ralyodio
ralyodio merged commit 38e42ab into master Oct 21, 2026
4 checks passed
@ralyodio
ralyodio deleted the feat/crawl-gateway branch October 21, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant