Skip to content

A minimal, open-source starter kit that demonstrates how to implement the x402 Protocol for AI-native micropayments and pay-per-use APIs.

License

Notifications You must be signed in to change notification settings

x402lite/x402Lite-Learning-Kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x402Lite-Learning-Kit

A minimal open-source starter kit showing how to integrate the x402 Protocol into your app to enable AI-native micropayments and autonomous payment flows.


🚀 Features

  • Simple Express.js demo with /api/x402 route
  • Returns valid 402 Payment Required schema
  • Demonstrates how to register your project on x402scan.com
  • Perfect for learning x402 + AI Payment Protocol

🧠 What is x402?

x402 is a modern internet standard that adds native payment support to the web, reviving the original HTTP 402 Payment Required status code.
It allows websites, APIs, and AI agents to charge or pay automatically — no wallets, pop-ups, and or manual confirmations.


🛠️ Setup Instructions

  1. Clone this repo
    git clone https://github.com/x402lite/x402Lite-Learning-Kit.git
    cd x402Lite-Learning-Kit
    
  2. Install dependencies
     npm install
     
  3. Run the server
    npm start
    
  4. Test in browser Visit http://localhost:8080/api/x402 You’ll see a valid 402 Payment Required JSON response.

About

A minimal, open-source starter kit that demonstrates how to implement the x402 Protocol for AI-native micropayments and pay-per-use APIs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published