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

@owlsdks/owl

v0.2.0

Published

Owl session recording SDK — rrweb-based session replay + product events for Owl insights

Readme

@owlsdks/owl

Owl session recording SDK — rrweb-based session replay + product events, streamed to Owl for automatic friction detection (rage clicks, dead clicks, form errors, stuck states) and insight generation.

  • Ships ESM + CJS builds with type declarations.
  • React bindings under @owlsdks/owl/react (React is an optional peer dependency — only pulled in if you use them).
  • A standalone browser bundle (window.OwlSDK) for <script> / CDN usage.

Installation

npm install @owlsdks/owl
# or
pnpm add @owlsdks/owl
# or
yarn add @owlsdks/owl

You'll need an Owl public key (owl_pk_...), issued per company from the Owl app's "Install Owl SDK" screen.

Quick start (vanilla JS/TS)

import { init } from "@owlsdks/owl";

const owl = init({
  publicKey: "owl_pk_...",
  environment: "prod",
  replay: true, // enable rrweb session replay
  endpoint: "https://your-owl-backend/api/v1/sdk/recordings/ingest",
});

owl.identify({ userId: "u_123", email: "[email protected]" });
owl.track("activation.milestone", { type: "first_value" });

React / Next.js

import { OwlProvider } from "@owlsdks/owl/react";

export function App({ children }: { children: React.ReactNode }) {
  return (
    <OwlProvider
      publicKey="owl_pk_..."
      environment="prod"
      replay
      endpoint="https://your-owl-backend/api/v1/sdk/recordings/ingest"
    >
      {children}
    </OwlProvider>
  );
}
import { useOwl, useOwlTrack } from "@owlsdks/owl/react";

function CheckoutButton() {
  const owl = useOwl();
  const track = useOwlTrack();
  // owl.identify({ userId, accountId }) right after auth resolves
  return <button onClick={() => track("business.event", { name: "checkout" })}>Buy</button>;
}

Script tag (no bundler)

<script src="https://unpkg.com/@owlsdks/owl/dist/owl.min.js"></script>
<script>
  const owl = OwlSDK.init({
    publicKey: "owl_pk_...",
    replay: true,
    endpoint: "https://your-owl-backend/api/v1/sdk/recordings/ingest",
  });
</script>

Configuration

| Option | Type | Default | Description | | --- | --- | --- | --- | | publicKey | string | — | Required. Must start with owl_pk_. | | environment | "dev" \| "staging" \| "prod" | "prod" | Reported with each batch. | | replay | boolean | false | Enable rrweb DOM/session-replay capture. | | endpoint | string | https://api.owla.dev/sdk/recordings/ingest | Replay ingest URL. Point this at your Owl backend (.../api/v1/sdk/recordings/ingest). | | apiBaseUrl | string | https://app.withowl.ai/api/sdk | Product-events base URL. | | debug | boolean | false | Log SDK activity to the console. | | maskAllInputs | boolean | true | Mask all input values in the replay. | | maskTextSelector | string \| null | null | CSS selector for text to mask. | | blockSelector | string | [data-owl-ignore] | CSS selector for elements to omit from the replay. | | sampleRate | number | 1.0 | Fraction of sessions to record (0–1). |

Note: the default endpoint/apiBaseUrl point at Owl-hosted infrastructure. If you run your own Owl backend, set endpoint to https://<your-host>/api/v1/sdk/recordings/ingest, and make sure that backend's CORS allows your site's origin.

Client API

init(config) returns:

  • identify(user){ userId, accountId?, email?, traits? }
  • track(event, properties?) — emit a product event
  • reset() — clear identity and start a fresh session
  • shutdown() — flush and stop recording

License

MIT