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

v0.1.3

Published

Lightweight geo-visualization components for Zenith Visuals.

Readme

@zenith-visuals/maps

Lightweight, dependency-free geo-visualization components for Zenith Visuals — GeoScatter, Choropleth, ConnectionMap, BubbleMap, GeoHeatmap, Cartogram, HexbinMap and TileGridMap. No tile server or GeoJSON loader required.

Part of Zenith Visuals — the ultimate React visualization SDK. TypeScript-first, tree-shakeable, SSR-safe and accessible.

Install

npm install @zenith-visuals/maps

Requires react (>=18) as a peer dependency where applicable.

Usage

GeoScatter

import { GeoScatter, type GeoPoint } from "@zenith-visuals/maps";

const cities: GeoPoint[] = [
  { lat: 40.71, lon: -74.0, value: 120, label: "New York" },
  { lat: 51.51, lon: -0.13, value: 90, label: "London" },
  { lat: 35.68, lon: 139.69, value: 150, label: "Tokyo" },
];

<GeoScatter data={cities} projection="mercator" showGraticule />;

Marker size and color encode value. Choose projection ("mercator" or "equirectangular"); no GeoJSON required. The projection helpers projectMercator, projectEquirectangular and getProjection are exported.

Choropleth

import { Choropleth } from "@zenith-visuals/maps";

<Choropleth
  regions={[
    { id: "a", label: "Region A", value: 42, rings: [[{ lat, lon }, /* … */]] },
  ]}
/>;

Fills your own lon/lat polygon rings by value using the theme's sequential ramp, with an auto-fit transform and a color legend.

ConnectionMap

import { ConnectionMap } from "@zenith-visuals/maps";

<ConnectionMap
  points={cities.map((c, i) => ({ ...c, id: String(i) }))}
  connections={[{ source: "0", target: "1", value: 8 }]}
/>;

Draws curved arcs between geographic points; arc width encodes value.

More maps

  • BubbleMap — proportional-symbol map; circles anchored to coordinates and sized by value with perceptual area (√) scaling, fitted to the data bounds.
  • GeoHeatmap — Gaussian kernel-density raster over projected points (densityGrid helper), colored by the sequential ramp.
  • Cartogram — non-contiguous cartogram; each region polygon is scaled about its centroid so its area ∝ value (polygonCentroid / scaleRingAround).
  • HexbinMap — aggregates projected points into a hexagonal lattice (hexbin / hexagonPath), colored by count or summed value.
  • TileGridMap — grid cartogram; every region is an equal-size square placed on a fixed row/column lattice (tileGridExtent), colored by value.
import { BubbleMap, GeoHeatmap, Cartogram, HexbinMap, TileGridMap } from "@zenith-visuals/maps";

<BubbleMap data={[{ lat: 35.68, lon: 139.69, value: 37_400_000, label: "Tokyo" }]} />;
<HexbinMap data={cities} radius={18} />;
<TileGridMap data={[{ id: "CA", row: 2, col: 0, value: 39 }]} />;

Shared pure helpers (computeFit, hexbin, hexagonPath, densityGrid, polygonCentroid, scaleRingAround, tileGridExtent, boundsOf) are exported.

Wrap component trees in <ThemeProvider> from @zenith-visuals/core to enable theming and dark mode.

Documentation

See the main README for the full API, theming and more examples.

License

MIT