Performant financial charts built with HTML5 canvas
This report summarizes scanner evidence for tradingview/lightweight-charts, a TypeScript project with 17,736 GitHub stars. SynthScan examined 211,020 lines of code across 1907 source files, recording 170 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.8 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 170 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 146 finding(s).
Which changes need focused human review? 170 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 170 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | website/plugins/suppress-resize-observer-error/index.js | 6 | module.exports = function suppressResizeObserverError() { | CODE |
| LOW | …e/plugins/enhanced-codeblock/theme/CodeBlock/index.jsx | 16 | export function replaceThemeConstantStrings(originalString, isDarkTheme) { | CODE |
| LOW | website/plugins/docs-markdown/index.js | 733 | function rewriteReferenceDefinitions(body, ctx) { | CODE |
| LOW | …docs/plugins/pixel-perfect-rendering/widths/columns.md | 148 | function fixPositionsAndReturnSmallestWidth( | CODE |
| LOW | …docs/plugins/pixel-perfect-rendering/widths/columns.md | 161 | function fixAlignmentForNarrowColumns( | CODE |
| LOW | …docs/plugins/pixel-perfect-rendering/widths/columns.md | 227 | export function calculateColumnPositionsInPlace( | CODE |
| LOW | …cs/plugins/pixel-perfect-rendering/widths/crosshair.md | 35 | export function gridAndCrosshairBitmapWidth( | CODE |
| LOW | …cs/plugins/pixel-perfect-rendering/widths/crosshair.md | 46 | export function gridAndCrosshairMediaWidth( | CODE |
| LOW | website/tutorials/a11y/assets/a11y-chart.html | 448 | function setTooltipContentFromTemplate(id) { | CODE |
| LOW | website/tutorials/demos/moving-average.js | 89 | function calculateMovingAverageSeriesData(candleData, maLength) { | CODE |
| LOW | …-5.1/plugins/pixel-perfect-rendering/widths/columns.md | 148 | function fixPositionsAndReturnSmallestWidth( | CODE |
| LOW | …-5.1/plugins/pixel-perfect-rendering/widths/columns.md | 161 | function fixAlignmentForNarrowColumns( | CODE |
| LOW | …-5.1/plugins/pixel-perfect-rendering/widths/columns.md | 227 | export function calculateColumnPositionsInPlace( | CODE |
| LOW | ….1/plugins/pixel-perfect-rendering/widths/crosshair.md | 35 | export function gridAndCrosshairBitmapWidth( | CODE |
| LOW | ….1/plugins/pixel-perfect-rendering/widths/crosshair.md | 46 | export function gridAndCrosshairMediaWidth( | CODE |
| LOW | …-5.0/plugins/pixel-perfect-rendering/widths/columns.md | 148 | function fixPositionsAndReturnSmallestWidth( | CODE |
| LOW | …-5.0/plugins/pixel-perfect-rendering/widths/columns.md | 161 | function fixAlignmentForNarrowColumns( | CODE |
| LOW | …-5.0/plugins/pixel-perfect-rendering/widths/columns.md | 227 | export function calculateColumnPositionsInPlace( | CODE |
| LOW | ….0/plugins/pixel-perfect-rendering/widths/crosshair.md | 35 | export function gridAndCrosshairBitmapWidth( | CODE |
| LOW | ….0/plugins/pixel-perfect-rendering/widths/crosshair.md | 46 | export function gridAndCrosshairMediaWidth( | CODE |
| LOW | …-4.2/plugins/pixel-perfect-rendering/widths/columns.md | 148 | function fixPositionsAndReturnSmallestWidth( | CODE |
| LOW | …-4.2/plugins/pixel-perfect-rendering/widths/columns.md | 161 | function fixAlignmentForNarrowColumns( | CODE |
| LOW | …-4.2/plugins/pixel-perfect-rendering/widths/columns.md | 227 | export function calculateColumnPositionsInPlace( | CODE |
| LOW | ….2/plugins/pixel-perfect-rendering/widths/crosshair.md | 35 | export function gridAndCrosshairBitmapWidth( | CODE |
| LOW | ….2/plugins/pixel-perfect-rendering/widths/crosshair.md | 46 | export function gridAndCrosshairMediaWidth( | CODE |
| LOW | …-5.2/plugins/pixel-perfect-rendering/widths/columns.md | 148 | function fixPositionsAndReturnSmallestWidth( | CODE |
| LOW | …-5.2/plugins/pixel-perfect-rendering/widths/columns.md | 161 | function fixAlignmentForNarrowColumns( | CODE |
| LOW | …-5.2/plugins/pixel-perfect-rendering/widths/columns.md | 227 | export function calculateColumnPositionsInPlace( | CODE |
| LOW | ….2/plugins/pixel-perfect-rendering/widths/crosshair.md | 35 | export function gridAndCrosshairBitmapWidth( | CODE |
| LOW | ….2/plugins/pixel-perfect-rendering/widths/crosshair.md | 46 | export function gridAndCrosshairMediaWidth( | CODE |
| LOW | …-4.1/plugins/pixel-perfect-rendering/widths/columns.md | 148 | function fixPositionsAndReturnSmallestWidth( | CODE |
| LOW | …-4.1/plugins/pixel-perfect-rendering/widths/columns.md | 161 | function fixAlignmentForNarrowColumns( | CODE |
| LOW | …-4.1/plugins/pixel-perfect-rendering/widths/columns.md | 227 | export function calculateColumnPositionsInPlace( | CODE |
| LOW | ….1/plugins/pixel-perfect-rendering/widths/crosshair.md | 35 | export function gridAndCrosshairBitmapWidth( | CODE |
| LOW | ….1/plugins/pixel-perfect-rendering/widths/crosshair.md | 46 | export function gridAndCrosshairMediaWidth( | CODE |
| LOW | website/src/components/landing-page/HeroChart/index.tsx | 51 | function useThemeAwareLayoutOptions(): DeepPartial<LayoutOptions> { | CODE |
| LOW | website/src/theme/DocItem/Content/markdown-actions.tsx | 31 | export function MarkdownActionsInContentProvider({ title, children }: { title: string | null; children: ReactNode }): Re | CODE |
| LOW | website/src/theme/DocItem/Content/markdown-actions.tsx | 35 | export function useMarkdownActionsInContent(): string | null { | CODE |
| LOW | tests/unittests/walk-line.spec.ts | 13 | function expectControlPointsWithinYRange( | CODE |
| LOW | tests/unittests/price-scale-api-options.spec.ts | 25 | function createLineSeriesOnOverlayScale(model: ChartModel<Time>): Series<'Line'> { | CODE |
| LOW | …tions/test-cases/markers/hit-test-priceline-overlap.js | 15 | function initialInteractionsToPerform() { | CODE |
| LOW | …tions/test-cases/markers/hit-test-priceline-overlap.js | 21 | function finalInteractionsToPerform() { | CODE |
| LOW | …s/test-cases/markers/price-positioned-text-hit-test.js | 15 | function initialInteractionsToPerform() { | CODE |
| LOW | …s/test-cases/markers/price-positioned-text-hit-test.js | 21 | function finalInteractionsToPerform() { | CODE |
| LOW | …/test-cases/markers/hit-test-after-timescale-change.js | 15 | function initialInteractionsToPerform() { | CODE |
| LOW | …/test-cases/markers/hit-test-after-timescale-change.js | 21 | function finalInteractionsToPerform() { | CODE |
| LOW | …s/e2e/interactions/test-cases/markers/text-hit-test.js | 15 | function initialInteractionsToPerform() { | CODE |
| LOW | …s/e2e/interactions/test-cases/markers/text-hit-test.js | 21 | function finalInteractionsToPerform() { | CODE |
| LOW | …uch/horz-page-scroll-when-handle-scroll-is-disabled.js | 15 | function initialInteractionsToPerform() { | CODE |
| LOW | …uch/horz-page-scroll-when-handle-scroll-is-disabled.js | 19 | function finalInteractionsToPerform() { | CODE |
| LOW | …dont-horz-page-scroll-when-handle-scroll-is-enabled.js | 15 | function initialInteractionsToPerform() { | CODE |
| LOW | …dont-horz-page-scroll-when-handle-scroll-is-enabled.js | 19 | function finalInteractionsToPerform() { | CODE |
| LOW | …-vertical-page-scroll-when-handle-scroll-is-enabled.js | 15 | function initialInteractionsToPerform() { | CODE |
| LOW | …-vertical-page-scroll-when-handle-scroll-is-enabled.js | 19 | function finalInteractionsToPerform() { | CODE |
| LOW | …vertical-page-scroll-when-handle-scroll-is-disabled.js | 15 | function initialInteractionsToPerform() { | CODE |
| LOW | …vertical-page-scroll-when-handle-scroll-is-disabled.js | 19 | function finalInteractionsToPerform() { | CODE |
| LOW | …t-cases/plugins/custom-series-fallback-mouse-params.js | 91 | function initialInteractionsToPerform() { | CODE |
| LOW | …t-cases/plugins/custom-series-fallback-mouse-params.js | 103 | function finalInteractionsToPerform() { | CODE |
| LOW | …ractions/test-cases/plugins/pane-primitive-hit-test.js | 112 | function initialInteractionsToPerform() { | CODE |
| LOW | …ractions/test-cases/plugins/pane-primitive-hit-test.js | 116 | function finalInteractionsToPerform() { | CODE |
| 86 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pnpm-workspace.yaml | 21 | # pnpm does not run lifecycle scripts of dependencies unless they are | COMMENT |
| LOW | website/plugins/docs-markdown/components.js | 1 | // @ts-check | COMMENT |
| LOW | …s/test-cases/time-scale/add-data-to-left-two-series.js | 201 | // shift timescale (right end of line is visible, left end of line is visible) | COMMENT |
| LOW | …2e/graphics/test-cases/time-scale/add-data-to-right.js | 181 | // ------------ | COMMENT |
| LOW | …e2e/graphics/test-cases/time-scale/add-data-to-left.js | 161 | COMMENT | |
| LOW | …/test-cases/time-scale/add-data-to-right-two-series.js | 201 | addDataToRight(data2, areaSeries2); | COMMENT |
| LOW | …e-lwc-plugin/template-workspace/src/example/preview.ts | 1 | //* The plugin catalogue frames this page next to the README, in a frame only a | COMMENT |
| LOW | …er-series/tests/interactions/options-all-or-nothing.js | 1 | // Options and data are taken all or nothing. `null` for an option holding an | COMMENT |
| LOW | …ugin-scatter-series/tests/interactions/x-follow-fit.js | 1 | // With scrolling and zooming on, whether the X axis follows the fit is decided | COMMENT |
| LOW | …in-scatter-series/tests/interactions/user-zoom-kept.js | 1 | // With zooming switched back on, the user's zoom survives data refreshes on the | COMMENT |
| LOW | …n-scatter-series/tests/interactions/x-labels-inside.js | 1 | // With scrolling and zooming on, the chart keeps an end label of the X axis | COMMENT |
| LOW | …n-scatter-series/tests/interactions/x-labels-zoomed.js | 1 | // Zoomed in by the user (the host switches zooming on), the X labels are | COMMENT |
| LOW | …gin-scatter-series/tests/interactions/x-coordinates.js | 1 | // xToCoordinate and coordinateToX convert X values to pane coordinates and | COMMENT |
| LOW | …ges/lwc-plugin-scatter-series/src/x-axis-controller.ts | 181 | #slots: readonly ScatterSlotItem[] | null = null; | COMMENT |
| LOW | .circleci/config.yml | 221 | # findings. `node16 (from ESM)` and `bundler` are the modes that | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | website/versioned_docs/version-5.1/plugins/intro.md | 18 | - Use the [create-lwc-plugin](https://www.npmjs.com/package/create-lwc-plugin) npm package to quickly scaffold a project | CODE |
| MEDIUM | website/versioned_docs/version-5.0/plugins/intro.md | 18 | - Use the [create-lwc-plugin](https://www.npmjs.com/package/create-lwc-plugin) npm package to quickly scaffold a project | CODE |
| MEDIUM | …ub/skills/lightweight-charts-plugin-authoring/SKILL.md | 343 | `### CDN` tabs) and `## Usage`, and the demo page it declares. The scaffold | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …e/realign-partially-hidden-time-scale-mark-on-right.js | 1 | function getData() { | CODE |
| LOW | …le/realign-partially-hidden-time-scale-mark-on-left.js | 1 | function getData() { | CODE |
| LOW | …s/test-cases/initial-options/tick-marks-formatter-2.js | 5 | function getData() { | CODE |
| LOW | …raphics/test-cases/initial-options/time-formatter-2.js | 5 | function getData() { | CODE |
| LOW | …ics/test-cases/initial-options/tick-marks-formatter.js | 8 | function getData() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/githooks/install.js | 43 | # This file is autogenerated | COMMENT |