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

create-spheavy-app

v0.1.0

Published

Scaffold a Next.js app that takes mobile-money payments with SP-Heavy

Readme

create-spheavy-app

Scaffold a Next.js app that takes MTN MoMo and Orange Money payments.

npx create-spheavy-app my-shop
cd my-shop
npm install
npm run dev

Open http://localhost:3000 and pay with 237670000000.

It asks for your sandbox keys as it goes, or writes placeholders into .env.local for you to fill in. Get them at spheavy.com → API Keys → Generate key.

Pass --yes to skip the prompts.

What you get

A working checkout, not a skeleton:

  • a payment form that starts a real sandbox collection,
  • a webhook route that verifies signatures, rejects replays, and deduplicates,
  • an order record that is fulfilled exactly once, whether the webhook or the poll gets there first,
  • npm run verify — an audit that posts forged, stale, wrong-secret and tampered deliveries at your own endpoint and fails if any is accepted,
  • an API client in one dependency-free file you can read in a sitting.

The parts that are wrong for production are marked as wrong, in the file, with the reason. There is exactly one: the in-memory order store.

Why the audit matters

A webhook handler that you wrote and tested yourself always passes, because you generate the signature you also verify. npm run verify generates signatures you don't control. A handler that accepts one of those lets anyone on the internet claim to have paid you — and that bug never shows up in normal use, only on the day someone looks for it.

Not using Next.js?

The same integration in plain Node, Express, and other stacks: https://spheavy.com/llms-full.txt — every code block there is executed against the sandbox by CI, so none of it is aspirational.

License

MIT © Yukwa Industries