Axo MPPX
Use @axobot/mppx for Lightning-native MPP charge and session flows with provider adapters.
@axobot/mppx is Axo's Lightning-native implementation layer for MPP. It is protocol-compatible, Axo-maintained, and provider-agnostic at the interface layer, with a first-party provider adapter.
Repository
Source, protocol primitives, and the engineering contract.
NPM Package
Install the Lightning-native MPP primitives directly.
Install
npm install @axobot/mppxWhat It Provides
- Payment-auth header encoding and parsing for MPP
- Lightning
chargehelpers - Lightning
sessionhelpers - invoice + preimage oriented session lifecycle
- optional
returnLightningAddressAxo extension in addition to spec-nativereturnInvoice - provider adapter boundary
- first-party provider adapter
Package Shape
import {
parsePaymentAuthenticateHeader,
encodePaymentRequest,
encodePaymentCredential,
openLightningSession,
bearerLightningSession,
topUpLightningSession,
closeLightningSession,
createZbdLightningAdapter,
} from "@axobot/mppx";Session Model
The first Axo implementation follows the public Lightning MPP drafts:
depositInvoicefor opening a sessionpreimageas the bearer secrettopUpwith a fresh invoice and preimageclosewith refund to either:returnInvoicereturnLightningAddressas an Axo extension
How It Fits The Stack
@axobot/fetchuses it for MPP client flows@axobot/payuses it for charge and session middlewareaxouses it foraxo session ...axo.botstores managed session lifecycle per agent
Info
Axo does not treat MPP as a Spark-only product surface. @axobot/mppx is the Axo-owned Lightning-native implementation layer.