Skip to content
Back to search

tradecanvas

Trading charts for the web, drawn with Canvas 2D or WebGL: 111 indicators, 69 drawing tools, 18 chart types, live exchange feeds, orders on the chart, replay and backtesting. Zero dependencies. TypeScript, React, Vue, Svelte.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/bonguynvan/tradecanvas with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/bonguynvan/tradecanvas'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/bonguynvan--tradecanvas/badge.svg)](/listings/bonguynvan--tradecanvas)

HTML

<a href="/listings/bonguynvan--tradecanvas"><img src="/api/listings/bonguynvan--tradecanvas/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

npm install @tradecanvas/chart
import { ChartWidget } from '@tradecanvas/chart/widget'
import { BinanceAdapter } from '@tradecanvas/chart'

new ChartWidget(document.getElementById('chart')!, {
  symbol: 'BTCUSDT',
  timeframe: '5m',
  theme: 'dark',
  adapter: new BinanceAdapter(), // live data, no API key
  trading: true,
})

The headless `Chart` takes your own bars (`chart.setData(bars)`) and leaves the interface to you. For React, Vue and Svelte, `@tradecanvas/react`, `/vue` and `/svelte` wrap it in a component with the same props.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 17 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. {
  2. "name": "tradecanvas",
  3. "owner": { "name": "Nguyen Bo", "url": "https://github.com/bonguynvan" },
  4. "description": "The TradeCanvas skill for coding agents: trading and financial charts with @tradecanvas/chart.",
  5. "plugins": [
  6. {
  7. "name": "tradecanvas",
  8. "source": "./skills",
  9. "description": "Teaches the TradeCanvas API: the widget and the headless chart, 134 indicators, drawings, live feeds, orders and positions, alerts, replay, React, Vue and Svelte.",
  10. "homepage": "https://tradecanvas.dev/",
  11. "repository": "https://github.com/bonguynvan/tradecanvas",
  12. "license": "MIT",
  13. "keywords": ["charts", "trading", "candlestick", "finance", "typescript"],
  14. "skills": ["./tradecanvas"]
  15. }
  16. ]
  17. }
