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

affitor

v0.2.0

Published

CLI-native affiliate tracking. Connect Stripe, track commissions, manage partners — all from your terminal.

Readme

affitor

CLI-native affiliate tracking. Connect Stripe, track commissions, manage partners -- all from your terminal.

Quick Start

# Create your affiliate program
npx affitor init

# Connect Stripe for automatic payment tracking
npx affitor setup stripe

# Check program health
npx affitor status

# Send test events
npx affitor test click
npx affitor test lead
npx affitor test sale

Commands

| Command | Description | |---|---| | affitor init | Create a new affiliate program. Interactive prompts or --no-interactive with flags. | | affitor setup stripe | Connect Stripe via OAuth. Auto-configures webhooks for payment tracking. | | affitor setup dns | Set up DNS CNAME tracking (coming soon). | | affitor status | Show program health: DNS, Stripe connection, recent events. | | affitor test [type] | Send a test event (click, lead, or sale). |

Global Flags

| Flag | Description | |---|---| | --json | Output as JSON (for AI agents and scripts) | | --no-interactive | Skip all prompts, fail on missing values | | --auto-confirm | Auto-yes to confirmation prompts | | --quiet | Suppress non-essential output | | --api-key <key> | Override API key from config | | --api-url <url> | Override API URL | | --verbose | Debug output |

Non-Interactive Mode (for AI Agents)

npx affitor init \
  --name "My SaaS" \
  --domain "example.com" \
  --commission-type recurring_percent \
  --commission-rate 20 \
  --duration-months 12 \
  --cookie-duration 90 \
  --no-interactive \
  --json

What Gets Created

Running npx affitor init creates:

.affitor/
  config.json     -- program configuration
  .env.example    -- environment variables template
  skills.md       -- AI agent instructions

Stripe Auto-Connect

npx affitor setup stripe automates the entire Stripe integration:

  1. Opens Stripe Connect OAuth in your browser
  2. Creates webhook endpoint on your Stripe account
  3. Configures event listeners for:
    • customer.created -- lead tracking
    • checkout.session.completed -- sale tracking
    • invoice.paid -- recurring commissions
    • invoice.payment_failed -- failed payment alerts
    • charge.refunded -- automatic commission clawback
    • customer.subscription.deleted -- churn tracking

Requirements

  • Node.js >= 18
  • Stripe account (for setup stripe)

License

MIT