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

@zenith-visuals/hierarchy

v0.1.0

Published

Hierarchy charts (treemap, sunburst, icicle, tidy tree, circle packing) for Zenith Visuals.

Readme

@zenith-visuals/hierarchy

Hierarchical & part-to-whole charts for Zenith Visuals — treemaps, sunbursts, icicle plots, tidy node-link trees and circle packing. Built on the same pure layout engine, theming, tooltip and accessibility primitives as the rest of the SDK, with a dependency-free port of the d3-hierarchy layouts.

Includes: Treemap, Sunburst, Icicle, Tree, CirclePack, RadialTree, Dendrogram, Cluster, MindMap — plus a framework-agnostic layout engine (hierarchy, treemapLayout, partitionLayout, treeLayout, clusterLayout, packLayout, squarify).

Install

pnpm add @zenith-visuals/hierarchy @zenith-visuals/charts @zenith-visuals/core react react-dom

Data shape

Every chart takes a single nested HierarchyDatum. Leaves carry a value; parents sum their children automatically.

const data = {
  name: "root",
  children: [
    { name: "Engineering", children: [
      { name: "Web", value: 8 },
      { name: "Mobile", value: 5 },
    ]},
    { name: "Design", value: 4 },
  ],
};

Usage

Treemap

import { Treemap } from "@zenith-visuals/hierarchy";

<Treemap data={data} padding={2} showLabels />

Sunburst

import { Sunburst } from "@zenith-visuals/hierarchy";

<Sunburst data={data} innerRadius={0.4} />

Icicle

import { Icicle } from "@zenith-visuals/hierarchy";

<Icicle data={data} orientation="vertical" />

Tidy tree

import { Tree } from "@zenith-visuals/hierarchy";

<Tree data={data} orientation="vertical" nodeRadius={5} />

Circle packing

import { CirclePack } from "@zenith-visuals/hierarchy";

<CirclePack data={data} padding={3} />

Radial tree, dendrogram, cluster, mind map

import {
  RadialTree,
  Dendrogram,
  Cluster,
  MindMap,
} from "@zenith-visuals/hierarchy";

<RadialTree data={data} />

<Dendrogram data={data} orientation="horizontal" />

<Cluster data={data} orientation="vertical" />

<MindMap data={data} />

RadialTree maps the tidy tree onto concentric rings, Dendrogram and Cluster share the leaf-aligned clusterLayout (elbow vs curved links), and MindMap uses branch-colored links with pill labels.

Layout engine

The math powering the charts is exported for reuse in your own renderers:

import { hierarchy, treemapLayout, packLayout } from "@zenith-visuals/hierarchy";

const root = hierarchy(data);   // computes value / depth / height
treemapLayout(root, 640, 400);  // assigns x0/y0/x1/y1
packLayout(root, 400, 3);       // assigns x/y/r

Accessibility

Every chart renders an SVG with role="img" and an aria-label (customizable via labels.ariaLabel), per-element <title> tooltips, and honors prefers-reduced-motion.

License

MIT