Skip to content

Introduction

Lightfin is a web financial-charting library with a professional-grade charting experience — candlesticks, indicators, drawing tools, smooth pan/zoom and live data — while staying small, dependency-free, and easy to wire to any data source.

The core is framework-agnostic vanilla TypeScript, rendered on layered Canvas2D. It’s bars in, chart out: it renders and handles interaction, and leaves data, persistence and your trading UI to you.

  • Series — candlestick, bar, line and area, switchable in place.
  • Indicators — 16 built in (moving averages, Bollinger, Keltner, VWAP, RSI, MACD, Stochastic, ADX and more), overlaid or on their own resizable pane, plus a contract for your own.
  • Drawing tools — 21 of them, with undo/redo, a per-drawing style toolbar, and JSON an AI can drive.
  • Live data — attach a DataSource for history backfill and a live stream.
  • Chrome — optional HUD/legend, toolbars, instrument metadata, exchange clock, fullscreen.
  • Price lines & event tags — order/position lines and earnings/dividend tags.
  • React bindings — <LightfinChart> and a useChartEffect hook.

Lightfin isn’t a backtesting engine, a data service, or a trading/execution UI. It provides the hook a trading UI needs — it fires price/coordinate events and lets your host render the order form.