Web Extension for saving a faithful copy of a complete web page in a single HTML file
This report summarizes scanner evidence for gildas-lormeau/SingleFile, a JavaScript project with 22,791 GitHub stars. SynthScan examined 69,201 lines of code across 155 source files, recording 50 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.3 (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? 43 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 37 finding(s).
Which changes need focused human review? 50 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 50 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 | lib/single-file-extension-editor.js | 345 | async function serializeCircularReference(data, value) { | CODE |
| LOW | lib/single-file-extension-editor.js | 3282 | function truncateDataLineTerminator(data) { | CODE |
| LOW | lib/single-file-extension-editor.js | 3363 | function getMetaContentTypeElements(document) { | CODE |
| LOW | lib/single-file-extension-editor.js | 3970 | function getDefaultArchiveTocContent() { | CODE |
| LOW | lib/single-file-extension-editor.js | 3992 | function disableFramePointerEvents(doc) { | CODE |
| LOW | lib/single-file-extension-editor.js | 4805 | function insertHighlightStylesheet(doc) { | CODE |
| LOW | lib/single-file-hooks-frames.js | 1 | !function(){"use strict";(()=>{const e="single-file-lazy-load",t="single-file-load-image",n="single-file-request-get-ado | CODE |
| LOW | src/ui/content/content-ui-editor-web.js | 587 | function getDefaultArchiveTocContent() { | CODE |
| LOW | src/ui/content/content-ui-editor-web.js | 609 | function disableFramePointerEvents(doc) { | CODE |
| LOW | src/ui/content/content-ui-editor-web.js | 1422 | function insertHighlightStylesheet(doc) { | CODE |
| LOW | src/ui/content/content-ui.js | 592 | function createCancelButtonElement(maskElement, cancelSave) { | CODE |
| LOW | src/ui/common/filename-replacement.js | 57 | function getReplacedCharactersOptions(replacements) { | CODE |
| LOW | src/ui/common/filename-replacement.js | 109 | function replaceMatchingCharacters(filename, characters, quantifier, replacement) { | CODE |
| LOW | src/ui/bg/ui-options-editor.js | 58 | async function refreshExternalComponents(config) { | CODE |
| LOW | src/ui/bg/ui-options.js | 1360 | function displayReplacementCharacterPlaceholders() { | CODE |
| LOW | src/ui/bg/ui-options.js | 1366 | function displayReplacementsPreview() { | CODE |
| LOW | src/ui/bg/ui-options.js | 1568 | async function refreshExternalComponents() { | CODE |
| LOW | src/ui/bg/ui-options.js | 1635 | async function initExternalCapturePermissions() { | CODE |
| LOW | src/ui/bg/ui-options.js | 1668 | async function refreshExternalCapturePermissions() { | CODE |
| LOW | src/ui/bg/ui-options.js | 1674 | async function updateExternalCapturePermissions() { | CODE |
| LOW | src/ui/bg/ui-options.js | 1685 | async function respondExternalCaptureRequest(approved) { | CODE |
| LOW | src/ui/bg/ui-options.js | 1704 | async function storeExternalCaptureDecision(extensionId, displayName, approved) { | CODE |
| LOW | src/ui/bg/ui-options.js | 1759 | async function disableDestinationPermissions(permissions, disableGDrive = true, disableDropbox = true) { | CODE |
| LOW | src/ui/bg/ui-menus.js | 425 | async function refreshExternalComponents(tab) { | CODE |
| LOW | src/core/bg/external-capture-permissions.js | 90 | function getOrCreatePendingRequest(extensionId, sender, message = {}) { | CODE |
| LOW | src/core/bg/external-capture-permissions.js | 90 | function getOrCreatePendingRequest(extensionId, sender, message = {}) { | CODE |
| LOW | src/core/bg/downloads.js | 304 | async function downloadCompressedContent(message, tab) { | CODE |
| LOW | src/core/bg/downloads.js | 641 | async function promptConflictingFilename(tabId, filename) { | CODE |
| LOW | src/core/bg/config.js | 450 | async function getExternalCapturePermissions() { | CODE |
| LOW | src/core/bg/config.js | 466 | async function setExternalCapturePermissions({ allowedExtensions, deniedExtensions } = {}) { | CODE |
| LOW | src/core/bg/business.js | 374 | async function createTabAndWaitUntilComplete(createProperties) { | CODE |
| LOW | src/lib/single-file/fetch/content/content-fetch.js | 184 | function isStylesheetReferrerEmpty(url, { stylesheetURL, stylesheetReferrerPolicy } = {}) { | CODE |
| LOW | src/lib/yabson/yabson.js | 329 | async function serializeCircularReference(data, value) { | CODE |
| LOW | src/lib/mhtml-to-html/parse.js | 514 | function truncateDataLineTerminator(data) { | CODE |
| LOW | src/lib/mhtml-to-html/parse.js | 595 | function getMetaContentTypeElements(document) { | CODE |
| LOW | src/lib/gdrive/gdrive.js | 359 | function nativeWebAuthFlowSupported() { | CODE |
| LOW | src/lib/gdrive/gdrive.js | 400 | async function getOrCreateFolder(gdrive, folderName, parentFolderId) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | lib/single-file.js | 1 | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?def | CODE |
| CRITICAL | lib/single-file-extension-editor.js | 3177 | const cssCharset = charsetNode.prelude.children.first.value.toLowerCase(); | CODE |
| CRITICAL | src/lib/mhtml-to-html/parse.js | 409 | const cssCharset = charsetNode.prelude.children.first.value.toLowerCase(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | lib/single-file.js | 1 | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?def | CODE |
| MEDIUM⚡ | lib/single-file.js | 1 | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?def | CODE |
| MEDIUM⚡ | lib/single-file-extension-editor-helper.js | 1 | !function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?def | CODE |
| MEDIUM⚡ | lib/single-file-extension-editor-helper.js | 1 | !function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?def | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | lib/single-file.js | 1 | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?def | CODE |
| LOW⚡ | lib/single-file-extension-editor-helper.js | 1 | !function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?def | CODE |
| LOW | lib/single-file-frames.js | 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?def | CODE |
| LOW | lib/single-file-bootstrap.js | 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?def | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/single-file-extension-editor.js | 1701 | const regexNonNegativeInteger = /^\d+$/; | COMMENT |
| LOW | src/lib/mhtml-to-html/srcset-parser.js | 81 | const regexNonNegativeInteger = /^\d+$/; | COMMENT |