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

devnexus-sdk

v1.1.2

Published

Official SDK for DevNexus Incident Management System

Readme

DevNexus SDK (devnexus-sdk) 🚨

The official lightweight client for reporting errors and incidents to the DevNexus Incident Management System.

NPM Version License: MIT

🚀 Features

  • ⚡ One-liner Setup: Just call DevNexus.init once.
  • 🧩 React Integration: Built-in Error Boundary component for seamless React support.
  • 🛡️ Deduplication: Identical errors within a 60-second window are suppressed.
  • 📦 Offline Support: Queues reports while offline and flushes them when the connection is restored.
  • 📉 Breadcrumbs: Automatically tracks console logs and navigation events for easier debugging.
  • 🔄 Retry with Backoff: Failed reports are retried with exponential backoff.
  • 🌍 Universal: Works in both Browser and Node.js environments.
  • TypeScript First: Full type safety for all configurations and reporting methods.

📦 Installation

npm install devnexus-sdk
# or
yarn add devnexus-sdk
# or
bun add devnexus-sdk

🛠️ Quick Start

1. Initialize the SDK

Initialize the client as early as possible (e.g., index.ts or main.tsx).

import { DevNexus } from 'devnexus-sdk';

DevNexus.init({
  apiKey: 'dn_live_YOUR_API_KEY', // Get this from your Project Dashboard
  autoCapture: true // Default: true
});

2. React Error Boundary

Wrap your application or specific components to catch rendering errors.

import { DevNexusErrorBoundary } from 'devnexus-sdk/react';

function App() {
  return (
    <DevNexusErrorBoundary 
      tags={{ version: "1.0.0" }}
      fallback={({ error, reset }) => (
        <div>
          <h1>Oops! An incident occurred.</h1>
          <button onClick={reset}>Try Again</button>
        </div>
      )}
    >
      <MyAppLogic />
    </DevNexusErrorBoundary>
  );
}

3. Manual Reporting

try {
  throw new Error("Critical payment failure");
} catch (error) {
  DevNexus.captureException(error, {
    severity: 'CRITICAL',
    tags: { feature: 'billing' },
    metadata: { orderId: '12345' }
  });
}

⚙️ Configuration

| Option | Type | Default | Description | | --- | --- | --- | --- | | apiKey | string | — | Required. Your project's API Key. | | baseUrl | string | https://devnexus.vercel.app/api/ingest | The ingest endpoint URL. | | autoCapture | boolean | true | Catch global errors automatically. | | maxRetries | number | 3 | Retries for failed reports. | | beforeSend | function | — | Hook to scrub/modify data before sending. Return null to cancel. | | flushInterval| number | 5000 | How often (ms) to flush the report queue. |

🛠️ Advanced Usage: Breadcrumbs

Manual breadcrumbs help you understand the events leading up to an error.

DevNexus.addBreadcrumb({
  message: 'User added item to cart',
  type: 'manual',
  level: 'info'
});

📄 License

MIT © DevNexus Team