The x402Lite Payment Widget is a lightweight, open-source demo that lets developers embed micro-transaction payments into any website or app using the x402 Protocol (HTTP 402) and ERC-8004 payment standard. It enables instant, wallet-free payments (e.g., 0.01 USDC per request) for APIs, AI agents, or digital services.
x402Lite-Payment-Widget is an early-stage JavaScript project in the AI payments / x402 ecosystem. It currently has 0 GitHub stars and 0 forks.
This open-source demo shows how to embed micro-transaction payments in any app or website using the x402 Protocol (HTTP 402 standard) and ERC-8004 payment schema.
402 Payment Required flowgit clone https://github.com/x402lite/x402Lite-Payment-Widget.git
cd x402Lite-Payment-Widget
index.html in your browser or deploy on Replit, Vercel, or any static host.script.js:const API_URL = "https://api.x402lite.com/x402";
{
"x402Version": 1,
"resource": "https://api.x402lite.com/x402",
"asset": "USDC",
"amount": "0.01",
"description": "Access premium feature",
"status": "402 Payment Required"
}
MIT License © 2025 x402Lite — Open Source for AI + Payments
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
A payments protocol for the internet. Built on HTTP.
A local-first AI agent with persistent memory, emotional intelligence, and a peer-to-peer skills economy.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.
Self-healing infrastructure for AI agent payments. 90.3% auto-recovery.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.