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

orbcharts

v4.0.3

Published

OrbCharts is a data-driven Javascript chart library

Readme

OrbCharts

OrbCharts logo

OrbCharts is a data-driven JavaScript chart library. One data format for every chart — data is decoupled from rendering, so you can switch how the same data is visualized at any time. Built for dashboards.

Official Website | Documentation

Note: v4 is a major redesign of OrbCharts. The API differs significantly from v3.x — see the migration guide if you are upgrading.

Features

(1) One data format for every chart

In OrbCharts, every chart reads the same data format — a plain array of objects. You don't reshape your data one way for a bar chart and another way for a pie chart. Define your data once and declare field mappings with Encoding. The data layer stays clean and simple: what you maintain is the data itself, not a chart-specific format.

(2) Data and rendering, decoupled

In OrbCharts, the visual presentation is a swappable layer. Show the same data as a bar chart today and switch to a line or pie chart tomorrow — only the chart declaration changes, while your data and fetching logic stay untouched. Visual decisions can be made later and changed at any time. Once the data is ready, the only question left is how you want to look at it.

(3) Flexibility built for dashboards

Dashboard requirements never stop changing: try a different chart for this metric, add a trend line to that panel. OrbCharts' composable design lets layers be plugged in and toggled at runtime, and combined with a unified data format, the cost of adding or adjusting a chart is minimal. The data pipeline stays stable while the presentation evolves freely — exactly the developer experience dashboard products need.

Get Started!

Installation

OrbCharts supports CDN downloads and npm installation, is not limited to specific front-end frameworks, and supports both JavaScript and TypeScript development environments.

Here are several installation methods:

  1. npm installation
npm i orbcharts

The orbcharts package re-exports everything from @orbcharts/core (the chart engine) and @orbcharts/plugin-basic (the built-in plugins). If you prefer to manage them separately, you can also install the individual packages:

npm i @orbcharts/core @orbcharts/plugin-basic
  1. ESM format CDN download
<script type="module">
import * as orbcharts from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm'
</script>
  1. UMD format CDN download
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/orbcharts.umd.js"></script>

Execution

Prepare a container element with an explicit width and height (by default the chart automatically fills its container):

<div id="chart" style="width: 600px; height: 400px;"></div>

This is an executable program to start creating your first pie chart:

import { OrbCharts, PartitionPlot, Tooltip, Legend } from 'orbcharts'

const element = document.querySelector('#chart')

const data = [
  { series: 'A', value: 30 },
  { series: 'B', value: 70 },
  { series: 'C', value: 45 },
  { series: 'D', value: 85 },
]

const chart = new OrbCharts(element, {
  data,
  plugins: [new PartitionPlot({ Pie: {} }), new Tooltip(), new Legend()],
})

Same data, different views

The data never changes — switching the visualization is a single declaration:

const plot = new PartitionPlot({ Pie: {}, PieLabel: {} })

const chart = new OrbCharts(element, { data, plugins: [plot, new Tooltip(), new Legend()] })

// Later, switch the same chart to a rose chart — the data stays untouched
plot.showOnly(['Rose', 'RoseLabel'])

Parameters can be updated at runtime as well — for example, splitting one chart into a separate chart per series:

plot.updateParams({
  separateSeries: true
})

You can also subscribe to the chart's reactive data streams — when the data updates, everything downstream updates with it:

chart.context.seriesData$.subscribe(data => {
  console.log(data)
})

chart.setData(newData) // the chart re-renders, and the subscription above receives the update

License

OrbCharts is released under the Apache License 2.0.