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

@logclip/tracker

v0.12.0

Published

LogClip capture SDK — privacy-first DOM, console, network, error & web-vitals recording.

Readme

@logclip/tracker

The LogClip capture SDK. A tiny, privacy-first script that records DOM (rrweb), console, network, errors, and web vitals, then ships them in masked, gzipped batches. No tagging required.

Install

Script tag (no build):

<script
  src="https://cdn.logclip.com/logclip.global.js"
  data-logclip-key="pk_live_xxx"
  data-logclip-endpoint="https://in.yourapp.com"></script>

That exposes window.LogClip for identify() / track() / setConsent(). Pin a version for production — [email protected] is served immutable, while the unversioned alias is short-cached and moves with each release.

Other data- attributes: mask-inputs, require-consent, auto-start, trace-propagation, trace-hosts, metadata. To host the file yourself, take dist/logclip.global.js from the package.

npm:

npm install @logclip/tracker
import { LogClip } from '@logclip/tracker';
LogClip.init({ siteKey: 'pk_live_xxx', endpoint: 'https://in.yourapp.com' });

Obsrviq is exported as an alias of LogClip and still works.

API

LogClip.init(config);                 // see config below
LogClip.identify(userId, traits?);    // raw userId (searchable) + SHA-256 hash; retro-stamps
LogClip.setMetadata({ plan: 'pro' }); // merge searchable session properties anytime
LogClip.reset();                      // forget identity on logout → fresh anonymous session
LogClip.track('event', { conversion: true });
LogClip.setConsent(true | false);     // gate recording (PRIV-2)
LogClip.stop();                       // hard stop + flush
LogClip.getDiagnostics();             // { recording, sessionId, flushes, bytesSent, … }

Config

| Option | Default | Notes | |---|---|---| | siteKey | — | Required. The pk_ ingest key. | | endpoint | https://app.logclip.com | Your ingest URL. Pass your own if self-hosting. | | maskAllInputs | true | Never record input values. | | maskTextSelector | — | Mask text inside matching nodes. | | blockSelector | .logclip-block, .obsrviq-block | Never record these nodes. | | captureNetworkBodies | false | Opt-in, masked, size-capped. | | redactHeaders | authorization, cookie, set-cookie | Redacted in captured headers. | | requireConsent | false | If true, nothing records until setConsent(true). | | sampleRate | 1.0 | 0..1 fraction of sessions to record. | | flushIntervalMs | 5000 | Batch flush cadence. | | beforeSend | — | Last-chance redaction; return null to drop. |

Behavior

  • Consent & privacy: with a consent gate and consent withheld, zero network calls leave the page (honors Global Privacy Control / DNT).
  • Transport: gzipped via fflate, sent with sendBeacon (or fetch keepalive) on a timer, on visibilitychange=hidden, and on pagehide.
  • Capture: rrweb for DOM (periodic full snapshots for progressive replay); custom interceptors for fetch / XHR / PerformanceObserver / sendBeacon; console hooks; window.onerror + onunhandledrejection; web vitals; rage/dead click detection.

Full guide: https://logclip.com/docs.