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

@synapxlab/tracking-npm

v2.1.4

Published

🛰️ Lightweight usage ping — 1 exécution max par package_key et par page

Readme

🛰️ @synapxlab/tracking-npm

npm version License: MIT

Track the real-world usage of your NPM package in production. Complete list of domains using your package.

📦 Installation

1️⃣ Get your installation key

  1. Log in to https://synapx.fr/OAuth/ via GitHub (free & quick)
  2. In the "Tracking NPM" section, add your npm package name
  3. Copy the generated JS code with your key (64 hexadecimal characters)

2️⃣ JS code and installation key available to copy/paste

npm install --save-dev typescript @types/node
npm install @synapxlab/tracking-npm

3️⃣ Paste into your library

Example output:

import { trackingnpm } from '@synapxlab/tracking-npm';

trackingnpm.init({
  package_key: 'YOUR_64_CHAR_KEY_HERE', // generated on synapx.fr
  version: '1.0.0'
});

Advanced configuration

trackingnpm.init({
  package_key: 'your-64-char-key',
  version: '1.0.0',
  DELAY_MS: 15000,  // Wait 15 seconds instead of 10
  CHANCE: 0.05      // 5% probability instead of 1%
});

📝 Documentation to add to your README

Inform your users that you use this tracker:

## Tracking
This package integrates @synapxlab/tracking-npm to collect 
anonymous statistics about `your package name`.

✨ How does it work?

  • ⏱️ Delayed execution: Waits 10 seconds before executing
  • 🎯 Idle detection: Uses requestIdleCallback (1s fallback)
  • 📊 Probabilistic sampling: 1% execution chance by default (configurable)
  • 🪶 Zero dependencies: Lightweight and standalone 1kb
  • 🔒 Privacy-focused: Only tracks package version and domain
  • ⚡ Non-blocking: Never impacts your application performance
  • ⚡ Tracking: Sends a lightweight POST to https://npm.synapx.fr < 20ms

What is tracked:

  • ✅ Domain name (host)

What is NOT tracked:

  • ❌ No personal data
  • ❌ No user information
  • ❌ No browsing history
  • ❌ No sensitive data

🔒 Privacy and security

  • ✅ CORS-enabled endpoint
  • ✅ No cookies
  • ✅ No localStorage
  • ✅ Open source
  • ✅ Minimal data collection
  • ✅ Respects user privacy

📊 View your statistics

  1. Log in to https://synapx.fr
  2. Access your dashboard
  3. View your package statistics:
    • 📈 Number of installations
    • 🌍 Domains using your package and the production version

📦 Download

File name : PakageName.json

{
  "package": "@synapxlab/cookie-consent",
  "sk_live": "8c0cf425d8bf3a7a5591d41916ba4357bf5f48d6ea5fe9e5e5c6ab98eb7cec7c",
  "total_hosts": 2,
  "hosts": [
    {
      "host": "example.com",
      "version": "2.1.3",
      "last_ping": "2025-10-27 09:12:00",
      "total_pings": 5
    },
    {
      "host": "another-site.fr",
      "version": "2.1.3",
      "last_ping": "2025-10-27 09:12:00",
      "total_pings": 15
    }
  ]
}

The fields last_ping and total_pings are essential for intelligently adjusting the ping frequency on the client side (scale, delay, etc.). L’objectif est d’obtenir une configuration stable avec environ The goal is to achieve a stable configuration with about one ping per week per domain — enough to ensure reliable statistics without creating unnecessary load.

⏳ Data is automatically deleted after 90 days to comply with data minimization principles and GDPR requirements.

❓ FAQ

Does tracking slow down my application?

No!

  • Waits 10 seconds before executing
  • Executes during browser idle time
  • Only executes in 1% of cases
  • Fails silently without impacting your code

Should my users be informed?

Yes! For transparency, mention the use of the tracker in your README.

Is it compatible with all frameworks?

Yes!

  • ✅ React / Next.js / Remix
  • ✅ Vue / Nuxt
  • ✅ Angular
  • ✅ Svelte / SvelteKit
  • ✅ Vanilla JavaScript
  • ✅ Node.js (with fallback)

How much does it cost?

It's free! 🎉

🔧 Support

Documentation

📄 License

MIT © Synapx Lab