A dashboard for tracking and analyzing x402 protocol micropayment transactions across your applications
payment-insights is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on analytics, dashboard, micropayments, nextjs. It currently has 0 GitHub stars and 0 forks, and sits alongside related tools like CrawlPay, monapi, x402charity.
A powerful dashboard for tracking and analyzing x402 protocol micropayment transactions across your applications.
# Clone the repository
git clone https://github.com/your-org/payment-insights.git
cd payment-insights
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env.local
# Start the development server
npm run dev
Open http://localhost:3000 to view the dashboard.
Create a .env.local file with the following variables:
# API Configuration
NEXT_PUBLIC_API_URL=http://localhost:3000/api
NEXT_PUBLIC_WS_URL=ws://localhost:3001
# Optional: Analytics
NEXT_PUBLIC_ANALYTICS_ENABLED=true
src/
├── app/ # Next.js App Router pages
│ ├── api/ # API routes
│ └── page.tsx # Main dashboard page
├── components/
│ ├── analytics/ # Revenue and metrics components
│ ├── debug/ # Debug console components
│ ├── layout/ # Dashboard layout components
│ └── ui/ # Reusable UI components
├── hooks/ # Custom React hooks
├── lib/
│ ├── analytics/ # Analytics utilities
│ ├── api/ # API client and endpoints
│ ├── debug/ # Debug and error utilities
│ ├── errors/ # Error handling
│ ├── transactions/ # Transaction processing
│ └── utils/ # General utilities
docs/ # Documentation
The main dashboard displays a real-time feed of all x402 transactions. Use the filters to:
For detailed usage instructions, see docs/USAGE.md.
The dashboard exposes several API endpoints for integration:
GET /api/transactions - Fetch transaction historyGET /api/analytics - Retrieve analytics dataGET /api/debug/logs - Access error logsFor complete API documentation, see docs/API.md.
# Run unit tests
npm test
# Run tests with coverage
npm run test:coverage
# Run e2e tests
npm run test:e2e
# Create production build
npm run build
# Start production server
npm start
# Run linter
npm run lint
# Format code
npm run format
# Type check
npm run type-check
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ for the x402 protocol ecosystem
Monetize your site for the AI era. AI bots pay $0.001 USDC per page via Arc Nanopayments.
One-line API monetization for AI agents. Pay-per-request USDC payments via x402. Express, Next.js, MCP.
Automatic micro-donations powered by x402. Drop-in Express/Next.js middleware that sends USDC to charities on every user action. npm install x402charity.
The agent-native LLM router for OpenClaw. 41+ models, <1ms routing, USDC payments on Base & Solana via x402.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.
DePIN for Vintage Hardware — Proof-of-Antiquity blockchain where old machines outmine new ones. AI-powered hardware fingerprinting, 15+ CPU architectures, Solana bridge (wRTC). $0 VC.
🚀 Curated list of x402 resources: HTTP 402 Payment Required protocol for blockchain payments, crypto micropayments, AI agents, API monetization. Includes SDKs (TypeScript, Python, Rust), examples, facilitators (Coinbase, Cloudflare), MCP integration, tutorials. Accept USDC payments with one line of code. Perfect for AI agent economy.
Client SDK for the Vybe x402 API. Pay-per-call USDC over HTTP and prepaid-credit WebSocket streaming for Vybe's Solana analytics API. Built for AI agents.
The neutral micropayment router for autonomous agents. A single HTTP client that intercepts '402 Payment Required', routes across x402, L402, and MPP, persists credentials as recoverable assets, enforces per-envelope budgets, and emits a structured trace.