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

@proliferate_ai/sdk

v0.2.0

Published

Proliferate Error Monitoring SDK for JavaScript with Session Replay

Readme

@proliferate/sdk

JavaScript SDK for Proliferate Error Monitoring.

Installation

npm install @proliferate/sdk

Quick Start

import Proliferate from '@proliferate/sdk';

// Initialize the SDK
Proliferate.init({
  endpoint: 'https://your-api.com/api/v1/errors',
  apiKey: 'pk_your_api_key',
  environment: 'production',
  release: '1.0.0',
});

// Set user context (optional)
Proliferate.setUser({
  id: 'user_123',
  email: '[email protected]',
});

// Set account context (optional)
Proliferate.setAccount({
  id: 'acct_456',
  name: 'Acme Corp',
});

Automatic Error Capture

After initialization, the SDK automatically captures:

  • Uncaught exceptions (window.onerror)
  • Unhandled promise rejections (window.onunhandledrejection)

Manual Error Capture

// Capture an exception
try {
  riskyOperation();
} catch (error) {
  Proliferate.captureException(error, {
    extra: { orderId: 'order_789' },
  });
}

// Capture a message
Proliferate.captureMessage('User attempted invalid action', {
  level: 'warning',
  extra: { action: 'delete_admin' },
});

API

Proliferate.init(options)

Initialize the SDK.

| Option | Type | Required | Description | |--------|------|----------|-------------| | endpoint | string | Yes | API endpoint URL | | apiKey | string | Yes | Project API key (format: pk_{project_slug}_{random}) | | environment | string | No | Environment name | | release | string | No | Release version |

API Key Notes:

  • API keys are project-scoped. Each project can have multiple API keys.
  • Keys follow the format pk_{project_slug}_{random_hex} (e.g., pk_my-app-default_a1b2c3d4e5f6)
  • Revoked keys will return a 401 Unauthorized error with message "API key has been revoked"
  • You can manage API keys from the dashboard under Project Settings > API Keys

Proliferate.setUser(user)

Set user context for error reports.

Proliferate.setUser({ id: 'user_123', email: '[email protected]' });
Proliferate.setUser(null); // Clear user context

Proliferate.setAccount(account)

Set account context for error reports.

Proliferate.setAccount({ id: 'acct_456', name: 'Acme Corp' });
Proliferate.setAccount(null); // Clear account context

Proliferate.captureException(error, options?)

Manually capture an exception.

Proliferate.captureException(new Error('Something went wrong'), {
  extra: { additionalData: 'value' },
});

Proliferate.captureMessage(message, options?)

Capture a message (not an exception).

Proliferate.captureMessage('Something happened', {
  level: 'warning', // 'error' | 'warning' | 'info'
  extra: { context: 'value' },
});

Browser Support

  • Chrome, Firefox, Safari, Edge (modern versions)
  • Uses fetch with keepalive for reliable delivery
  • Falls back to navigator.sendBeacon if needed