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

@noviuz/kyc-js

v2.1.0

Published

The Noviuz Hosted KYC partner SDK. Framework-agnostic, tiny, ships via NPM (ESM/CJS) and CDN (IIFE). Sensitive data never touches the partner side.

Readme

@noviuz/kyc-js

The Noviuz Hosted KYC partner SDK. Framework-agnostic, tiny, ships via NPM (ESM/CJS) and CDN (IIFE). It starts the hosted flow with a server-minted sessionId, passes only non-sensitive context, and surfaces only the authorized result (as a notification — reconcile it server-side before acting).

import { NoviuzKyc } from '@noviuz/kyc-js';

// sessionId comes from YOUR server's mint endpoint — see @noviuz/kyc-server. The browser never
// mints a production session.
NoviuzKyc.open({
  sessionId,
  theme: 'auto',
  onSuccess: (result) => reconcileOnYourServer(result.sessionId), // notification, not a decision
  onError: (error) => console.error(error.code, error.message),
});

CDN:

<script
  src="https://cdn.noviuz.com/kyc/v2/noviuz-kyc.<hash>.js"
  integrity="sha384-<sha384-from-manifest>"
  crossorigin="anonymous"
></script>
<script>NoviuzKyc.open({ sessionId: '<server-minted-session-id>', onSuccess: (r) => console.log(r.status) })</script>

API

| Method | Mode | Returns | | --- | --- | --- | | NoviuzKyc.open(config) | modal overlay | NoviuzKycSession | | NoviuzKyc.mount(container, config) | inline iframe | NoviuzKycSession | | NoviuzKyc.redirect(config) | top-level redirect (needs returnUrl); no callbacks fire in this mode | void | | NoviuzKyc.popup(config) | popup window | NoviuzKycSession | | NoviuzKyc.parseRedirectNotification(search?) | read the non-authoritative notification on the return page | RedirectNotificationV2 \| null |

NoviuzKycSession: .on(event, cb), .off(...), .close(), .destroy(), .updateTheme(input), .updateLocale(locale), .getStatus(), .getSessionId().

Events / callbacks: ready, success, review, error, close, expired, paymentCreated, paymentPending. None of these fire in redirect mode.

Full partner documentation (all modes, config reference, theming, homologation checklist): Integration guide (EN) · Guia de integração (PT-BR).

Config

sessionId is required in production — mint it on your server with @noviuz/kyc-server (or your own client against the API reference) and pass only the opaque id to the browser. Omitting it against any non-local hosted origin throws NoviuzKycError('SESSION_REQUIRED').

Everything else is optional, non-sensitive context: operatorId (optional and non-authoritative once sessionId is present — it's a display hint at most, never authorization), customerType (PF/PJ allowlist), merchantId, orderId, amount, destinationWallet, currency, locale, verification (rail allowlist), theme, primaryColor, appearance, branding, metadata, returnUrl, baseUrl (advanced), closeOnBackdropClick/closeOnEscape, iframeTitle/closeLabel (accessibility text overrides), plus callbacks.

The only exception to "sessionId required" is local/mock development: operatorId + allowClientMintForDevelopment: true + a localhost/127.0.0.1 baseUrl — never valid against a production hosted origin, even with the flag set.

Rejected (throws NoviuzKycError('SENSITIVE_FIELD_REJECTED')): cpf, cnpj, fullName, endUserTaxNumber, bankAccount, pixKey, document, selfie, … and aliases, including inside metadata. See SECURITY.md.

Theming (two tiers)

  • Tier 1 — color: { theme: 'dark', primaryColor: '#0a7' }.
  • Tier 2 — design tokens: { appearance: { variables: { colorPrimary, radiusMd, fontFamily, … } } }.

Every token value is sanitized before it reaches the hosted DOM.

Redirect mode has no callbacks

redirect() navigates the whole page away — there is no live postMessage channel for callbacks to fire over. On the return page, read the non-authoritative notification instead:

const notification = NoviuzKyc.parseRedirectNotification();
// notification = { sessionId, status?, callbackId? } | null — no signature, no euid, no referenceId.

Compare notification.sessionId against the session your server minted, then reconcile via GET /api/v1/kyc/sessions/{sessionId}/result (@noviuz/kyc-server's getResult(sessionId)) — never act on status from the URL alone. See the Integration guide §3.4 for the full pattern.

Builds

  • ESM dist/index.js, CJS dist/index.cjs (zod + @noviuz/kyc-contracts external, deduped by your bundler) — ~8.5KB gzip.
  • IIFE dist/noviuz-kyc.js (self-contained, window.NoviuzKyc) — ~25KB gzip. Load the versioned, content-hashed CDN file (/kyc/v2/noviuz-kyc.<hash>.js) with its SRI hash, not a mutable alias.