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

extstat

v0.1.0

Published

Privacy-first, cross-store analytics SDK for browser & IDE extensions.

Downloads

25

Readme

extstat

Privacy-first, cross-store analytics for browser & IDE extensions. One tiny SDK for installs, active users, and custom events — across Chrome, Firefox, Edge (MV3), VS Code, and Figma.

  • Tiny — 2.7 KB minified, ~1.2 KB gzipped. Zero runtime dependencies.
  • Cross-store — one SDK for every extension runtime (chrome.storagelocalStorage → in-memory).
  • Private by design — no personal data, no cookies, no fingerprinting. Honors Do Not Track and a one-line opt-out.
  • Resilient — batches events, persists them offline, retries on failure. MV3 service-worker safe.

Install

npm install extstat

Quickstart

In your extension's background script / service worker:

import { init } from "extstat";

const analytics = init({
  apiKey: "esk_your_project_key", // from your extstat dashboard
  endpoint: "https://ingest.extstat.dev/v1/e",
});

analytics.track("install");
analytics.track("feature_used", { feature: "export" });

Create a project to get your API key and endpoint at the dashboard.

API

init(options): Extstat

Creates and returns a client. (new Extstat(options) works too.)

| Option | Type | Default | Description | | --- | --- | --- | --- | | apiKey | string | — | Required. Your project key. | | endpoint | string | hosted collector | Where events are sent — copy yours from the dashboard. | | disabled | boolean | false | Disable all collection. | | respectDoNotTrack | boolean | true | Collect nothing when the browser sets Do Not Track. | | flushIntervalMs | number | 15000 | How often the queue is flushed. | | maxQueue | number | 20 | Flush early once this many events are buffered. |

analytics.track(name, props?)

Record an event. props is an optional flat object of string | number | boolean | null. Safe to call before the client finishes booting.

analytics.flush()

Send all buffered events immediately (e.g. before teardown).

Privacy

extstat stores only a random, locally-generated client id (not a fingerprint), the event name, optional properties you choose, and a timestamp — no IP addresses, cookies, or cross-site identifiers. It honors Do Not Track, and init({ disabled: true }) opts out entirely. Don't put personal data in event names or properties; you remain the data controller for whatever you send. See the privacy posture.

License

MIT