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

clintplay-sdk

v0.7.0

Published

Clintplay - Session replay, error tracking, and automatic Playwright test generation

Readme

clintplay-sdk

Browser SDK for Clintplay — session replay, error tracking, network and console capture, rage-click detection, and Core Web Vitals — wired into a single small script that runs in your users' browsers.

npm install clintplay-sdk

Quick start

Bundled (Vite, webpack, Next.js, etc.)

import Clintplay from 'clintplay-sdk';

Clintplay.init({
  projectId: 'gp_xxxxxxxxxxxxxxxxxxxxxxxx', // from your project's API key page
  apiUrl: 'https://your-clintplay-domain.com/v1',
});

Drop-in script tag

<script src="https://your-clintplay-domain.com/sdk.js"></script>
<script>
  Clintplay.init({
    projectId: 'gp_xxxxxxxxxxxxxxxxxxxxxxxx',
    apiUrl: 'https://your-clintplay-domain.com/v1',
  });
</script>

The IIFE bundle (dist/index.global.js) exposes a global Clintplay.

API

Clintplay.init(config);              // start recording
Clintplay.identify(userId, traits?); // attach a user to the current session
Clintplay.tag(tag, data?);           // emit a custom tag (e.g. "checkout-failed")
Clintplay.setMetadata(metadata);     // attach arbitrary metadata to the session
Clintplay.stop();                    // stop recording + flush

Configuration

All fields beyond projectId are optional.

| Field | Default | Purpose | |---|---|---| | projectId | — | Required. Must start with gp_. | | apiUrl | — | Your Clintplay API base URL (https://…/v1). | | maskAllInputs | false | Mask every <input> value before sending. | | maskInputSelector | — | CSS selector for inputs to mask. | | blockSelector | — | CSS selector for elements to fully exclude from the replay. | | ignoreSelector | — | CSS selector for elements to ignore in interaction events. | | recordNetwork | true | Capture fetch / XHR request + response metadata. | | recordConsole | true | Capture console.log/warn/error calls. | | trackPerformance | true | Capture Core Web Vitals (LCP, CLS, INP, FCP, TTFB). | | trackRageClicks | true | Detect repeated clicks on the same element. | | trackNavigation | true | Track pushState / popstate URL changes. | | networkSanitize | — | { denyHeaders, denyBodyUrls } — strip sensitive fields from captured network calls. | | flushIntervalMs | 5000 | How often to flush buffered events. Clamped to a minimum of 1000. | | flushMaxBytes | 512000 | Max payload size before forcing a flush. | | compressEvents | true | gzip the payload before sending. |

Privacy controls

  • Mask sensitive inputs: maskAllInputs: true, or scope it with maskInputSelector. Password fields and credit card / SSN / phone / email input types are masked unconditionally.
  • Block whole elements from the replay: blockSelector: '.do-not-record'. The element is excluded from DOM snapshots and mutation events.
  • Strip request bodies for specific endpoints: networkSanitize.denyBodyUrls: ['/api/auth/']. Headers are stripped via denyHeaders.
  • Self-ingest endpoints are auto-skipped — calls to your own apiUrl aren't captured (otherwise the recorder would record itself sending events).

License

MIT — see LICENSE.