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

@luxalgo/vela

v0.5.2

Published

Open-source charting library with a native high-performance renderer, drawing tools, pluggable chart types and pluggable scripting engines.

Readme

Vela

A fast, extensible financial charting library with its own native canvas renderer, a headless core, a batteries-included widget, and a plugin SDK for custom chart types and renderer layers.

  • vela — the headless chart: data model, engines, drawings, providers, native renderer.
  • vela/widget — the full chart app: topbar (symbol / timeframe / style / indicators), status line, watermark, bottom bar (ranges, clock, timezone), object tree, keyboard-first UX.
  • vela/ui — the component kit the widget is built on (design tokens + headless Zag.js machines + vanilla views) and the KeymapManager.
  • vela/plugin — the extension SDK: chart types, renderer layers, native indicators.
  • vela/workspace — the multi-chart shell: a grid of full charts under one shared topbar, with named cells, sync groups and one persisted state document.
  • vela/providers/* — data providers (Binance, Coinbase, Hyperliquid).

Quick start

import { VelaWidget } from 'vela/widget';
import { BinanceProvider } from 'vela/providers/binance';

const widget = new VelaWidget('#chart', {
    symbol: 'BTCUSDT', // bare = first declared provider listing it; 'binance:BTCUSDT' pins the venue
    timeframe: '60',
    live: true,
    theme: 'dark',
    providers: { binance: () => new BinanceProvider() },
    persist: true,   // restore the full state document — market, style, timezone, renderer
                     // config, drawings and indicators — from localStorage
    urlState: true,  // ?symbol=…&interval=… shareable links
});

Prefer full control? Use the headless core directly:

import { Vela } from 'vela';
import { BinanceProvider } from 'vela/providers/binance';

const chart = new Vela('#chart', { symbol: 'binance:BTCUSDT', timeframe: '60', live: true });
chart.data.registerProvider('binance', new BinanceProvider());
await chart.ready();

Indicators

Vela runs indicator scripts through pluggable engines and ships none — install the addon for the language you want, or write one against the public ScriptingEngine port. Pine Script lives in @luxalgo/vela-pinets (npm i @luxalgo/vela-pinets pinets), which is AGPL-3.0 because the PineTS runtime it executes is — Vela itself stays Apache-2.0 and carries no Pine code:

import { PineEngine } from '@luxalgo/vela-pinets';

chart.registerEngine('pine', new PineEngine());
chart.addIndicator(`//@version=5
indicator("EMA 20", overlay=true)
plot(ta.ema(close, 20), color=color.orange, linewidth=2)`);

Host tooling can execute-and-inject safely (chart.runIndicator(source) — structured errors, no dead legend rows) and read a running script's state — including its return value — via handle.context() (read-only snapshots, worker-safe). See the API reference, and Scripting engines for the addon and for writing your own.

The widget takes an indicator manifest — inline JSON, a URL returning it, or an async loader (() => Promise<manifest>):

new VelaWidget('#chart', {
    // …
    engines: { pine: () => new PineEngine() },
    indicators: '/indicators.json', // or an inline [{ name, script | url, language?, enabled? }]
});

Keyboard

Type a letter → symbol search. Type a digit → timeframe entry (15, 4h, D, 3M…). mod+alt+S (Ctrl+Alt+S, ⌥⌘S on macOS) → screenshot. ? → the shortcuts panel. Bindings are declarative (widget.keymap.register({...})) — plugins register theirs the same way.

Extending (plugin SDK)

import { registerChartType, registerRendererLayer } from 'vela/plugin';

// A new price style: bar transform + optional per-bar data engine + ticker modifier.
registerChartType({
    id: 'renko-like',
    label: 'Renko-like',
    barTransform: { full: (bars) => transformAll(bars), next: (bar) => transformOne(bar) },
});

// A custom canvas layer, painted every frame with the chart (its id = its data channel).
registerRendererLayer({
    id: 'renko-like',
    placement: 'above-data',
    create: () => ({ mount(canvas) {/* keep it */}, render({ bars, data, coords, scale, bounds }) {/* paint */} }),
});

A registered chart type automatically appears in the widget's style dropdown; a chart type's dataEngine pushes to its layer's channel with zero extra wiring. See docs/contributing/plugin-sdk.md.

Documentation

Full documentation lives in docs/ — user guides (quickstart, the widget, options, API reference), architecture, and contributing guides including the plugin SDK.

Development

npm install
npm run playground   # vite playground on http://localhost:5190
npm test             # vitest
npm run build        # tsup → dist/

License

Apache-2.0 with a mandatory attribution notice (see NOTICE): charts render a small Vela attribution mark by default; it may be disabled (chart.renderer.set('attribution', false)) only if an equivalent visible attribution — "Vela" linking to the project page — is shown elsewhere on the same page. This is the same licensing model as other popular charting libraries.

No scripting engine ships with this package; the Pine Script addon (@luxalgo/vela-pinets) is AGPL-3.0 and licensed separately (see Indicators).