z-purr

This focuses on building/serving paid APIs using x402 v2, with explicit support for both EVM and Solana.

44
14
100% credibility
Found Mar 17, 2026 at 44 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

A starter template for building web services that require small USDC cryptocurrency payments upfront, shown with an AI question-answering example supporting multiple blockchains.

How It Works

1
🔍 Find the paid service builder

You discover this ready-made guide to create your own web service that charges a small fee for helpful answers from an AI.

2
💳 Choose your payment spot

You select a safe digital wallet address where all the tiny payments from users will land.

3
🧠 Hook up the thinking brain

You link a smart AI helper, like one that answers questions, so it powers your service.

4
🚀 Bring it online

You launch everything with a quick start, and your paid service is now live on the web for anyone to try.

5
🧪 Test the magic

You send a sample question, make a practice payment, and watch as it processes and replies perfectly.

🎉 Collect fees happily

Users now pay a little crypto each time for your AI's smart responses, and the money flows straight to your wallet.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 44 to 44 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is x402-api-gateway?

This TypeScript project focuses on building and serving paid APIs using x402 v2, with explicit support for both EVM and Solana networks. It acts as a gateway that intercepts requests, demands small USDC payments like $0.10 via on-chain authorization, verifies them through a facilitator or direct settlement, then proxies to your backend like OpenAI before responding. Developers get a ready-to-run server for monetizing APIs without custom payment plumbing.

Why is it gaining traction?

It stands out by handling x402 payments across EVM testnets/mainnets and Solana devnet/mainnet out of the box, with npm scripts for quick testing, local facilitator setup, and Docker deployment. The hook is plug-and-play: swap in your API logic, tweak env vars for networks/pricing, and test full flows with built-in clients—no need to wire up wallets or chains manually. Public facilitators and direct EVM settlement lower barriers for real-world use.

Who should use this?

API providers charging per-call fees in USDC, like AI inference services or data endpoints. Solana devs building paid RPCs, EVM dApp backends wanting crypto micropayments, or indie hackers testing paid APIs on Base/Polygon without Stripe. Ideal for those evaluating x402 before scaling custom gateways.

Verdict

Solid starter for x402 paid APIs—excellent docs, tests, and multi-chain support make it dev-friendly despite 44 stars and 1.0% credibility score signaling early maturity. Use for prototypes; monitor for production hardening.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.