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

tigr-js

v0.2.1

Published

tigr analytics SDK for any website — plain JS, drop-in <script> tag or npm, with auto-capture of user behaviour.

Readme

tigr-js

The plain-JavaScript tigr analytics SDK for any website — static HTML, server-rendered, jQuery, whatever. Same auto-capture core as tigr-react / tigr-vue, but with zero build step on the host site.

Install — the one-liner (plain HTML)

Drop this in your <head>, before your own scripts:

<script src="/tigr.js" data-api-key="tigr_pk_live_your_key"></script>

That's it. On load it auto-starts and begins capturing pageviews, rage clicks, scroll depth, errors and page-leaves. No other code needed.

Manual events

The SDK is on window.tigr:

<script>
  window.tigr.setUser('user_123', { name: 'Ada', plan: 'pro' })
  window.tigr.track('signup_completed', { plan: 'pro' })
  // on logout:
  window.tigr.reset()
</script>

Load tigr.js before any inline script that calls window.tigr, so the global exists when your code runs. (A plain <script src> in <head> runs synchronously — no defer needed.)

Script-tag options (data-*)

| Attribute | Effect | | ------------------- | -------------------------------------------------------- | | data-api-key | Required to auto-start. Your project API key. | | data-host | Override the ingestion host (default: tigr's CDN). | | data-auto-capture | "false" to disable all automatic capture. | | data-dev-mode | "true" to make the SDK a full no-op (local dev). | | data-debug | "true" to log events + flushes to the console. |

Install — as a module (bundlers / npm)

import { tigr } from 'tigr-js'

tigr.initialize('tigr_pk_live_...')
tigr.setUser('user_123', { name: 'Ada' })
tigr.track('signup_completed', { plan: 'pro' })

For advanced use (multiple clients, custom config) the core is exported too: import { createTigr, TigrClient } from 'tigr-js'.

Build

npm install
npm run build

Outputs to dist/:

  • index.js / index.cjs / index.d.ts — the npm package
  • tigr.js — the standalone browser build for the <script> tag