What problem does it solve? Monetizing Next.js API routes and pages requires integrating payment verification, settlement, and HTTP 402 responses, which is complex to implement correctly from scratch. This Skill provides two ready-made integration patterns for adding Algorand-based payment protection to Next.js App Router projects. ## Core Features & Use Cases - Proxy Pattern via middleware.ts: Centrally protect multiple API routes with paymentProxy or paymentProxyFromConfig, including wildcard route patterns and paywall UI for browser requests. - Route Handler Wrapper via withX402: Protect individual endpoints with per-route pricing, where payment settles only when the handler returns a status below 400. - Multi-network and token support: Accept payments on Algorand testnet and mainnet, in ALGO or USDC, and even cross-chain with EVM networks. - Use Case: Build an API that charges $0.01 per weather query and $1.00 per AI generation request, with a free health-check endpoint, all configured in a single middleware.ts file. ## Quick Start Ask the AI to create a Next.js app with x402 payment protection on the /api/weather route charging $0.01 in ALGO on Algorand testnet.