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

@entviz/core

v0.15.4

Published

Visualize high-entropy values as comparable SVG diagrams (entviz, spec v15) — certified against the entviz conformance corpus.

Readme

@entviz/core

npm (@entviz/core) node-current (@entviz/core) types included License

TypeScript implementation of entviz (spec v15) — turn a high-entropy value (cryptographic key, hash, signature, UUID, blockchain address, post-quantum key, …) into a comparable SVG diagram so a human can decide at a glance whether two values are the same or different.

Pure TypeScript and isomorphic — runs in Node and the browser. Its only runtime dependency is the audited, zero-transitive-dependency @noble/hashes (SHA-512 + Keccak-256); no node:crypto/node:fs/Buffer, so it bundles cleanly for the web (this is what backs @entviz/react). Runs under Node's native type-stripping (Node ≥ 22.6) — the package ships raw .ts, no build step. Vite, Vitest, Bun, and Deno consume it as-is; bundlers that skip node_modules from TypeScript transpilation (webpack, Next.js) must be told to include @entviz/core — see Bundler configuration. Fully certified against the shared entviz conformance corpus (Tier A render model

  • Tier B canonical raster), no skip list.

Install

npm install @entviz/core

Usage

import { render } from "@entviz/core";

// render(value, options?) -> SVG string
const svg = render("550e8400-e29b-41d4-a716-446655440000");

const svg2 = render("0123456789abcdef0123456789abcdef", {
  targetAr: 2.0,    // target aspect ratio W/H (default 1.0)
  fontSizePt: 16,   // reference font size in points (default 12)
  note: "git",      // optional ≤10-char printable-ASCII caption (never hashed)
});

The returned string is a self-contained <svg> with a viewBox (so it scales responsively) and data-* attributes describing every channel. Inputs over 512 bits take the large-input path (head + fingerprint-middle + tail). Invalid input — a bad note, an out-of-range font size or aspect ratio, or an input past the 64 KiB anti-DoS cap — throws.

Using React? See @entviz/react for a thin <Entviz value="…" /> wrapper.

What it draws

Each entviz encodes its value in several redundant channels — verbatim text cells (lossless for ≤512-bit inputs), a fingerprint-driven surround pattern, nucleus colors, a color bar, an ellipse overlay, blank-cell positions, and quartile marks — so a one-character difference is obvious to a casual glance while careful spot-checks stay possible. The algorithm and its guarantees are defined in the spec.

Conformance & scope

SPEC_VERSION is stamped on every render (data-entviz-version). The complete parser dispatch is ported: hex/multihash, UUID (dashed/undashed/nil/max), Ethereum (EIP-55), CESR, SSH keys, Bitcoin / Litecoin / Bitcoin Cash / Ripple / Cardano / Stellar / EOS addresses, bech32 (SegWit + Cosmos), DID (W3C DID Core) and URN (RFC 8141) prefix-fold, SWHID, gitoid, LEI, Snowflake, ULID, IPFS CID (v0/v1), base32/base58/base64url, and the UTF-8→base64url fallback, plus the note / font-size error handling and the >512-bit large-input branch (head

  • Crockford-base32 fingerprint-middle + tail). Fully certified — 90/90 Tier A + 83/83 Tier B, no skip list. See CERTIFICATION.md.

License

Apache-2.0. See also NOTICE.