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

@chartts/core

v0.1.6

Published

Tiny, beautiful, SVG-based charting library. Tailwind-native. Every framework.

Readme


Install

npm install @chartts/core

Quick start

import { createChart, lineChartType } from "@chartts/core"

const chart = createChart("#chart", lineChartType, {
  labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun"],
  series: [{ name: "Revenue", values: [4200, 5800, 7100, 6400, 8200, 9600] }],
})

Server-side rendering

import { renderToString, lineChartType } from "@chartts/core"

const svg = renderToString(lineChartType, {
  labels: ["Jan", "Feb", "Mar"],
  series: [{ name: "Sales", values: [10, 20, 15] }],
}, { width: 600, height: 300 })

Real-time streaming

import { createStreamingChart, lineChartType } from "@chartts/core"

const stream = createStreamingChart(el, lineChartType, { windowSize: 200 })
stream.push([42], "12:00:01")
stream.push([58], "12:00:02")

Why Chart.ts?

  • 65+ chart types — line, bar, pie, candlestick, sankey, treemap, radar, heatmap, and 50+ more
  • Under 15kb gzipped — the entire core, not per chart
  • Zero dependencies — nothing to audit, nothing to break
  • Triple renderer — SVG default, Canvas at 5k+ points, WebGL at 100k+. Auto-switching.
  • Real SVG — actual DOM nodes. CSS works. Devtools work. Screen readers work.
  • TypeScript-first — strict mode, zero any, full inference
  • Accessible — WCAG 2.1 AA. Keyboard nav, ARIA roles, pattern fills.
  • Tree-shakeable — import only the charts you use
  • SSR readyrenderToString() for server-side. No ssr: false hacks.
  • Interactions — tooltips, crosshair, zoom, pan, brush, linked charts
  • Financial indicators — SMA, EMA, RSI, MACD, Bollinger Bands, ATR, VWAP
  • Streaming — rolling buffers with pause/resume

Framework support

| Framework | Package | | |-----------|---------|---| | React | @chartts/react | npm | | Vue | @chartts/vue | npm | | Svelte | @chartts/svelte | npm | | Solid | @chartts/solid | npm | | Angular | @chartts/angular | npm |

For WebGL/3D charts, add @chartts/gl.

65+ chart types

Trending — Line, Area, Step, Sparkline, Range, Baseline, Combo

Comparison — Bar, Stacked Bar, Horizontal Bar, Lollipop, Bullet, Dumbbell, Pillar, Pareto

Composition — Pie, Donut, Treemap, Sunburst, Pack, Funnel, Waterfall

Distribution — Scatter, Bubble, Histogram, Boxplot, Violin, Heatmap

Radial — Radar, Polar, Radial Bar, Gauge

Financial — Candlestick, OHLC, Volume, Kagi, Renko

Relationship — Sankey, Chord, Graph, Flow, Parallel, Lines

Hierarchy — Tree, Org, Gantt

Specialty — Calendar, Matrix, Geo, Word Cloud, Voronoi, Theme River, Pictorial Bar

3D / WebGL (via @chartts/gl) — Scatter 3D, Bar 3D, Surface 3D, Globe 3D, Map 3D, Lines 3D, Line 3D, Torus 3D, Scatter GL, Lines GL, Flow GL, Graph GL

Tree-shakeable imports:

import { lineChartType } from "@chartts/core/line"
import { barChartType } from "@chartts/core/bar"
import { candlestickChartType } from "@chartts/core/candlestick"

Bundle size

| Library | Size (gzip) | Charts | Renderers | License | |---------|-------------|--------|-----------|---------| | Chart.ts | ~15kb | 65+ | SVG + Canvas + WebGL | MIT | | Chart.js | ~60kb | 8 | Canvas | MIT | | Recharts | ~50kb | 12 | SVG | MIT | | ECharts | ~300kb | 40+ | Canvas | Apache | | Highcharts | ~80kb | 30+ | SVG | Commercial | | ApexCharts | ~120kb | 20+ | SVG + Canvas | MIT |

Links

License

MIT