The first facilitator-agnostic middleware for x402. Open-source infrastructure for the autonomous AI economy.
Status: Pre-alpha. v0.1.3 live on npm.
Interouter sits between Next.js SSR runtimes, blockchain networks, and AI inference systems. A single deterministic API that orchestrates 402 Payment Required (x402 standard) flows while handling runtime compatibility across diverging facilitator implementations (Coinbase CDP, foundation reference, self-hosted).
It is the runtime layer that makes the x402 standard actually work in production.
Built on the x402 standard — under the Linux Foundation, supported by Coinbase, Google, AWS, Stripe, Visa, and Cloudflare.
This is a TypeScript monorepo.
| Package | Description | npm |
|---|---|---|
@decision3/interouter-core |
Core middleware: ChainAdapter lifecycle, router, NEAR + OpenLedger adapters |
npm install @decision3/interouter-coreFor full quick start, see the package README.
- ARCHITECTURE.md — Lifecycle spec, trust model, open blockers
- CLAUDE.md — Project engine: philosophy, protocols, current status
- STRATEGIC_FAQ.md — Positioning and defensibility
- ChainAdapter 5-stage lifecycle
- OpenLedgerAdapter (x402 exact scheme)
- NearAdapter (read-only)
- 33/33 tests passing
- v0.1.3 published to npm
- Cross-facilitator compatibility (v0.2.0)
- Circuit breaker for budget enforcement (v0.3.0)
- NEAR session keys (v0.4.0)
We welcome contributions. Please open an issue or pull request.
MIT © Decision3
Maintained by @victordeflos.