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

@spatika/charts

v2.3.0

Published

Spatika UI — production SVG charts (theme tokens, composition, zoom, export). Optional add-on to @spatika/react.

Readme

@spatika/charts

Production SVG charts for Spatika UI. Install this package when an app needs plots; skip it when you only need chrome and forms from @spatika/react.

Docs: spatika.sweyam.com · Charts catalog: BarChart

Peer of Recharts in spirit (declarative React + SVG) with Spatika tokens, overlay tooltips, and extra types (candlestick, waterfall, sankey, maps, 3D).

Install

npm install @spatika/charts @spatika/tokens

Peer dependencies: react and react-dom (^18 or ^19).

Charts read theme CSS variables (--spk-viz-1--spk-viz-8, exposed as --chart-1 …, plus overlay tooltip surfaces). Import tokens once at the app root:

import "@spatika/tokens/styles.css";
import { BarChart } from "@spatika/charts";

<BarChart
  height={240}
  xAxis={[{ data: ["Jan", "Feb", "Mar"] }]}
  series={[{ label: "Views", data: [420, 380, 510] }]}
/>

@spatika/react re-exports the same components for existing apps. New chart-only projects should import from @spatika/charts.

Compared with Recharts

| Capability | Recharts | @spatika/charts | |---|---|---| | Cartesian (bar, line, area, scatter, composed) | Yes | Yes — plus box plot, waterfall, candlestick, OHLC, range, sparkline | | Polar (pie, radar, radial bar) | Yes | Yes — plus polar line, gauge | | Flow (funnel, treemap, sankey) | Yes | Yes — plus chord, pyramid, sunburst, heatmap | | Composition (XAxis / Tooltip children) | Primary API | ChartContainer + BarPlot / LinePlot / ChartsXAxis | | ResponsiveContainer | Yes | Yes (fillHeight or ResponsiveContainer) | | syncId linked hover | Yes | Yes | | Brush / zoom / pan | Brush | Brush, wheel zoom, pan, toolbar export | | Reference line / area / dot | Yes | Yes | | Error bars | Yes | Yes (series.error) | | Stack offset (expand 100%) | Yes | Yes (stackOffset="expand") | | Shared tooltip + cursor | Yes | Yes | | Theme design tokens | Manual hex | CSS variables, four Spatika themes | | Maps, WebGL scatter, isometric 3D | No | Yes |

Quick composition

import {
  BarPlot,
  ChartContainer,
  ChartSurface,
  ChartsCursor,
  ChartsGrid,
  ChartsReferenceArea,
  ChartsReferenceLine,
  ChartsXAxis,
  ChartsYAxis,
  LinePlot,
} from "@spatika/charts";

<ChartContainer
  height={280}
  zoom
  showToolbar
  syncId="traffic"
  sharedTooltip
  dataset={[
    { month: "Jan", views: 420, conv: 12 },
    { month: "Feb", views: 380, conv: 18 },
  ]}
  xAxis={[{ dataKey: "month" }]}
  series={[
    { type: "bar", dataKey: "views", label: "Views" },
    { type: "line", dataKey: "conv", label: "Conversion" },
  ]}
  referenceLines={[{ y: 400, label: "Goal" }]}
>
  <ChartSurface>
    <ChartsGrid />
    <ChartsReferenceArea />
    <BarPlot />
    <LinePlot />
    <ChartsCursor />
    <ChartsXAxis />
    <ChartsYAxis />
    <ChartsReferenceLine />
  </ChartSurface>
</ChartContainer>

License

MIT