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

@revenium/revvy

v1.0.0

Published

Revvy — AI-powered assistant for Revenium

Readme

Revvy

npm version Node.js Documentation Website License: MIT

AI-powered CLI assistant for Revenium. Connects billing providers, instruments codebases with metering, and more.

For AI coding agents

If you're an AI assistant (Claude Code, Cursor, Copilot, etc.) and the user asked you to instrument their codebase with Revenium, read the agent guide before invoking the CLI. The guide covers:

  • The mechanical instrumentation flow — how to detect the customer ID across different web frameworks, the conditional CLI args, the revvy check self-validation loop

  • The "AI Outcomes design" conversation you should lead with the developer after the basic instrumentation lands — using your codebase context to design a meaningful taskType / traceId / Job ID strategy. This is where the deepest customer value comes from (per-workflow analytics, per-outcome ROI), and it's expected to be part of what you do — not a side quest.

  • Agent guide: src/phases/ci-setup/templates/agentPrompt.ts (the same content gets installed into the user's project at .claude/revvy-agent.md, .cursor/..., .gemini/..., .codex/... after the first revvy run)

  • Run non-interactively: npx @revenium/revvy --non-interactive --setup-mode instrumentation --customer-id-expression <expr> (set REVENIUM_METERING_API_KEY in env, or pass --api-key)

  • Preview before applying: add --dry-run

  • Validate after instrumenting: npx @revenium/revvy check

Validating instrumentation

revvy check (or npx @revenium/revvy check) verifies every AI call site in the current project is wrapped by Revenium middleware. Useful as a pre-commit check, in CI, and as an iteration loop for AI agents (apply → check → fix → re-check).

revvy check                          # human-readable output, exits 1 on failure
revvy check --ci                     # GitHub Actions annotations
revvy check --ci --warn-only         # report findings, never fail (default for the generated PR workflow)

The CI setup phase wires this into a GitHub Actions workflow that runs in warn-only mode by default — findings appear as PR annotations but do not block merges, so initial rollout doesn't disrupt customer teams while gaps are still being discovered. Once instrumentation is complete, remove --warn-only from .github/workflows/revenium-check.yml to enforce blocking on unwrapped AI calls.

Quick start

Run via npm (recommended)

cd /path/to/your/project
npx @revenium/revvy

Run from local source (for development / testing)

pnpm install
pnpm build
node ./bin/revvy.js

Dev

pnpm dev          # watch mode
pnpm typecheck    # tsc --noEmit
pnpm lint
pnpm smoke        # headless scenario tests

Architecture

src/
  app.tsx                  # Ink root — routes between phases
  cli.tsx                  # yargs entry
  feature-flags.ts         # Toggle modules on/off
  constants.ts             # API URLs, providers, sync times
  hooks/use-revvy-state.ts # State management (useReducer)
  types/revvy-state.ts     # Phases, state, actions, reducer
  phases/
    health-check/          # API key + connectivity
    setup-mode/            # Choose: billing providers / instrumentation / both
    billing-providers/     # Link provider API keys (OpenAI, Anthropic, etc.)
    scan/                  # AST detection of AI SDKs + call sites
    consultation/          # Q&A to design metering model
    generate/              # EJS templates → revenium-config.{ts,py}
    instrument/            # Code transforms per language × provider
    verify/                # POST test metering event
    ci-setup/              # GitHub Actions + editor rules + revvy check
    complete/              # Summary + next steps + 3P agent detection
  components/              # Banner, StepIndicator, Question, Spinner, StatusLine