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

beautiful-chartsjs

v2.0.1

Published

Beautiful Chart renderer — Bun + Chart.js, zero system deps

Readme

Beautiful Charts

A skill for rendering beautiful, publication-quality chart images (transparent PNG) from structured data using Bun + Chart.js. No Python or system dependencies required.

Installation

npx skill add kwanLeeFrmVi/beautiful-charts

Features

  • Multiple chart types: Line, bar, horizontal bar, area, scatter, and donut charts
  • Transparent PNG output: Editorial styling with a clean design system
  • Zero system deps: Uses @napi-rs/canvas (pre-built binaries) — no Cairo/Python needed
  • One-liner run: bunx -y downloads and executes on demand

Prerequisites

Install Bun (one-time setup):

# macOS / Linux
curl -fsSL https://bun.sh/install | bash

# Windows
powershell -c "irm bun.sh/install.ps1|iex"

Usage

Quick Start

  1. Create a chart configuration JSON file
  2. Run the renderer with bunx
  3. View the generated PNG
bunx -y beautiful-chartsjs chart_config.json output.png

Chart Types

| Chart Type | Use Case | Config Type | | ----------- | ------------------------- | ----------- | | line | Trend over time | line | | bar | Period comparisons | bar | | hbar | Rankings / long labels | hbar | | area | Filled trend | area | | scatter | Correlation / bubbles | scatter | | donut | Part-of-whole (with hole) | donut | | pie | Part-of-whole (solid) | pie | | polarArea | Circular comparison | polarArea | | radar | Multivariate comparison | radar |

Configuration Format

{
  "type": "line",
  "title": "Chart Title",
  "subtitle": "Unit · note",
  "source": "Source: XYZ",
  "labels": ["A", "B", "C"],
  "yMin": 0,
  "yMax": 100,
  "yPrefix": "$",
  "ySuffix": "M",
  "width": 900,
  "height": 480,
  "datasets": [
    {
      "label": "Series 1",
      "color": "blue",
      "data": [10, 20, 30]
    }
  ]
}

Color Palette

Use these color names (not hex codes):

| Name | Hex | Use Case | | -------- | --------- | --------------- | | blue | #185FA5 | 1st / primary | | red | #E24B4A | 2nd / negative | | teal | #1D9E75 | 3rd / positive | | amber | #BA7517 | 4th / warning | | purple | #534AB7 | 5th | | gray | #888780 | neutral / other |

Examples

Line Chart - Oil Prices

{
  "type": "line",
  "title": "Crude oil prices",
  "subtitle": "$/barrel",
  "labels": ["Mar 21", "Mar 23", "Mar 24", "Mar 25"],
  "yMin": 80,
  "yMax": 120,
  "yPrefix": "$",
  "datasets": [
    {
      "label": "WTI",
      "color": "blue",
      "fill": true,
      "data": [112.0, 88.13, 91.61, 90.98]
    },
    {
      "label": "Brent",
      "color": "red",
      "fill": false,
      "data": [112.0, 99.94, 103.0, 101.5]
    }
  ]
}

Bar Chart - Revenue

{
  "type": "bar",
  "title": "Quarterly revenue",
  "subtitle": "USD millions",
  "labels": ["Q1", "Q2", "Q3", "Q4"],
  "yMin": 0,
  "yPrefix": "$",
  "ySuffix": "M",
  "datasets": [
    { "label": "2025", "color": "blue", "data": [12.4, 18.7, 15.2, 22.1] },
    { "label": "2026", "color": "teal", "data": [14.1, 20.3, 17.8, 25.6] }
  ]
}

Donut Chart - Market Share

{
  "type": "donut",
  "title": "Browser share 2026",
  "datasets": [
    {
      "labels": ["Chrome", "Safari", "Firefox", "Edge", "Other"],
      "colors": ["blue", "red", "amber", "teal", "gray"],
      "data": [65, 18, 7, 5, 5]
    }
  ]
}

Sizing Guide

| Use Case | Dimensions | | ----------------------- | ------------------ | | Default | 900 × 480 | | Wide panel | 1200 × 400 | | Square / social | 800 × 800 | | Horizontal bar (N rows) | 900 × (N×48 + 100) | | Thumbnail | 600 × 320 |

Schema Reference

See skills/beautiful-charts/schemas.md for detailed dataset schemas for each chart type.

How It Works

The renderer (render_chart.js) uses:

  • Bun — JS runtime with native TypeScript/ESM support
  • Chart.js 4 — chart rendering
  • @napi-rs/canvas — server-side Canvas API with pre-built binaries (no Cairo)

Triggers

This skill is automatically triggered when users ask to:

  • Draw, plot, chart, or graph data
  • Visualize numbers or tables
  • Create bar charts, line graphs, pie/donut charts, scatter plots
  • Convert CSV or spreadsheet data to visual charts

License

MIT