npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@frames-ag/payment-tempo

v0.0.1

Published

MPP Tempo charge client for Faremeter — wraps mppx into a faremeter MPPPaymentHandler so @faremeter/fetch.wrap auto-handles tempo.charge 402s

Readme

payment-tempo

MPP Tempo charge client for Faremeter — wraps mppx into a faremeter MPPPaymentHandler so @faremeter/fetch's wrap() can auto-handle tempo.charge 402s alongside x402.

Architecturally analogous to @faremeter/payment-solana/charge but for Tempo (Stripe's L2). All the actual signing and transaction building is done by mppx — this package is a ~80 LOC adapter between two type vocabularies.

Why

Faremeter's MPP support today ships only the Solana flavor (createMPPSolanaChargeClient). Most real-world MPP services on the wire (Frames Registry, mpp.dev's Firecrawl, Brave Search, etc.) advertise method="tempo" and were unpayable through faremeter alone. This package closes that gap.

Install

bun add @frames-ag/payment-tempo @faremeter/fetch viem mppx

Use

import { wrap } from "@faremeter/fetch";
import { createMPPTempoChargeClient } from "@frames-ag/payment-tempo";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.TEMPO_PRIVATE_KEY as `0x${string}`);

const fetchPaid = wrap(fetch, {
  handlers: [],
  mppHandlers: [createMPPTempoChargeClient({ account })],
});

const res = await fetchPaid("https://api.firecrawl.dev/v1/scrape", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ url: "https://example.com" }),
});
// On 402 with WWW-Authenticate: Payment, this handler signs a Tempo
// USDC transfer via mppx, attaches the credential, and retries.

Stack with x402 handlers; faremeter routes per challenge:

const fetchPaid = wrap(fetch, {
  handlers: [
    createPaymentHandler(evmWallet),         // x402 EVM
    createPaymentHandler(solanaWallet, mint) // x402 Solana
  ],
  mppHandlers: [
    createMPPTempoChargeClient({ account }),  // MPP Tempo charge
    createMPPSolanaChargeClient({ wallet, mint }), // MPP Solana charge
  ],
});

API

createMPPTempoChargeClient(args)

Returns an MPPPaymentHandler that accepts tempo.charge challenges.

| Arg | Type | Description | |---|---|---| | account | viem.Account | viem account (any LocalAccount, e.g. from privateKeyToAccount) | | mode? | "push" \| "pull" | Override transaction submission mode. Defaults to push for JSON-RPC accounts, pull for local accounts | | clientId? | string | Client identifier baked into attribution memos |

Returns null for any challenge whose method !== "tempo" or intent !== "charge". faremeter's fetch wrap then tries the next handler.

Status

  • ✅ Structural smoke passes (bun smoke) — null cases, valid challenges, malformed requests all routed correctly
  • ⏳ End-to-end Tempo Devnet smoke pending a public Devnet MPP seller
  • ⏳ End-to-end Tempo Mainnet smoke pending a funded Tempo wallet (Stripe-side bridge flow)

Roadmap to upstreaming

This package is built faremeter-shaped on purpose so it can be upstreamed as packages/payment-tempo/charge (or similar) in faremeter/faremeter. Steps:

  1. Validate against a real Tempo charge endpoint
  2. Mirror exact code style of payment-solana/charge
  3. Open PR

Until then it lives standalone under @frames-ag/payment-tempo.

Reference material