@faremeter/middleware
v0.15.0
Published
Server middleware for adding payment walls to API endpoints using x402 protocol
Readme
@faremeter/middleware
Server middleware for adding payment walls to API endpoints using the x402 protocol.
Installation
pnpm install @faremeter/middlewareFeatures
- Paywall any endpoint - Add
middlewareto 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
- @faremeter/fetch - Client-side fetch wrapper
- @faremeter/info - Network/asset configuration helpers
- @faremeter/facilitator - Payment facilitator service
License
LGPL-3.0-only
