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

moula-cli

v0.7.1

Published

Standalone Claude Code CLI sponsored-line client for moula — a small sponsored line on your terminal status bar; you keep 50% of gross. No VS Code required.

Readme

moula-cli

Get paid for your Claude Code CLI status line. moula-cli installs a small sponsored line that renders on the CLI's bottom row (clickable) and in the spinner — you keep 50% of gross. No VS Code required; this is a standalone terminal tool.

It uses only two documented Claude Code settings (statusLine + spinnerVerbs) in ~/.claude/settings.json — it never patches any bundle, and everything is reversible.

Install & set up

# with npx (no install):
npx moula-cli setup

# or install globally, then run:
npm i -g moula-cli
moula setup

By default, setup opens your browser to authorize this device (no copy-paste): it shows a short code, you confirm it while logged in to moula, and the CLI receives its key automatically. Then it installs the integration and fetches your first line.

Prefer to paste the key yourself (from your dashboard → Developer → API key)?

moula setup --paste                      # prompts, hidden input
moula setup --key moula_dev_xxx          # inline (scriptable)
MOULA_API_KEY=moula_dev_xxx moula setup  # env var (CI)
moula login                              # (re)authorize later — browser by default

Then restart any running claude session to pick up the spinner verb (the bottom status line updates live).

Commands

| Command | What it does | | --- | --- | | moula setup | Install the sponsored line (prompts for your key) | | moula update | Pick up a newer client. Refreshes the scripts only — your key, settings and cadence are untouched, and it never re-opens the browser flow | | moula status | Show install state, current ad, and settings | | moula login | Update the stored API key | | moula pause | Stop showing ads and stop earning, keeping the install and your key | | moula resume | Start showing ads again | | moula uninstall | Remove it and restore your previous statusLine/spinner | | moula help / moula version | Help / version |

Options: --key <moula_dev_…>, --base-url <url> (default https://www.moula.io), --poll <minutes> (default 10), --buffer <n> (ads in rotation, default 4), --rotate <seconds> (status-line cycle speed, default 15), --smooth (cycle the status line on a timer even while idle).

Rotation (multiple ads, no extra billing)

Each fetch serves one ad (one impression) and appends it to a rolling buffer of the last --buffer ads. The spinner then rotates through all of them (Claude cycles the spinnerVerbs array), and the status line cycles through them over time (--rotate seconds each) — clickable, opening whichever ad is currently shown. Because the buffer only holds ads that were already served, re-displaying them costs nothing: billing stays at ~one impression per --poll interval. When no sponsor is available and the buffer drains, the spinner returns to Claude's defaults automatically.

How it works

Installed under ~/.claude/:

| File | Role | | --- | --- | | moula-config.json | { apiBaseUrl, apiKey, pollMinutes, paused } — locked to your user (chmod 600 + icacls on Windows) | | moula-statusline.js | Renderer Claude runs each status tick. Instant — prints the cached ad (clickable OSC 8), and only when stale spawns a detached refresh. Never blocks on the network. | | moula-refresh.js | Background fetcher — POSTs to /api/v1/ad-serve with your key, writes the cache + spinner verb. This is the only place an impression bills — at most once per pollMinutes, lock-guarded. | | moula-ads.json | Rolling buffer of the last N served ads (for rotation). | | moula-attest.json | Display-time ledger. The renderer adds the real gap between consecutive status ticks that showed an ad (each gap capped at 60 s, so an idle terminal isn't counted); the fetcher flushes it to /api/v1/attention. An impression earns nothing until this is reported — the server prices it only for dwell it can verify against its own clock. | | moula-ad.lock | Single-flight guard. | | moula-cli.json | Sidecar snapshotting your prior statusLine + spinnerVerbs for exact restore. |

  • Clickable link lives on the statusLine bottom row (OSC 8 — Ctrl/Cmd+Click in most terminals). The spinner verb is plain text (no link hook exists for it).
  • Between ads the status line falls back to a compact model + dir line.
  • The developer API key is stored in moula-config.json (locked to your user) — the standard way CLIs store tokens; it's revocable. moula uninstall deletes it.

Requirements

  • Node.js ≥ 18 (for global fetch) — the same runtime Claude Code uses.
  • Claude Code with statusLine support (any recent build).

Privacy / safety

No files belonging to Claude Code or any other tool are modified — only your own ~/.claude/settings.json (merged, other keys preserved) and the moula-* files above. Removing them (or moula uninstall) fully reverts the integration.