Skip to main content
It is built on the x402 protocol and the HTTP 402 Payment Required standard.
pnpm add @faremeter/rides
import { payer } from "@faremeter/rides"

await payer.addLocalWallet(process.env.PAYER_KEYPAIR_PATH)
const response = await payer.fetch("https://helius.api.corbits.dev")
Faremeter handles wallet detection, payment negotiation, and settlement transparently. Your code makes HTTP requests. Faremeter handles the payments.

Packages

Faremeter is modular. Use what you need.
PackagePurpose
@faremeter/ridesHigh-level SDK. Three lines to pay for an API.
@faremeter/fetchFetch wrapper with pluggable payment handlers.
@faremeter/middlewareServer middleware for Express and Hono.
@faremeter/payment-solanaSolana payment schemes (SOL, SPL tokens).
@faremeter/payment-evmEVM payment schemes (EIP-3009 gasless USDC).
@faremeter/wallet-*Wallet adapters (keypair, private key, Crossmint, Squads, Ledger).
@faremeter/facilitatorRun your own payment facilitator.
@faremeter/infoNetwork and asset lookups.
@faremeter/typesTypeScript types with runtime validation.

Next steps

Why Faremeter

Design philosophy and motivation.

Quick Start

Make your first payment in three steps.

Concepts

Understand the x402 protocol and payment flow.

Recipes

Complete working examples for common use cases.