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

@notmypii/sdk

v0.1.0

Published

NotMyPii age verification SDK — ECG-based, privacy-preserving

Downloads

24

Readme

@notmypii/sdk

Age verification via ECG — no ID, no face scan, nothing stored. Users take a 30-second ECG on Apple Watch; the result is returned as a signed RS256 JWT.

Install

npm install @notmypii/sdk

Get an API key

Sign up at notmypii.com to get your pk_live_... API key.


Server-side usage (Node.js / Edge)

import { NMPClient } from '@notmypii/sdk';

const nmp = new NMPClient({ apiKey: process.env.NMP_API_KEY! });

// 1. Create a session and redirect the user to the App Clip
const session = await nmp.createSession({
  redirectUri: 'https://yoursite.com/callback',
});
res.redirect(session.clipLinkUrl); // no install required

// 2. In your /callback handler — exchange the code for a verified result
const result = await nmp.verify(req.query.code);

if (result.isAdult) {
  // grant access
} else {
  // route to fallback
}

result shape:

{
  isAdult: boolean;           // true when age_class === 'adult' and confidence is high
  payload: {
    age_class: 'adult' | 'not_adult';
    age_verified: boolean;
    confidence: number;       // 0–1
    session_id: string;
    partner: string;
    iat: number;
    exp: number;
  };
  jwt: string;                // raw RS256 JWT — verify independently via /v1/jwks
}

Browser modal (CDN / Vite)

Drop-in modal — no framework required:

import { openVerifyModal, parseCallback } from '@notmypii/sdk';

// Trigger the modal
document.getElementById('verify-btn')!.onclick = () =>
  openVerifyModal({
    apiKey: 'pk_live_...',
    redirectUri: window.location.href,
  });

// On page load — handle the return redirect
const cb = parseCallback();
if (cb) {
  // cb.code is ready to send to your server for exchange
}

React

import { VerifyAgeButton, useNMPVerify } from '@notmypii/sdk/react';
import { useRouter } from 'next/navigation';

// Drop-in button
export default function Page() {
  const router = useRouter();
  return (
    <VerifyAgeButton
      apiKey={process.env.NEXT_PUBLIC_NMP_API_KEY!}
      redirectUri="https://yoursite.com/callback"
      onVerified={(result) => {
        if (result.isAdult) router.push('/protected');
      }}
    />
  );
}

// Or use the hook directly
function AgeGate() {
  const { verify, result, loading, error } = useNMPVerify({
    apiKey: process.env.NEXT_PUBLIC_NMP_API_KEY!,
    redirectUri: 'https://yoursite.com/callback',
    onVerified: (result) => console.log(result.isAdult),
  });

  return <button onClick={verify} disabled={loading}>Verify Age</button>;
}

JWT verification (independent)

// Fetch the public key and verify the JWT offline
const jwks = await nmp.fetchJwks();
// Use a library like `jose` to verify against the JWKS

JWKS endpoint: https://api.notmypii.com/v1/jwks


Next.js App Router example

See examples/nextjs-app-router.ts for a complete server + client integration.


Privacy

ECG signals are processed on-device. The API receives only the classification result and confidence score — no raw waveform data, no personal identifiers.