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/react

v0.15.4

Published

React components for entviz — render and compare high-entropy values as SVG visualizations.

Readme

@entviz/react

npm (@entviz/react) License

React components over @entviz/core: drop a comparable SVG fingerprint of any high-entropy value (key, hash, UUID, address, DID, …) into a web or mobile UI. See the entviz project for what an entviz is, why it exists, and the algorithm spec.

The components, the playground, and this package's source live in the entviz-js repo.

Install

npm install @entviz/react @entviz/core react

Usage

import { Entviz } from "@entviz/react";

function KeyBadge({ value }: { value: string }) {
  return (
    <Entviz
      value={value}
      targetAr={1.5}
      fontSizePt={14}
      note="git"
      title="signing key fingerprint"
      style={{ width: 240 }}
      onError={(msg) => console.warn("entviz:", msg)}
    />
  );
}

The component renders the entviz inline inside a role="img" <span>. The SVG is produced entirely by the certified core renderer (which escapes all text and embeds no caller markup) and carries a viewBox, so it scales to the wrapping element's width. If rendering throws (e.g. an invalid note), onError is called and an empty labelled <span> is rendered instead.

<Entviz /> props

| Prop | Type | Description | |---|---|---| | value | string | The high-entropy value to visualize (required). | | targetAr | number | Target aspect ratio W/H (default 1.0). | | fontSizePt | number | Reference font size in points (default 12). | | note | string \| null | Optional ≤10-char printable-ASCII caption (never hashed). | | className, style | — | Applied to the wrapping <span>. | | title | string | Accessible label (aria-label). | | controls | boolean | Show opt-in size + reshape controls beside the figure (default false). | | onError | (message: string) => void | Called if rendering throws. |

Components

The package exports five components. Entviz is the primitive render; the other four are higher-level flows built on it. All ship as raw .ts source authored with React.createElement, so they carry no JSX-transform requirement onto consumers. Because the package publishes .ts (not compiled JS), bundlers that skip node_modules from TypeScript transpilation (webpack, Next.js) must be told to include @entviz/* — see Bundler configuration.

| Component | What it does | |---|---| | Entviz | Renders a single high-entropy value as an entviz SVG — the thin, deterministic primitive the others build on. | | EntvizPill | The collapsed, inline "pill" form: the value's type shown as a trailing role icon (or text, via typeSignal), a copy menu, a hover value preview, and an expand-to-popover affordance. It reads the structured characterization from the core renderer (not a label string). In the default wild posture it carries no value-derived visual and affords locate / expand / copy — never an equality decision. A host that owns a trusted, single-origin corpus can opt a same-origin value set (via a per-value trust posture) into value-derived recognition aids — a mnemonic, a colorbar leading cap, and a color tint — that make recurrence scannable at a glance; verification still routes through the compare flow. | | EntvizCompare | Helps a human decide whether their value matches a reference, by comparing two entviz visualizations side by side. The reference is acquired by paste / file-pick / drag-drop / URL-fetch and always re-rendered through the pinned font (a pasted SVG is never embedded). | | EntvizWalk | The guided human walk: the user is walked one feature at a time, with a focus ring drawn around the feature on both figures, reporting Matches / Differs — including a transparent planted probe. Yields "no difference found", never a bare identical. | | EntvizVoiceCompare | The remote two-party voice ceremony: one-way authentication on a single device, where the other party reads highlighted glyphs aloud over a trusted voice/video call and the authenticator reports Matches / Doesn't-match cell by cell. |

Each component's TypeScript prop types are documented in the API reference.

Try it live

  • Hosted playground: https://dhh1128.github.io/entviz-js/ — paste a high-entropy value, hit Build, and tweak the props (targetAr, fontSizePt, note, display width) live.

  • Run it locally from the repo root:

    npm install
    npm run dev -w @entviz/playground
    # → http://localhost:5173

Docs

This README is what npm renders on the package page, so it re-publishes with the next version bump — that's fine.

License

Apache-2.0. See also NOTICE.