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

@optizon/charts

v0.4.0

Published

WebGL charts for Optizon UI: presets from bars to treemaps, a field-based data model and a serializable chart spec.

Readme

Optizon Charts

WebGL charts for Optizon UI: bar, line, area, scatter, combo, histogram, box plot, waterfall, bullet, candlestick, pie, ring, heatmap, calendar heatmap, funnel, radar, Sankey, treemap, sunburst, Gantt, packet, Venn and journey charts, sparklines and stat tiles, plus <Chart> for any spec. Charts read your own rows through typed fields, stay keyboard and screen-reader accessible (every chart has a data table), and draw crisply at any device pixel ratio.

Use

Install it next to @optizon/ui and @optizon/tokens, at the same version, with React 19 and Tailwind CSS 4 (4.1.14 or later; ^4.1 installs the newest 4.x release). Keep @tailwindcss/vite on the same version as tailwindcss: its Vite peer range decides which Vite works (Vite 8 needs 4.2.2 or later):

npm install @optizon/[email protected] @optizon/[email protected] @optizon/[email protected] react@^19 react-dom@^19
npm install -D tailwindcss@^4.1 @tailwindcss/vite@^4.1

In your application stylesheet, scan both packages' source (paths are relative to the stylesheet):

@import "@optizon/tokens";
@source "../node_modules/@optizon/ui/src";
@source "../node_modules/@optizon/charts/src";

Without the second @source line, charts render unstyled.

ChartTone uses the shared UI palette: primary, info (sky), success (emerald), warning (amber), and danger (rose). Use tone="info" for an informational series, or seriesStyles[key].tone for an individual series. Reference lines, bands, quadrant tones, and waterfall tones accept the same palette. Colors follow UIProvider theme changes.

import { UIProvider } from "@optizon/ui";
import { BarChart, chartField } from "@optizon/charts";

type Month = { month: string; revenue: number };
const month = chartField<Month>();
const fields = [
  month({ id: "month", label: "Month", type: "ordinal", accessor: (row) => row.month }),
  month({ id: "revenue", label: "Revenue", type: "quantitative", currency: "USD", accessor: (row) => row.revenue }),
];
const rows: Month[] = [{ month: "Jan", revenue: 12400 }, { month: "Feb", revenue: 15100 }, { month: "Mar", revenue: 13900 }];

<UIProvider><BarChart title="Revenue" data={rows} fields={fields} x="month" y="revenue" /></UIProvider>;

Charts render inside UIProvider from @optizon/ui, which sets the theme, locale and time zone. The package is ESM-only, ships compiled JavaScript, TypeScript declarations and source, and has @optizon/ui, @optizon/tokens (same version) and React 19 as peers. Each chart only brings the code it draws with, so importing one preset keeps a bundle small. Licensed under Apache-2.0.

The agent skill for Codex and Claude Code ships in @optizon/ui and covers charts too: npx @optizon/[email protected] install-skill.

Documentation, examples and source: https://github.com/optzn/ui