Skip to content
GitHat

Starters

Small Next.js apps where sign-in, payments and pay-per-call already work. Clone one, add your keys, and build your product on top. MIT licensed: you own every line.

Web2

Products people sign in to with Google.

  • Sign in with Google: no SDK, no database, a signed session cookie
  • Card payments to your own Stripe account through SebasTN: you write no payment code
  • Pay per call (x402 v2): an agent or any x402 client pays USDC per request, settled only after your route answers
npx degit GitHat-IO/githat-starter-web2 my-app
cd my-app && npm install
GitHat-IO/githat-starter-web2 on GitHub

Web3

Apps where people use their own wallet.

  • Sign in with Ethereum (EIP-4361), smart-contract wallets too
  • Wallet payments in USDC through Access0x1, one transaction to your payout address
  • Card payments through SebasTN
  • Pay per call (x402 v2)
npx degit GitHat-IO/githat-starter-web3 my-app
cd my-app && npm install
GitHat-IO/githat-starter-web3 on GitHub

Pay per call, explained

x402 lets a program pay for a request the way a person pays for a page. Your route answers 402 Payment Required with a price; the caller signs a USDC payment and sends the request again; the payment settles only after your route has answered. Agents can pay you with nothing but a wallet. Each starter has one paid route, /api/x402/hello, and runs on Base Sepolia (a test network) until you switch it to Base.

Where it runs

On your own cloud account, wherever you deploy a Next.js app. GitHat never hosts your app on its servers.