Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

@faremeter/middleware

Server middleware for adding payment walls to API endpoints using the x402 protocol.

Installation

pnpm install @faremeter/middleware

Features

  • Paywall any endpoint - Add middleware to any route
  • Framework agnostic - Express, Hono, or custom
  • Multi-chain support - Solana, EVM, extensible
  • Fast validation - Payment requirements caching
  • Facilitator integration - Handles settlement verification

API Reference

Examples

See working examples in the faremeter repository:

Related Packages

License

LGPL-3.0-only