A terminal for the web
This report summarizes scanner evidence for xtermjs/xterm.js, a TypeScript project with 21,306 GitHub stars. SynthScan examined 110,485 lines of code across 506 source files, recording 97 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 2.1 (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? 74 finding(s).
Are imports declared and package/API names verified? 23 finding(s).
Are wrappers, guards, and repeated structures necessary? 36 finding(s).
Which changes need focused human review? 97 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 97 distinct pattern matches across 12 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 |
|---|---|---|---|---|
| CRITICAL | addons/addon-image/test/ImageAddon.test.ts | 120 | strictEqual(await ctx.page.evaluate('window.term._core.buffer.lines.get(0)._data instanceof Uint32Array'), true); | CODE |
| CRITICAL | addons/addon-image/test/ImageAddon.test.ts | 121 | strictEqual(await ctx.page.evaluate('window.term._core.buffer.lines.get(0)._extendedAttrs instanceof Object'), true) | CODE |
| CRITICAL | addons/addon-image/src/ImageStorage.ts | 197 | this._terminal._core._inputHandler._dirtyRowTracker.markDirty(buffer.y); | CODE |
| CRITICAL | addons/addon-image/src/ImageStorage.ts | 212 | this._terminal._core._inputHandler._dirtyRowTracker.markDirty(buffer.y); | CODE |
| CRITICAL | addons/addon-ligatures/src/fontLigatures/index.ts | 31 | const caltFeatures = this._font.tables.gsub && this._font.tables.gsub.features.filter((f: { tag: string }) => f.tag | CODE |
| CRITICAL⚡ | src/browser/CoreBrowserTerminal.ts | 1150 | const canvasWidth = this._renderService.dimensions.css.canvas.width.toFixed(0); | CODE |
| CRITICAL⚡ | src/browser/CoreBrowserTerminal.ts | 1151 | const canvasHeight = this._renderService.dimensions.css.canvas.height.toFixed(0); | CODE |
| CRITICAL⚡ | src/browser/CoreBrowserTerminal.ts | 1155 | const cellWidth = this._renderService.dimensions.css.cell.width.toFixed(0); | CODE |
| CRITICAL⚡ | src/browser/CoreBrowserTerminal.ts | 1156 | const cellHeight = this._renderService.dimensions.css.cell.height.toFixed(0); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | demo/client/client.ts | 446 | function updateTerminalContainerBackground(): void { | CODE |
| LOW | demo/client/components/window/testWindow.ts | 322 | function customGlyphAlignmentHandler(term: Terminal): void { | CODE |
| LOW | test/benchmark/DecorationService.benchmark.ts | 18 | function registerSingleLineDecorations(service: DecorationService, bufferService: MockBufferService, count: number): voi | CODE |
| LOW | test/playwright/SharedRendererTests.ts | 17 | export function injectSharedRendererTests(ctx: ISharedRendererTestContext): void { | CODE |
| LOW | test/playwright/SharedRendererTests.ts | 1503 | async function getCellDomBackgroundColor(ctx: ITestContext, col: number, row: number): Promise<[number, number, number, | CODE |
| LOW | test/playwright/SharedRendererTests.ts | 1508 | async function getCellDomForegroundColor(ctx: ITestContext, col: number, row: number): Promise<[number, number, number, | CODE |
| LOW | test/playwright/SharedRendererTests.ts | 1528 | export function injectSharedRendererTestsStandalone(ctx: ISharedRendererTestContext, setupCb: () => Promise<void> | void | CODE |
| LOW | addons/addon-webgl/test/WebglSharedAtlasGarble.test.ts | 130 | function generateColoredAsciiFlood(cells: number, offset: number = 0): string { | CODE |
| LOW | addons/addon-webgl/test/WebglAtlasStress.test.ts | 144 | function generateSyntheticTuiFrames(frameCount: number, cols: number, rows: number): string[] { | CODE |
| LOW | addons/addon-webgl/src/GlyphRenderer.ts | 59 | function createFragmentShaderSource(maxFragmentShaderTextureUnits: number): string { | CODE |
| LOW | addons/addon-webgl/src/TextureAtlas.ts | 1195 | function checkCompletelyTransparent(imageData: ImageData): boolean { | CODE |
| LOW | addons/addon-webgl/src/DevicePixelObserver.ts | 8 | export function observeDevicePixelDimensions(element: HTMLElement, parentWindow: Window & typeof globalThis, callback: ( | CODE |
| LOW | …/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts | 196 | function drawPathDefinitionCharacter( | CODE |
| LOW | …/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts | 405 | function drawPathNegativeDefinitionCharacter( | CODE |
| LOW | …/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts | 531 | function drawPathFunctionCharacter( | CODE |
| LOW | addons/addon-web-links/test/WebLinksAddon.test.ts | 165 | async function resetAndHover(col: number, row: number): Promise<void> { | CODE |
| LOW | …addon-ligatures/src/fontLigatures/processors/helper.ts | 151 | function getSubstitutionAtPositionRange(substitutions: ISubstitutionLookupRecord[], lookups: Lookup[], index: number, ra | CODE |
| LOW | …addon-ligatures/src/fontLigatures/processors/helper.ts | 168 | function getSubstitutionAtPosition(substitutions: ISubstitutionLookupRecord[], lookups: Lookup[], index: number, glyphId | CODE |
| LOW | …ligatures/src/fontLigatures/processors/substitution.ts | 12 | export function getRangeSubstitutionGlyphs(table: SubstitutionTable, glyphId: [number, number]): Map<[number, number] | | CODE |
| LOW | …ligatures/src/fontLigatures/processors/substitution.ts | 41 | export function getIndividualSubstitutionGlyph(table: SubstitutionTable, glyphId: number): number | null { | CODE |
| LOW | src/browser/Dom.ts | 56 | export function addStandardDisposableListener(node: HTMLElement, type: string, handler: (event: any) => void, useCapture | CODE |
| LOW | src/browser/Dom.ts | 154 | export function scheduleAtNextAnimationFrame(targetWindow: Window, runner: () => void, priority: number = 0): IDisposabl | CODE |
| LOW | src/browser/Clipboard.ts | 66 | export function moveTextAreaUnderMouseCursor(ev: MouseEvent, textarea: HTMLTextAreaElement, screenElement: HTMLElement): | CODE |
| LOW | src/browser/renderer/shared/RendererUtils.ts | 22 | export function isRestrictedPowerlineGlyph(codepoint: number): boolean { | CODE |
| LOW | src/browser/renderer/shared/RendererUtils.ts | 63 | export function treatGlyphAsBackgroundColor(codepoint: number): boolean { | CODE |
| LOW | src/browser/renderer/shared/SelectionRenderModel.ts | 91 | export function createSelectionRenderModel(): ISelectionRenderModel { | CODE |
| LOW | src/browser/input/Mouse.ts | 6 | export function getCoordsRelativeToElement(window: Pick<Window, 'getComputedStyle'>, event: {clientX: number, clientY: n | CODE |
| LOW | src/browser/scrollable/mouseEvent.ts | 15 | function getParentWindowIfSameOrigin(w: Window): Window | null { | CODE |
| LOW | src/browser/services/MouseService.test.ts | 63 | function createTestMouseTargetElement(): HTMLElement { | CODE |
| LOW | src/common/WindowsMode.ts | 9 | export function updateWindowsModeWrappedState(bufferService: IBufferService): void { | CODE |
| LOW | src/common/input/Keyboard.test.ts | 10 | function testEvaluateKeyboardEvent(partialEvent: { | CODE |
| LOW | src/common/buffer/BufferReflow.ts | 25 | export function reflowLargerGetLinesToRemove(lines: CircularList<IBufferLine>, oldCols: number, newCols: number, bufferA | CODE |
| LOW | src/common/buffer/BufferReflow.ts | 116 | export function reflowLargerCreateNewLayout(lines: CircularList<IBufferLine>, toRemove: number[]): INewLayoutResult { | CODE |
| LOW | src/common/buffer/BufferReflow.ts | 151 | export function reflowLargerApplyNewLayout(lines: CircularList<IBufferLine>, newLayout: number[]): void { | CODE |
| LOW | src/common/buffer/BufferReflow.ts | 179 | export function reflowSmallerGetNewLineLengths(wrappedLines: BufferLine[], oldCols: number, newCols: number): number[] { | CODE |
| LOW | src/common/buffer/BufferReflow.ts | 215 | export function getWrappedLineTrimmedLength(lines: BufferLine[], i: number, cols: number): number { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/playwright/MouseTracking.test.ts | 241 | // await getReports(encoding); // clear reports | COMMENT |
| LOW | test/playwright/MouseTracking.test.ts | 361 | await pollFor(ctx.page, () => getReports(encoding), [{ col: 44, row: 25, state: { action: 'press', button: 'left', | COMMENT |
| LOW | test/playwright/MouseTracking.test.ts | 561 | { col: 44, row: 25, state: { action: 'press', button: 'left', modifier: { control: false, shift: false, meta: tr | COMMENT |
| LOW | test/playwright/MouseTracking.test.ts | 581 | // // } else { | COMMENT |
| LOW | test/playwright/MouseTracking.test.ts | 721 | // note: press/release caught by selection manager | COMMENT |
| LOW | test/playwright/MouseTracking.test.ts | 881 | { col: 44, row: 25, state: { action: 'press', button: 'left', modifier: { control: false, shift: false, meta: tr | COMMENT |
| LOW | test/playwright/MouseTracking.test.ts | 901 | // } else { | COMMENT |
| LOW | test/playwright/MouseTracking.test.ts | 1041 | { col: 44, row: 25, state: { action: 'press', button: 'left', modifier: { control: false, shift: false, meta: tr | COMMENT |
| LOW | test/playwright/MouseTracking.test.ts | 1061 | // } else { | COMMENT |
| LOW | test/playwright/MouseTracking.test.ts | 1221 | // await mouseMove(44, 24); | COMMENT |
| LOW | test/playwright/MouseTracking.test.ts | 1381 | // SHIFT | COMMENT |
| LOW | addons/addon-image/fixture/gcrglf.sh | 41 | # (Sixel Display Mode). They control the same thing, so when DECSDM is | COMMENT |
| LOW | addons/addon-image/fixture/textcursor.sh | 1 | #!/bin/bash | COMMENT |
| LOW | addons/addon-image/fixture/textcursor.sh | 21 | # then, the text will overlap the image when a>b. | COMMENT |
| LOW | addons/addon-image/fixture/textcursor.sh | 41 | # will potentially overlap the last row of sixels! | COMMENT |
| LOW | addons/addon-webgl/src/WebglRenderer.ts | 681 | // correctly within the cell. | COMMENT |
| LOW | …addon-webgl/src/customGlyphs/CustomGlyphDefinitions.ts | 281 | // | COMMENT |
| LOW | addons/addon-web-links/src/WebLinksAddon.ts | 1 | /** | COMMENT |
| LOW | …ddon-unicode-graphemes/src/third-party/unicode-trie.ts | 41 | COMMENT | |
| LOW | src/common/InputHandler.ts | 301 | // 11 - Change VT100 text background color to Pt. | COMMENT |
| LOW | src/common/parser/EscapeSequenceParser.ts | 21 | // @vt: #Y ESC ST "String Terminator" "ESC \\" "Terminator used for string type sequences." | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/benchmark/EscapeSequenceParser.benchmark.ts | 259 | const data = '\x1b]0;Lorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\'; | CODE |
| LOW | test/benchmark/EscapeSequenceParser.benchmark.ts | 259 | const data = '\x1b]0;Lorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\'; | CODE |
| LOW | test/benchmark/EscapeSequenceParser.benchmark.ts | 289 | const data = '\x1b]1;Lorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\'; | CODE |
| LOW | test/benchmark/EscapeSequenceParser.benchmark.ts | 289 | const data = '\x1b]1;Lorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\'; | CODE |
| LOW | test/benchmark/EscapeSequenceParser.benchmark.ts | 319 | const data = '\x1bPpLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\'; | CODE |
| LOW | test/benchmark/EscapeSequenceParser.benchmark.ts | 319 | const data = '\x1bPpLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\'; | CODE |
| LOW | test/benchmark/EscapeSequenceParser.benchmark.ts | 349 | const data = '\x1bPqLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\'; | CODE |
| LOW | test/benchmark/EscapeSequenceParser.benchmark.ts | 349 | const data = '\x1bPqLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\'; | CODE |
| LOW | test/benchmark/EscapeSequenceParser.benchmark.ts | 379 | const data = '\x1b_XLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\'; | CODE |
| LOW | test/benchmark/EscapeSequenceParser.benchmark.ts | 379 | const data = '\x1b_XLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\'; | CODE |
| LOW | test/benchmark/EscapeSequenceParser.benchmark.ts | 409 | const data = '\x1b_YLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\'; | CODE |
| LOW | test/benchmark/EscapeSequenceParser.benchmark.ts | 409 | const data = '\x1b_YLorem ipsum dolor sit amet, consetetur sadipscing elitr.\x1b\\'; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/common/Types.ts | 316 | print(data: Uint32Array, start: number, end: number): void; | CODE |
| HIGH | src/common/parser/EscapeSequenceParser.test.ts | 122 | print(data: Uint32Array, start: number, end: number): void { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts | 339 | // Step 1: Compute (x1', y1') | COMMENT |
| LOW⚡ | …/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts | 345 | // Step 2: Compute (cx', cy') | COMMENT |
| LOW⚡ | …/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts | 367 | // Step 3: Compute (cx, cy) from (cx', cy') | COMMENT |
| LOW⚡ | …/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts | 371 | // Step 4: Compute angles | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts | 339 | // Step 1: Compute (x1', y1') | COMMENT |
| LOW⚡ | …/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts | 345 | // Step 2: Compute (cx', cy') | COMMENT |
| LOW⚡ | …/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts | 367 | // Step 3: Compute (cx, cy) from (cx', cy') | COMMENT |
| LOW⚡ | …/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts | 371 | // Step 4: Compute angles | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | addons/addon-image/test/KittyGraphics.test.ts | 104 | // TODO: Add tests for larger images with various dimensions | COMMENT |
| LOW⚡ | addons/addon-image/test/KittyGraphics.test.ts | 105 | // TODO: Add tests for virtual placement (U=1) | COMMENT |
| LOW⚡ | addons/addon-image/test/KittyGraphics.test.ts | 106 | // TODO: Add tests for animation frames | COMMENT |
| LOW | src/browser/services/MouseService.test.ts | 230 | // TODO: implement AUX button tests | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | addons/addon-image/fixture/textcursor.sh | 138 | # color, so remove the color definition and just use the defaults. | COMMENT |
| MEDIUM | …/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts | 518 | // Apply pattern offset to ensure seamless tiling across cells when cell dimensions are odd. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bin/update-website.sh | 30 | # Create a PR in the GitHub repo | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/browser/CoreBrowserTerminal.ts | 419 | // is to workaround a problem where highly dynamic TUIs like agentic CLIs reprint agressively | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bin/vs_base_find_unused.js | 40 | // Example usage | COMMENT |