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.
What you get
Section titled “What you get”- 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
DataSourcefor 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 auseChartEffecthook.
Not goals
Section titled “Not goals”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.
Next steps
Section titled “Next steps”- Installation — add it to your project.
- Your first chart — the full walkthrough.
- Using React — the
@lightfin/reactwrapper. - Live data — wiring a
DataSource.