← all projects

NanoPayAI

@andromedacripto·andromedacripto17·1 followers·added 2026-07-19
0
stars
2.1k
lines
29
files
0
forks
1
followers
languages
TypeScript 99%JavaScript 1%

NanoPay AI charges per question instead of per subscription. Users connect MetaMask, sign a one-time ERC-20 approve, and pay a fraction of a cent in USDC for each AI answer on Arc Testnet. A server-side facilitator wallet in lib/arc/wallet.ts settles the transferFrom and covers gas, while the payment processor in lib/payment/processor.ts verifies the on-chain USDC transfer before any response is generated, tying each transaction hash to a single answer. An analyzer agent in lib/agent/analyzer.ts prices each question and selects the model tier, and answers come from a Groq-backed OpenAI-compatible client in lib/openai/client.ts. The strict-TypeScript Next.js App Router project exposes analyze, chat, payment, and x402 routes under app/api.

events
tags
builder bio

Developer Full Stack Web3

team · solo

1 (Solo) — Landerson Catanhede

on xx/andcrypto23
repo description

AI powered by USDC nanopayments on Arc Network.

last pushed 2026-07-11