what's Xpack?
Xpack enables npm package authors to monetize their code through direct on-chain payments during installation. Developers add a configuration to their package.json and a preinstall script that integrates with the Xpack API. When users run `npm install`, the script checks for payment requirements; if needed, it triggers an HTTP 402 response with payment details, allowing seamless in-browser payments using USDC on EVM chains via Circle's Gateway or native SUI on the Sui network. This approach bypasses traditional payment processors, backends, or banking infrastructure, providing instant, global revenue to creators. The platform supports flexible pricing models including per-device, per-user, and subscriptions. Wallet connections are handled via Reown AppKit and Wagmi for EVM compatibility, and Mysten’s dapp-kit for Sui. Payments are confirmed on-chain before installation proceeds automatically. Authors manage projects, API keys, pricing, and revenue tracking via a dashboard built with Next.js, React, TypeScript, and Prisma on PostgreSQL. Demo packages like `xpack-arc-gateway` and `xpack-subscription` showcase the functionality in action.
Named finalist in ETHGlobal HackMoney 2026 hackathon, among 10 projects chosen from 620 submissions.