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

@itssumitrai/fin-charter

v0.2.0

Published

Ultra-fast, tree-shakeable financial charting library

Readme

Live Storybook Documentation & Examples

Key Features

  • Ultra-fast canvas rendering — direct 2D canvas drawing, no virtual DOM
  • Tiny bundle — core is under 15 KB gzipped; unused chart types tree-shake away
  • Tree-shakeable"sideEffects": false ES module package
  • 8 chart types — Candlestick, Line, Area, Bar (OHLC), Baseline, Hollow Candle, Histogram, Heikin-Ashi
  • 30 built-in indicators — SMA, EMA, Bollinger Bands, RSI, MACD, VWAP, Stochastic, ATR, ADX, OBV, Williams %R, Volume, Ichimoku Cloud, Parabolic SAR, Keltner Channel, Donchian Channel, CCI, Pivot Points, Aroon, Awesome Oscillator, Chaikin MF, Coppock, Elder Force, TRIX, Supertrend, VWMA, Choppiness, MFI, ROC, Linear Regression
  • Chart-managed indicatorschart.addIndicator('rsi', { source: series }) with auto-compute and auto-pane creation
  • Multi-pane layout — indicator panes with draggable dividers and independent price scales
  • Interactive HUD — series/indicator management with visibility toggle, settings editor, and remove
  • TV-style global HUD collapse — chevron button collapses all indicator rows at once
  • Context menu — right-click drawings for Edit/Duplicate/Remove/Z-order; right-click chart for Reset Zoom/Scroll to Latest; right-click indicator pane for Settings/Hide/Remove
  • TradingView-compatible plugin systemISeriesPrimitive / IPanePrimitive interfaces
  • Real-time dataseries.update(bar) appends or overwrites the last bar in O(1)
  • Drawing tools — 16 built-in types (horizontal line, vertical line, trendline, fibonacci, rectangle, text, ray, arrow, channel, ellipse, pitchfork, fib projection, fib arc, fib fan, crossline, measurement); extensible via registerDrawingType()
  • Comparison mode — normalise multiple series to percentage change for side-by-side performance comparison
  • Heikin-Ashichart.addHeikinAshiSeries() with automatic OHLC-to-HA transform
  • Market sessions — define pre/post-market windows with background highlights; filter bars by session
  • Chart state save/restoreexportState() / importState() round-trips the full chart configuration
  • Data paginationseries.prependData() + barsInLogicalRange() + subscribeVisibleRangeChange() for infinite-history scrolling
  • Event markersseries.setEvents() places interactive earnings/dividend/news markers on bars
  • Periodicity modelsetPeriodicity() / subscribePeriodicityChange() for interval switching with data-reload hooks
  • OHLC aggregationaggregateOHLC(store, intervalSec) for client-side timeframe resampling
  • Screenshot exportchart.takeScreenshot() composites all panes to a canvas
  • TypeScript-first — full type definitions included

Installation

npm install fin-charter

Quick Start

import { createChart } from 'fin-charter';

const chart = createChart(document.getElementById('chart')!, {
  width: 800,
  height: 400,
});

const series = chart.addSeries({ type: 'candlestick' });

series.setData([
  { time: 1700000000, open: 100, high: 110, low: 95,  close: 107 },
  { time: 1700086400, open: 107, high: 115, low: 104, close: 112 },
  { time: 1700172800, open: 112, high: 118, low: 108, close: 109 },
]);

Chart Types

| Type | Method | Description | |---|---|---| | Candlestick | addSeries({ type: 'candlestick' }) | OHLC candles with filled body and wick | | Line | addSeries({ type: 'line' }) | Close-price polyline | | Area | addSeries({ type: 'area' }) | Close-price line with gradient fill below | | Bar (OHLC) | addSeries({ type: 'bar' }) | Traditional OHLC tick bars | | Baseline | addSeries({ type: 'baseline' }) | Two-color fill above/below a base price | | Hollow Candle | addSeries({ type: 'hollow-candle' }) | Up candles hollow (outline only), down candles filled | | Histogram | addSeries({ type: 'histogram' }) | Vertical bars from the bottom; useful for volume | | Heikin-Ashi | addSeries({ type: 'heikin-ashi' }) | Smoothed OHLC candles with automatic HA transform |

Note: The individual addCandlestickSeries(), addLineSeries(), etc. methods still work but are deprecated. Prefer the unified addSeries({ type }) API.

Bundle Size (measured)

| Entry point | Size (gzip) | |---|---| | fin-charter (core, main chunk) | ~13.8 KB | | Full bundle (all chart types + indicators) | ~35.9 KB |

Documentation

License

MIT