README.md · README · 153 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. <p align="center">
  2. <a href="https://tradecanvas.dev/"><img src=".github/assets/banner.png" alt="TradeCanvas, the chart engine for trading apps" width="100%"></a>
  3. </p>
  4. <p align="center">
  5. <a href="https://www.npmjs.com/package/@tradecanvas/chart"><img src="https://img.shields.io/npm/v/@tradecanvas/chart?style=flat-square&labelColor=0b0e13&color=f2a93b&label=npm" alt="npm version"></a>
  6. <a href="https://www.npmjs.com/package/@tradecanvas/chart"><img src="https://img.shields.io/npm/dm/@tradecanvas/chart?style=flat-square&labelColor=0b0e13&color=3ccf91" alt="npm downloads"></a>
  7. <a href="https://github.com/bonguynvan/tradecanvas/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/bonguynvan/tradecanvas/ci.yml?branch=main&style=flat-square&labelColor=0b0e13&label=CI" alt="CI status"></a>
  8. <a href="https://pkg.pr.new/~/bonguynvan/tradecanvas"><img src="https://pkg.pr.new/badge/bonguynvan/tradecanvas" alt="pkg.pr.new previews"></a>
  9. <img src="https://img.shields.io/badge/third--party%20deps-0-3ccf91?style=flat-square&labelColor=0b0e13" alt="No third-party dependencies">
  10. <img src="https://img.shields.io/badge/TypeScript-strict-4c8dff?style=flat-square&labelColor=0b0e13" alt="TypeScript">
  11. <a href="./LICENSE"><img src="https://img.shields.io/github/license/bonguynvan/tradecanvas?style=flat-square&labelColor=0b0e13&color=a9b0bd" alt="MIT license"></a>
  12. <a href="https://github.com/bonguynvan/tradecanvas/stargazers"><img src="https://img.shields.io/github/stars/bonguynvan/tradecanvas?style=flat-square&labelColor=0b0e13&color=f2a93b" alt="GitHub stars"></a>
  13. <a href="https://github.com/sponsors/bonguynvan"><img src="https://img.shields.io/github/sponsors/bonguynvan?style=flat-square&labelColor=0b0e13&color=db61a2&label=sponsors&logo=githubsponsors&logoColor=db61a2" alt="GitHub Sponsors"></a>
  14. </p>
  15. <p align="center">
  16. <b><a href="https://tradecanvas.dev/chart/">Live demo</a></b> ·
  17. <a href="https://tradecanvas.dev/docs/getting-started/">Docs</a> ·
  18. <a href="https://tradecanvas.dev/examples/">Examples</a> ·
  19. <a href="https://tradecanvas.dev/audit/">System audit</a> ·
  20. <a href="./CHANGELOG.md">Changelog</a>
  21. </p>
  22. <p align="center">
  23. <b>English</b> · <a href="README.vi.md">Tiếng Việt</a> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.ko.md">한국어</a> · <a href="README.es.md">Español</a>
  24. </p>
  25. **Your trading chart. Your rules.** TradeCanvas is a charting engine you own: MIT-licensed, installed from npm and served with your app, fed by your own data, shown under your own brand. No logo on the chart, nothing to apply for, no platform between you and your users. Coming from TradingView's charting library or Lightweight Charts? Keep your datafeed: [moving from TradingView](https://tradecanvas.dev/docs/from-tradingview/).
  26. **TradeCanvas is an open-source trading chart library for the web**, under the MIT licence. Candlesticks to Renko, 134 indicators, 76 drawing tools, live feeds and orders on the chart, on Canvas 2D or WebGL, with no third-party dependencies. Use the full `ChartWidget`, or build your own interface on the headless `Chart`, in TypeScript, React, Vue or Svelte.
  27. <p align="center">
  28. <a href="https://tradecanvas.dev/chart/"><img src=".github/assets/clips/hero.webp" alt="ChartWidget on a live market: EMA 21 and 55 and RSI, the crosshair, and a trend line drawn with the mouse" width="100%"></a>
  29. </p>
  30. ## Highlights
  31. - **18 chart types, 134 indicators, 76 drawing tools**, indicators on indicators, alerts on lines, undo and redo.
  32. - **Trading on the chart**: positions with live P&L, orders and stops you drag, a paper broker or your own.
  33. - **Live data** from Binance, Bybit, Coinbase, Kraken and Upbit, or your own feed in about twenty lines.
  34. - **Fast**: a million bars panned at 60 fps with WebGL; a live tick in about a microsecond; ten minutes of 30,000 trades a second on a million bars with no memory growth ([soak](benchmarks/2026-11-03.md)).
  35. - **A workspace**: grids of charts, layouts, bar replay, backtesting.
  36. - **Fourteen more charts** for the pages around the chart: depth, equity curve, waterfall, heatmap and sector map, bars, donut, scatter, histogram, calendar, correlation matrix, gauge, sparkline, and a backtest dashboard.
  37. - **Yours to shape**: themes, five looks, 133 switches, plugins; 30 languages; phones and apps.
  38. <table>
  39. <tr>
  40. <td width="50%" valign="top">
  41. <img src=".github/assets/clips/trading.webp" alt="Dragging the take-profit and stop-loss of a long position; its P&amp;L updates as the price moves">
  42. <br><b>Orders you drag</b>: stops, targets and limits move with the mouse.
  43. </td>
  44. <td width="50%" valign="top">
  45. <img src=".github/assets/clips/replay.webp" alt="Bar replay playing a market back with Bollinger Bands">
  46. <br><b>Bar replay</b>: play a market back, then trade it on paper.
  47. </td>
  48. </tr>
  49. <tr>
  50. <td width="50%" valign="top">
  51. <img src=".github/assets/clips/grid.webp" alt="Four charts in a two-by-two grid on different intervals, the crosshair following across all of them">
  52. <br><b>Grids</b>: up to six charts, linked by symbol, interval, crosshair or time.
  53. </td>
  54. <td width="50%" valign="top">
  55. <img src=".github/assets/clips/looks.webp" alt="One chart switching between the Print, Terminal, Capsule and Studio looks, dark and light">
  56. <br><b>Your look</b>: Print (paper and ink, kept to the golden ratio), Studio, Terminal, Capsule, Desk (a desktop trading window), light or dark, or your own tokens.
  57. </td>
  58. </tr>
  59. <tr>
  60. <td width="50%" valign="top" align="center">
  61. <img src=".github/assets/clips/phone.webp" alt="The widget on a phone: a finger pans the chart and draws a trend line" width="46%">
  62. </td>
  63. <td width="50%" valign="top">
  64. <br><b>On phones</b>: a finger pans, zooms, draws and drags orders, and the widget lays itself out for a small screen. It also runs in a WebView, React Native, Capacitor or Tauri.
  65. </td>
  66. </tr>
  67. </table>
  68. ## Quick start
  69. ```bash
  70. npm install @tradecanvas/chart
  71. ```
  72. ```typescript
  73. import { ChartWidget } from '@tradecanvas/chart/widget'
  74. import { BinanceAdapter } from '@tradecanvas/chart'
  75. new ChartWidget(document.getElementById('chart')!, {
  76. symbol: 'BTCUSDT',
  77. timeframe: '5m',
  78. theme: 'dark',
  79. adapter: new BinanceAdapter(), // live data, no API key
  80. trading: true,
  81. })
  82. ```
  83. The headless `Chart` takes your own bars (`chart.setData(bars)`) and leaves the interface to you. A source of your own is a `DataFeed` of two methods (`getBars`, `subscribeBars`), given as `feed` wherever an adapter goes; one feed serves any number of charts. For React, Vue and Svelte, `@tradecanvas/react`, `/vue` and `/svelte` wrap it in a component with the same props.
  84. ## AI coding tools
  85. The agent skill in [`skills/tradecanvas`](skills/tradecanvas/SKILL.md) teaches coding agents the API, with examples that CI type-checks. In Claude Code:
  86. ```text
  87. /plugin marketplace add bonguynvan/tradecanvas
  88. /plugin install tradecanvas@tradecanvas
  89. ```
  90. Other agents (Cursor, Codex, Copilot and more): `npx skills add bonguynvan/tradecanvas`. Or ask any agent to set it all up, the package, the skill and the MCP server, asking you the scope first:
  91. ```text
  92. Install TradeCanvas for me by reading https://tradecanvas.dev/llms.txt
  93. ```
  94. Without a skill, [`llms.txt`](https://tradecanvas.dev/llms.txt) and [`llms-full.txt`](https://tradecanvas.dev/llms-full.txt) give an assistant the docs in one file. Changing TradeCanvas itself with an agent? [AGENTS.md](AGENTS.md) holds the repo's rules.
  95. The MCP server `@tradecanvas/mcp` looks up indicators, drawing tools, options, feature switches and style keys in the library's own catalog, and checks an options object before it is used ([set it up in other clients](https://tradecanvas.dev/docs/getting-started/#ai)):
  96. ```bash
  97. claude mcp add tradecanvas -- npx -y @tradecanvas/mcp
  98. ```
  99. On Windows outside WSL: `claude mcp add tradecanvas -- cmd /c npx -y @tradecanvas/mcp`. In Git Bash, which runs the `!` commands of Claude Code on Windows, write `//c`: Git Bash turns `/c` into a path.
  100. Moving an app from TradingView's charting library or Lightweight Charts? The same server maps their options, featuresets, overrides, studies, drawings and methods (`migration_plan`, `migration_lookup`, `convert_widget_options`), and `feedFromJsApi` keeps the datafeed as it is ([Moving from TradingView](https://tradecanvas.dev/docs/from-tradingview/)).
  101. Measured, not claimed: on 24 tasks an agent with the skill finished every run (48 of 48, and 47 of 48 without it), in 10 turns against 15 and 169k tokens against 221k, and went reading the compiled code in 1 run of 48 against 6 ([the run](evals/baselines/2026-11-13-sonnet.md), on 2.1.1; the tasks and what they turned up are in [`evals`](evals/README.md)).
  102. ## Start from a template
  103. Three small Vite + TypeScript projects to clone and run in a minute, each a GitHub template with a live page:
  104. - **Crypto terminal**: the widget on live Binance data, with a watchlist. [Live](https://tradecanvas.dev/starters/crypto/) · [template](https://github.com/bonguynvan/tradecanvas-starter-crypto)
  105. - **Stock chart**: NYSE hours, daily bars from a CSV, or your own server through `udfFeed`. [Live](https://tradecanvas.dev/starters/stocks/) · [template](https://github.com/bonguynvan/tradecanvas-starter-stocks)
  106. - **Workspace**: four charts in a 2×2 grid, the crosshair, interval and time linked, the layout saved. [Live](https://tradecanvas.dev/starters/workspace/) · [template](https://github.com/bonguynvan/tradecanvas-starter-workspace)
  107. ## Documentation
  108. [Getting started](https://tradecanvas.dev/docs/getting-started/) · [From TradingView](https://tradecanvas.dev/docs/from-tradingview/) · [API](https://tradecanvas.dev/docs/api/) · [Indicators](https://tradecanvas.dev/docs/indicators/) · [Drawing tools](https://tradecanvas.dev/docs/drawing-tools/) · [Realtime](https://tradecanvas.dev/docs/realtime/) · [Trading](https://tradecanvas.dev/docs/trading/) · [Styling](https://tradecanvas.dev/docs/styling/) · [Frameworks](https://tradecanvas.dev/docs/frameworks/) · [Plugins](https://tradecanvas.dev/docs/plugins/) · [Phones and apps](https://tradecanvas.dev/docs/embed/#mobile-app) · [Performance](https://tradecanvas.dev/docs/performance/)
  109. The docs are in English, Tiếng Việt, 简体中文, 日本語, 한국어 and Español. Measurements, limits and how it is tested are on the [system audit](https://tradecanvas.dev/audit/).
  110. ## More
  111. - **Packages**: [`@tradecanvas/chart`](https://www.npmjs.com/package/@tradecanvas/chart) (the chart and the widget), [`react`](https://www.npmjs.com/package/@tradecanvas/react) · [`vue`](https://www.npmjs.com/package/@tradecanvas/vue) · [`svelte`](https://www.npmjs.com/package/@tradecanvas/svelte), and [`analytics`](https://www.npmjs.com/package/@tradecanvas/analytics) for backtests, and [`mcp`](https://www.npmjs.com/package/@tradecanvas/mcp) for coding agents.
  112. - **Previews**: every pull request and commit on `main` is on [pkg.pr.new](https://pkg.pr.new/~/bonguynvan/tradecanvas), installable before a release.
  113. - **Browsers**: Chrome 80+, Edge 80+, Firefox 80+, Safari 14+.
  114. - **Licence**: MIT, one licence for everyone, a personal project or a company's product: no logo to show, nothing to apply for.
  115. - **For businesses**: the [For businesses](https://tradecanvas.dev/business/) page answers an IT review. business@tradecanvas.dev
  116. - **Related**: [bo-grid](https://github.com/bonguynvan/bo-grid), a fast Svelte data grid for the table half of a trading desk.
  117. - **Contributing**: questions in [Discussions](https://github.com/bonguynvan/tradecanvas/discussions), bugs in the issues, and [CONTRIBUTING.md](./CONTRIBUTING.md) for pull requests. Security issues: [SECURITY.md](./SECURITY.md).
  118. - **Sponsor**: TradeCanvas is free and built in the open; [GitHub Sponsors](https://github.com/sponsors/bonguynvan) keeps it going.
  119. [MIT](./LICENSE)

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.