Skip to content
LogoLogo

Example projects

Runnable radius-sdk examples

View as Markdown

These examples live in the tools repository under packages/sdk/examples and are maintained with radius-sdk, so they track the current release.

ExampleWhat it showsRelated docs
worker-sellerA Cloudflare Worker with priced Hono routesAccept payments
worker-plainThe same API as a Worker with no framework, using the web-standard handlerAccept payments
express-sellerThe same API on Express through @x402/expressAccept payments
astro-sellerAn Astro API route that validates the article before charging, then delivers itContent access
agent-buyerNode scripts that pay a URL, including from a fresh SBC-only walletMake payments
demo-dappBoth sides in one Worker: a browser buyer with a burner wallet or MetaMask, and priced routesContent access