Example projects
Runnable radius-sdk examples
These examples live in the tools repository under packages/sdk/examples and are maintained with radius-sdk, so they track the current release.
| Example | What it shows | Related docs |
|---|---|---|
worker-seller | A Cloudflare Worker with priced Hono routes | Accept payments |
worker-plain | The same API as a Worker with no framework, using the web-standard handler | Accept payments |
express-seller | The same API on Express through @x402/express | Accept payments |
astro-seller | An Astro API route that validates the article before charging, then delivers it | Content access |
agent-buyer | Node scripts that pay a URL, including from a fresh SBC-only wallet | Make payments |
demo-dapp | Both sides in one Worker: a browser buyer with a burner wallet or MetaMask, and priced routes | Content access |