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

@sankofa/browser

v0.2.0

Published

Sankofa Web SDK — privacy-first product analytics, event tracking, and identity for the browser. Self-hosted and open source.

Readme

@sankofa/browser

The core browser SDK for Sankofa. Plugin host for the seven first-class products — Analytics, Catch, Switch, Config, Pulse, Replay (rrweb), Deploy. The browser package ships the core (analytics + identity + module registry + Catch statics); each product is a separate package you install on demand.

Installation

npm install @sankofa/browser

Quick Start

import { Sankofa } from '@sankofa/browser';
import { catchPlugin } from '@sankofa/catch';
import { switchPlugin } from '@sankofa/switch';
import { configPlugin } from '@sankofa/config';

Sankofa.init({
  apiKey: 'YOUR_PROJECT_API_KEY',
  endpoint: 'https://api.sankofa.dev',
  plugins: [
    // Switch + Config register themselves with the cross-module
    // registry — catchPlugin auto-discovers them at capture time
    // so every error carries the active flag + config snapshot.
    switchPlugin({ defaults: { new_checkout: false } }),
    configPlugin({ defaults: { max_uploads_per_day: 25 } }),
    catchPlugin({
      release: process.env.GIT_SHA,
      // Optional Sentry-style hook for PII scrubbing / noise filtering.
      beforeSend: (event) => {
        if (event.message?.includes('ResizeObserver loop limit')) return null;
        return event;
      },
    }),
  ],
});

// Analytics
Sankofa.track('button_clicked', { button_name: 'signup', plan: 'pro' });
Sankofa.identify('user_123');
Sankofa.setPerson({ email: '[email protected]', name: 'John Doe' });

// Catch — Crashlytics + Sentry merged. Statics work from anywhere.
try {
  await chargeCard(amount);
} catch (err) {
  Sankofa.captureException(err);
}

Sankofa.log('checkout: applying coupon SUMMER25');  // Crashlytics-style breadcrumb
Sankofa.withScope((scope) => {
  scope.setTag('checkout_step', 'payment');
  Sankofa.captureException(err);
});

Using via CDN

<script src="https://cdn.jsdelivr.net/npm/@sankofa/browser/dist/sankofa.min.js"></script>
<script>
  Sankofa.init({
    apiKey: 'YOUR_PROJECT_API_KEY',
    endpoint: 'https://api.sankofa.dev',
  });
</script>

Features

  • Analytics — autocapture (page views, clicks, form submissions), identify, peopleSet, offline-first queue.
  • Catch staticsSankofa.captureException / log / withScope / setUser / setTag(s) / setExtra / addBreadcrumb / flushCatch. Routes to whichever Catch plugin is registered via the cross-module registry — no getCatch() boilerplate.
  • Plugin protocolSankofaPlugin + module registry let Switch / Config / Catch / Pulse / Replay / Deploy register themselves and discover each other.
  • Cross-module registryregisterModuleAPI / getModuleAPI exposed for SDK authors who want their own packages to integrate.

What's in the box

| Surface | Description | |---|---| | Sankofa.init(options) | Boot the SDK + every plugin. | | Sankofa.track / identify / setPerson / reset / flush | Analytics. | | Sankofa.captureException / captureMessage / log | Catch capture entry points. | | Sankofa.setUser / setTag(s) / setExtra / addBreadcrumb | Ambient Catch context. | | Sankofa.withScope(fn) | Sentry-style temporary scope overlay. | | Sankofa.flushCatch() | Force-flush Catch events. | | registerModuleAPI / getModuleAPI | Cross-plugin registry — third-party plugins can register a public API. |

Documentation

Full API reference and integration guides: docs.sankofa.dev/sdks/web.

License

MIT