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

cybercore-charts

v0.2.0

Published

Zero-dependency cyberpunk SVG chart library with neon aesthetics and glitch effects

Readme

📊 CYBERCORE CHARTS

CYBERCORE CHARTS Version License Bundle Size

Zero-dependency SVG chart library with cyberpunk aesthetics

Neon glows, dark themes, and futuristic data visualization

🚀 Live Demo | 📖 Documentation | 💻 GitHub


Features

| Feature | Description | | --------------------- | ---------------------------------------------- | | Zero Dependencies | No runtime dependencies - pure TypeScript | | SVG Output | Clean SVG strings or DOM elements | | SSR Compatible | Works in Node.js and browser environments | | Cyberpunk Theme | Neon glows, dark backgrounds, futuristic style | | Fully Typed | Complete TypeScript definitions | | Tree-Shakeable | Import only the charts you need | | Accessible | Respects prefers-reduced-motion | | Tiny Bundle | <10KB minified + gzipped |


Screenshots

Dashboard Home

Dashboard Home

Complete dashboard with chart type previews and feature overview

Line Charts

Line Charts

Smooth curves with neon glow effects in cyan, magenta, yellow, and green

Bar Charts

Bar Charts

Vertical bars with gradient fills across all color themes

Radial Charts

Radial Charts

Gauges for system metrics with neon glow and animated progress

Real-time Charts

Real-time Charts

Live streaming charts with 100ms updates for monitoring dashboards


Installation

npm install cybercore-charts

Or via CDN:

<script src="https://unpkg.com/cybercore-charts@latest/dist/cybercore-charts.min.js"></script>

Quick Start

import { LineChart } from 'cybercore-charts';

const chart = new LineChart({
  width: 600,
  height: 400,
  data: [
    { x: 0, y: 10 },
    { x: 1, y: 25 },
    { x: 2, y: 15 },
    { x: 3, y: 30 },
    { x: 4, y: 22 },
  ],
  glow: true,
  color: '#00f0ff',
});

// Get SVG string
const svg = chart.render();

// Or append to DOM
document.getElementById('chart').appendChild(chart.toElement());

Chart Types

Line Chart

import { LineChart } from 'cybercore-charts';

const chart = new LineChart({
  width: 600,
  height: 400,
  data: [
    { x: 0, y: 10 },
    { x: 1, y: 25 },
    { x: 2, y: 15 },
  ],
  color: '#00f0ff',
  glow: true,
  curve: 'smooth',
  showPoints: true,
  showArea: false,
});

Bar Chart

import { BarChart } from 'cybercore-charts';

const chart = new BarChart({
  width: 600,
  height: 400,
  data: [
    { label: 'Alpha', value: 45 },
    { label: 'Beta', value: 72 },
    { label: 'Gamma', value: 58 },
  ],
  orientation: 'vertical',
  colors: ['#00f0ff', '#ff00aa', '#00ff88'],
  showValues: true,
});

Pie / Donut Chart

import { PieChart } from 'cybercore-charts';

const chart = new PieChart({
  width: 400,
  height: 400,
  data: [
    { label: 'Sector A', value: 35 },
    { label: 'Sector B', value: 25 },
    { label: 'Sector C', value: 40 },
  ],
  donut: true,
  innerRadius: 60,
  showLabels: true,
});

Area Chart

import { AreaChart } from 'cybercore-charts';

const chart = new AreaChart({
  width: 600,
  height: 400,
  data: [
    { x: 0, y: 10 },
    { x: 1, y: 25 },
    { x: 2, y: 15 },
  ],
  gradient: true,
  color: '#ff00aa',
});

Scatter Plot

import { ScatterChart } from 'cybercore-charts';

const chart = new ScatterChart({
  width: 600,
  height: 400,
  data: [
    { x: 10, y: 20, size: 5 },
    { x: 30, y: 45, size: 8 },
    { x: 50, y: 30, size: 6 },
  ],
  pulse: true,
});

Gauge

import { GaugeChart } from 'cybercore-charts';

const chart = new GaugeChart({
  width: 300,
  height: 200,
  value: 72,
  min: 0,
  max: 100,
  label: 'CPU',
  color: '#00ff88',
});

