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

chartformers

v1.0.56

Published

Animated React charting library powered by D3 with smooth data transitions and interactive features

Readme

chartformers

npm version npm downloads packagephobia bundlejs GitHub stars license

chartformers is a lightweight React.js library for rendering interactive, responsive, and animated D3.js charts.
Demo It is designed to simplify chart creation in modern React apps while retaining the full power of D3 under the hood.

✨ Features

  • Easy-to-use React components for common chart types
  • Smooth animated transitions
  • Performance-first:
    • ~46 KB min+gzip for typical usage
    • ~27–30 KB gzip per chart (tree-shaken)
  • Fully tree-shakeable and modular
  • Full TypeScript support
  • Responsive charts that auto-fit their containers
  • Simple styling with included CSS
  • Powered by D3.js + React 19

Note: npm unpacked size includes source maps, type definitions, and multiple build formats.
Production bundle size depends on which charts you import.

📦 Installation

npm install chartformers@latest

To use a bar chart component import these:

import { BarChart } from 'chartformers';
import 'chartformers/dist/chartformers.css';

Render the chart inside a container with explicit width and height:

<div className="w-full h-60 md:h-96">
  <BarChart data={[]} />
</div>

Example: sortable stacked bar chart

import { StackedBarChart } from "chartformers"; 
import 'chartformers/dist/chartformers.css';

export default function StackedBarChartExample() {  
  const companyData = [
    {
      "label": "TechStream",
      "Hardware": 5409,
      "Software": 8200,
      "Services": 10390,
      "Consulting": 21500,
      "Maintenance": 7506
    },
    {
      "label": "InnovateX",
      "Hardware": 11265,
      "Software": 8657,
      "Services": 18200,
      "Consulting": 9400,
      "Maintenance": 5286
    },
    {
      "label": "CloudSphere",
      "Hardware": 16087,
      "Software": 14200,
      "Services": 22400,
      "Consulting": 19423,
      "Maintenance": 11935
    },
    {
      "label": "DataVantage",
      "Hardware": 9912,
      "Software": 15900,
      "Services": 14674,
      "Consulting": 13322,
      "Maintenance": 11500
    },
    {
      "label": "CyberCore",
      "Hardware": 3488,
      "Software": 5520,
      "Services": 6685,
      "Consulting": 7433,
      "Maintenance": 5769
    },
    {
      "label": "AetherSystems",
      "Hardware": 6811,
      "Software": 8900,
      "Services": 8582,
      "Consulting": 24100,
      "Maintenance": 6700
    }
  ];

  return (
    <div className="w-full h-60 md:h-96">
      <StackedBarChart data={companyData} />
    </div>
  );
}

Demo

For full explanations on the options and properties, with live demo:

Visit the chartformers documentation.

Or you can grab the source code at:

the github repo