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

@nexussdk/sdk

v0.0.4

Published

Unified umbrella SDK for Nexus Platform — feature flags + error tracking + React hooks

Readme

@nexussdk/sdk

The official umbrella client SDK for the Nexus Platform — high-performance feature flags, error telemetry, and React hooks with zero runtime bloat (<8KB gzipped).

npm version License: MIT


Features

  • 🚩 Feature Flags & Remote Config: Deterministic Murmur3 hashing, ABAC evaluation rules, and real-time SSE streaming updates.
  • Error Telemetry & Monitoring: Automatic uncaught exception catching, unhandled promise rejection tracking, and regex-based PII scrubbing.
  • ⚛️ First-Class React 19 Support: Idiomatic hooks (useFlag, useNexus) and NexusProvider context wrapper.
  • 🪶 Ultra Lightweight: Zero heavy dependencies, tree-shakeable, and sub-8KB gzipped footprint.
  • 🔒 Type Safe: Strict TypeScript contracts and autocomplete out of the box.

Installation

# npm
npm install @nexussdk/sdk

# pnpm
pnpm add @nexussdk/sdk

# yarn
yarn add @nexussdk/sdk

Quick Start (Vanilla / Node / Browser)

import { createNexus } from '@nexussdk/sdk';

const nexus = createNexus({
  clientKey: 'pk_live_your_client_key',
  baseUrl: 'https://api.nexusplatform.io',
  environment: 'production',
  user: {
    id: 'usr_123',
    email: '[email protected]',
    role: 'premium',
  },
});

// 1. Evaluate feature flag
const isNewCheckout = await nexus.flags.isEnabled('new-checkout-flow', false);
if (isNewCheckout) {
  // Render new checkout
}

// 2. Capture error with breadcrumbs
try {
  // your app logic
} catch (error) {
  nexus.tracker.captureException(error, {
    tags: { module: 'checkout' },
  });
}

React Integration

Wrap your application in NexusProvider:

import React from 'react';
import { NexusProvider, useFlag, useNexus } from '@nexussdk/sdk/react';

function App() {
  return (
    <NexusProvider
      config={{
        clientKey: 'pk_live_your_client_key',
        baseUrl: 'https://api.nexusplatform.io',
      }}
    >
      <CheckoutPage />
    </NexusProvider>
  );
}

function CheckoutPage() {
  const isV2Enabled = useFlag('v2-checkout-button', false);
  const nexus = useNexus();

  const handleCheckout = () => {
    nexus.tracker.addBreadcrumb('Clicked checkout', 'ui');
    // Proceed to checkout
  };

  return (
    <button onClick={handleCheckout}>
      {isV2Enabled ? 'Express Checkout' : 'Standard Checkout'}
    </button>
  );
}

Vue 3 & Nuxt 4 Integration

Install NexusPlugin and use the <NexusGuard> error boundary component:

// main.ts
import { createApp } from 'vue';
import { NexusPlugin } from '@nexussdk/sdk/vue';
import App from './App.vue';

const app = createApp(App);
app.use(NexusPlugin, {
  apiKey: 'pk_live_your_client_key',
  environment: 'production',
  autoCapture: true,
  realtime: true,
});
app.mount('#app');
<!-- App.vue -->
<script setup lang="ts">
import { useFeatureFlag, NexusGuard } from '@nexussdk/sdk/vue';

const { isEnabled } = useFeatureFlag('new-checkout-flow', false);
</script>

<template>
  <NexusGuard>
    <button v-if="isEnabled">1-Click Express Checkout</button>
    <button v-else>Standard Checkout</button>
  </NexusGuard>
</template>

Architecture & Subpackages

@nexussdk/sdk bundles the following specialized modules for maximum modularity:

| Package | Role | |---|---| | @nexussdk/contracts | SSOT TypeScript types and RFC 7807 error models | | @nexussdk/core | Ring buffer transport kernel and environment resolvers | | @nexussdk/flags | Standalone feature flag evaluator, local dev server (nexus-flags-dev) & SSE manager | | @nexussdk/tracker | Standalone error tracker, local dev server (nexus-dev) & PII sanitizer |


License

MIT © Nexus Platform