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

@nvisiondata/sdk-web

v0.0.1

Published

NvisionData browser SDK — cookieless-by-default, consent-aware, ~4 KB gzipped

Readme

@nvisiondata/sdk-web

Browser SDK for NvisionData. Cookieless-by-default, consent-aware. Default bundle (core + 14 auto-collection plugins) is ~8 KB gzipped / 24 KB raw; see Bundle size for how to ship the ~4 KB core-only build. See SPEC.md § 6, § 7 for the underlying data model.

Install

pnpm add @nvisiondata/sdk-web

Or via CDN. Always use defer + a preconnect hint — without those, the script tag is parser-blocking and costs 100–300 ms FCP/LCP on first load. Both fixes are zero-code-change wins:

<link rel="preconnect" href="https://ingest.nvisiondata.com" crossorigin />
<script defer src="https://cdn.nvisiondata.com/sdk-web/v0/nvisiondata.min.js"></script>
<script defer>
  // `defer` scripts execute in document order AFTER HTML parsing
  // finishes, so this inline init runs once the SDK above is ready.
  // (We use `defer` rather than `async` because `async` doesn't
  // preserve order — a `_nvq` queue pattern is on the roadmap for
  // when we want true `async` loading; until then `defer` gives the
  // perf win without that complexity.)
  NvisionData.init({ propertyId: 'prop_1' });
</script>

The preconnect to ingest.nvisiondata.com lets the browser open the DNS + TLS connection in parallel with bundle download, so the first /collect request races the warm path instead of paying it cold.

Bundle size

The default IIFE bundle (core transport + 14 auto-collection plugins) measures ~8 KB gzipped / ~24 KB raw as of v0.1. A core-only build (transport + consent + page_view, no plugins) is on the roadmap and targets ≤4 KB gzipped — track via S5-013 in the analytics-prod prd.

Usage

import { nvisiondata } from '@nvisiondata/sdk-web';

nvisiondata.init({
  propertyId: 'prop_1',
  endpoint: 'https://ingest.nvisiondata.com/collect',
  // Start denied — flip to granted after the CMP runs.
  consent: { analytics_storage: false, ad_storage: false },
});

// Later, after consent:
nvisiondata.setConsent({ analytics_storage: true, ad_storage: true });

// Track:
nvisiondata.track('add_to_cart', { product_id: 'sku_42' }, { category: 'ecommerce' });
nvisiondata.track('purchase', { order_id: 'ord_9001' }, { revenue: 49.99, currency: 'USD' });

Consent semantics

The SDK mirrors Google Consent Mode v2 signals — four booleans, default denied. Events are sent regardless; the server records the consent vector and downstream activation/reporting respects it. That's the difference between "no data" and "no personalized data" — we aim for the latter.

Privacy

  • No canvas / font / audio fingerprinting.
  • No third-party cookies.
  • anon_id lives in localStorage only when analytics_storage is granted. Otherwise the collector derives a daily-rotating pseudonym from (masked_ip, ua_class, date, tenant_salt).
  • Respects DNT and GPC — set respectDoNotTrack: false to override.