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

vectorpin

v0.2.0

Published

Verifiable integrity for AI embedding stores. TypeScript reference implementation.

Readme

vectorpin (TypeScript)

TypeScript / JavaScript reference implementation of VectorPin, byte-for-byte compatible with the Python and Rust ports.

npm install vectorpin
import { Signer, Verifier, pinToJSON } from 'vectorpin';

// At ingestion time
const signer = Signer.generate('prod-2026-05');
const embedding = new Float32Array(/* ... 3072 floats from your model ... */);
const pin = await signer.pin({
  source: 'The quick brown fox.',
  model: 'text-embedding-3-large',
  vector: embedding,
});
// Store JSON.stringify-able pin alongside the embedding in your vector DB metadata.
const json = pinToJSON(pin);

// At read/audit time
const verifier = new Verifier({ [signer.keyId]: await signer.publicKeyBytes() });
const result = await verifier.verify(pin, {
  source: 'The quick brown fox.',
  vector: embedding,
});
if (!result.ok) {
  throw new Error(`integrity failure: ${result.error} - ${result.detail}`);
}

Compatibility

This is protocol v2. The TypeScript port consumes the same testvectors/v2.json and testvectors/negative_v2.json fixtures the Python and Rust ports use in CI. A pin produced by any of the three implementations verifies on the other two; canonical bytes and signatures are identical byte-for-byte. v1 pins do not verify under the default verifier; use LegacyV1Verifier if you need to validate pre-v2 pins during a migration.

Runtime support

  • Node.js 20+ (uses Buffer.from(s, 'base64url') and globalThis.crypto.getRandomValues).
  • The crypto path is pure JavaScript via @noble/ed25519 and @noble/hashes, so it also works in Deno, Bun, and Cloudflare Workers. Replace the Buffer.from('base64url') calls if you target a runtime without Buffer.

Build & test

npm install
npm run typecheck   # tsc --noEmit
npm test            # node:test via tsx
npm run build       # emit dist/

License

Apache 2.0. See ../LICENSE.