Pay x402 gateways when the crawler meets one - #177
Merged
Merged
Conversation
The poller's feed fetch and the reader's page probe now go through a paidFetch: with X402_PRIVATE_KEY set, a 402 carrying an x402 offer is signed with the shared crawler wallet, the pass is filed by origin and presented on every later request to that site, so a gated site costs a dollar a day instead of being silently empty. Without the key it is the global fetch, unchanged. Capped at five dollars a payment. The key is read through a non-literal accessor because Next inlines process.env at build. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NSGS7Sy3QmEgTNZDg4eq7g
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
…e gateway is Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NSGS7Sy3QmEgTNZDg4eq7g
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wires @profullstack/x402-client into the feed fetch and the reader's page probe. Env-gated on X402_PRIVATE_KEY (already set on both Railway services), $5 cap per payment, plain fetch when unset. Feed tests 344/344.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NSGS7Sy3QmEgTNZDg4eq7g