Radar Chart

import { RadarChart } from 'cybercore-charts';

const chart = new RadarChart({
  width: 400,
  height: 400,
  data: [
    { axis: 'Speed', value: 80 },
    { axis: 'Power', value: 65 },
    { axis: 'Range', value: 90 },
    { axis: 'Stealth', value: 45 },
    { axis: 'Armor', value: 70 },
  ],
});

Sparkline

import { Sparkline } from 'cybercore-charts';

const chart = new Sparkline({
  width: 120,
  height: 30,
  data: [5, 10, 8, 15, 12, 18, 14],
  color: '#f0ff00',
});

API Reference

Common Options

All chart types accept these base options:

interface ChartOptions {
  width: number; // Chart width in pixels
  height: number; // Chart height in pixels
  theme?: ThemeConfig; // Custom theme configuration
  animate?: boolean; // Enable animations (default: true)
  responsive?: boolean; // Enable responsive sizing
  padding?: {
    // Chart padding
    top: number;
    right: number;
    bottom: number;
    left: number;
  };
}

Methods

All chart instances provide:

// Render to SVG string
chart.render(): string;

// Create SVGElement
chart.toElement(): SVGElement;

// Update data
chart.update(newData): void;

// Destroy and cleanup
chart.destroy(): void;

Theming

Built-in Themes

import { LineChart } from 'cybercore-charts';

// Use preset theme
const chart = new LineChart({
  theme: 'cyber', // 'cyber' | 'neon' | 'matrix'
  // ...
});

Custom Theme

import { createTheme, LineChart } from 'cybercore-charts';

const myTheme = createTheme({
  colors: {
    primary: '#00f0ff',
    secondary: '#ff00aa',
    tertiary: '#f0ff00',
    success: '#00ff88',
    background: '#0a0a0f',
    surface: '#1a1a2f',
    grid: '#2a2a3f',
    text: '#ffffff',
    textMuted: '#8a8a9a',
  },
  effects: {
    glow: true,
    glowIntensity: 0.8,
    scanlines: false,
    animated: true,
  },
  fonts: {
    family: '"JetBrains Mono", monospace',
    size: 12,
  },
});

const chart = new LineChart({
  theme: myTheme,
  // ...
});

CSS Variables

Charts respect CSS custom properties when rendered in the DOM:

:root {
  --cyber-chart-primary: #00f0ff;
  --cyber-chart-background: #0a0a0f;
  --cyber-chart-grid: #2a2a3f;
  --cyber-chart-text: #ffffff;
  --cyber-chart-glow: 0 0 10px currentColor;
}

Browser Support

| Browser | Version | | ------- | ------- | | Chrome | 88+ | | Firefox | 85+ | | Safari | 14+ | | Edge | 88+ |

Requires SVG 1.1 and ES2020 support


Project Structure

cybercore-charts/
├── src/
│   ├── charts/           # Chart implementations
│   │   ├── line.ts
│   │   ├── bar.ts
│   │   ├── pie.ts
│   │   ├── area.ts
│   │   ├── scatter.ts
│   │   ├── gauge.ts
│   │   ├── radar.ts
│   │   └── sparkline.ts
│   ├── utils/            # Shared utilities
│   │   ├── scales.ts
│   │   ├── axes.ts
│   │   ├── colors.ts
│   │   └── animations.ts
│   ├── styles/           # Theme definitions
│   │   ├── theme.ts
│   │   └── variables.ts
│   ├── types.ts          # TypeScript definitions
│   └── index.ts          # Main entry
├── demo/                 # Demo site
└── tests/                # Test suites

Development

# Install dependencies
npm install

# Start dev server
npm run dev

# Build library
npm run build

# Run tests
npm run test

# Lint and format
npm run lint
npm run format

Contributing

See CONTRIBUTING.md for guidelines.


🔗 Related Projects

  • CYBERCORE CSS - Pure CSS/SCSS cyberpunk design framework. UI components, effects, and utilities with the same neon aesthetic.

License

MIT License - Use it, visualize it, share it.


⚡ Data visualization for Night City ⚡

🚀 Demo | 📖 Docs | 🐛 Issues