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

vikcraft-charts

v2.0.0

Published

A powerful canvas-based 2D and Three.js-powered 3D chart library. Supports bar, line, pie, doughnut, area, radar, mixed, scatter, and 3D chart types with 6 themes, animations, and tooltips.

Readme

vikcraft-charts

A powerful canvas-based 2D charting library + optional Three.js 3D charts — zero required dependencies for 2D.

npm version license

Features

2D Charts (canvas, no dependencies)

  • Bar, Horizontal Bar, Line, Area, Pie, Doughnut, Radar, Scatter, Mixed, Combo (bar + line)
  • 6 built-in themes (dark, light, blue, ocean, carbon, green)
  • Smart tick algorithm, gradient fills, rounded bars
  • Staggered animation, crosshair, smart tooltip positioning
  • Reference lines, glow lines, color palettes
  • setTheme() / update() / destroy() API

3D Charts (requires three peer dependency)

  • 3D Bar, 3D Scatter, 3D Line / Surface charts
  • Full Three.js scene with OrbitControls, axes, CSS2D labels
  • Responsive resize handling

Install

npm install vikcraft-charts
# For 3D charts:
npm install three

Quick Start — 2D

Via <script> tag

<link rel="stylesheet" href="node_modules/vikcraft-charts/vikcraft-chart.css">
<script src="node_modules/vikcraft-charts/vikcraft-chart.js"></script>

<canvas id="myChart" width="800" height="400"></canvas>

<script>
  const chart = new VikCraft('#myChart', {
    type: 'bar',
    theme: 'dark',
    data: {
      labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May'],
      datasets: [{
        label: 'Revenue',
        data:  [12000, 19000, 8000, 24000, 17000],
        color: '#3b82f6',
      }]
    },
    options: {
      title: 'Monthly Revenue',
      yAxis: { label: 'USD' },
    }
  });
</script>

Via bundler

import VikCraft from 'vikcraft-charts';
import 'vikcraft-charts/vikcraft-chart.css';

const chart = new VikCraft('#myChart', { type: 'bar', data: { ... } });

Quick Start — 3D

// 3D charts are a separate module import
import VikCraft3D from 'vikcraft-charts/vikcraft-chart-3d.js';
// or via script tag: <script src="node_modules/vikcraft-charts/vikcraft-chart-3d.js">

const chart3d = new VikCraft3D('#myContainer', {
  type: '3d-bar',
  data: { ... }
});

Chart Types

| Type | Class | Description | |------|-------|-------------| | bar | VikCraft | Vertical bar chart | | bar-h | VikCraft | Horizontal bar chart | | line | VikCraft | Line chart | | area | VikCraft | Filled area chart | | pie | VikCraft | Pie chart | | doughnut | VikCraft | Doughnut / ring chart | | radar | VikCraft | Radar / spider chart | | scatter | VikCraft | Scatter / bubble chart | | mixed | VikCraft | Combined bar + line | | 3d-bar | VikCraft3D | 3D bar chart (Three.js) | | 3d-scatter | VikCraft3D | 3D scatter plot |

API

chart.update(newData)         // Refresh chart with new data
chart.setTheme('ocean')       // Switch theme
chart.resize()                // Trigger manual resize
chart.destroy()               // Remove and clean up

CDN

<!-- 2D only -->
<link  rel="stylesheet" href="https://unpkg.com/vikcraft-charts/vikcraft-chart.css">
<script src="https://unpkg.com/vikcraft-charts/vikcraft-chart.js"></script>

<!-- 3D (also requires Three.js) -->
<script type="module">
  import VikCraft3D from 'https://unpkg.com/vikcraft-charts/vikcraft-chart-3d.js';
</script>

License

MIT © VikCraft Pro