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

@dropfix/cli

v1.0.3

Published

Auto-instrument your app and build an event model with AI

Downloads

534

Readme

@dropfix/cli

One-shot CLI that scans your source code, identifies every interactive element (button, link, form, API call), and uploads a manifest to DropFix so AI can name your events automatically.

Why use this

The browser SDK auto-tracks events at runtime, but event names like clicked_button_a3f9 aren't useful. The CLI lets DropFix's AI read your source code to generate semantic names like invoice_sent, subscription_created, support_ticket_opened — without you writing any tracking code.

Quick start

# One-time scan (no install)
npx @dropfix/cli scan --key pk_live_YOUR_KEY

# Or install locally
npm install --save-dev @dropfix/cli
npx @dropfix/cli scan --key pk_live_YOUR_KEY

The CLI will:

  1. Auto-detect your framework (Next.js, Vite, Vue, Svelte, Angular)
  2. Walk your source files looking for interactive elements
  3. Inject data-df-track attributes inline (commits to your repo)
  4. Upload the manifest to DropFix
  5. Wait ~30 seconds while your events are named
  6. Print a link to review the result at dropfix.in/app-model

Options

npx @dropfix/cli scan --key pk_live_xxx [options]

  --key <pk_live_...>    Your DropFix public key (required)
  --dir <path>           Directory to scan (default: ./src)
  --dry-run              Preview changes without writing files or uploading
  --silent               No console output (for CI)
  --endpoint <url>       Override the API endpoint (for self-hosted)

When to re-run

  • After adding new UI features
  • When you add tracking for a new flow (e.g. a new settings page)
  • The CLI is safe to re-run — identical scans are deduplicated automatically

What gets injected into your source

// Before
<button onClick={sendInvoice}>Send invoice</button>

// After (CLI run)
<button onClick={sendInvoice} data-df-track="invoice_sent">Send invoice</button>

Inline edits make tracking deterministic in production — DropFix's runtime SDK reads the attribute directly.

Safety

  • --dry-run previews every change without writing
  • Skips node_modules, .next, dist, build, .git
  • Only modifies files matching your framework's source pattern (e.g. .tsx for Next.js)
  • Idempotent — re-running on an already-tagged element is a no-op

License

MIT