JavaScript API for Chrome and Firefox
This report summarizes scanner evidence for puppeteer/puppeteer, a TypeScript project with 95,772 GitHub stars. SynthScan examined 212,074 lines of code across 1444 source files, recording 107 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.5 (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? 83 finding(s).
Are imports declared and package/API names verified? 24 finding(s).
Are wrappers, guards, and repeated structures necessary? 63 finding(s).
Which changes need focused human review? 107 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 107 distinct pattern matches across 6 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 | tools/generate-supported-browsers.ts | 38 | export function generateSupportedBrowsersTable( | CODE |
| LOW | tools/mocha-runner/src/utils.ts | 125 | export function findEffectiveExpectationForTest( | CODE |
| LOW | tools/mocha-runner/src/utils.ts | 285 | export function testIdMatchesExpectationPattern( | CODE |
| LOW | test/src/touch-event-utils.ts | 18 | export async function initializeTouchEventReport( | CODE |
| LOW | test/src/utils.ts | 167 | export function getUniqueVideoFilePlaceholder( | CODE |
| LOW | test/src/mocha-utils.ts | 171 | function adjustBrowserLaunchTimeout(context: Mocha.Context): { | CODE |
| LOW | test/src/bluetooth-emulation.test.ts | 22 | async function triggerBluetoothDevicePrompt() { | CODE |
| LOW | test/src/cdp/extensions.test.ts | 360 | function assertNoServiceWorkerReported(targets: Target[], id: string) { | CODE |
| LOW | website/src/theme/SearchBar/index.js | 49 | function usePuppeteerSearchFilters() { | CODE |
| LOW | website/src/theme/SearchPage/index.js | 44 | function useDocsSearchVersionsHelpers() { | CODE |
| LOW | …s/browsers-api/browsers.computesystemexecutablepath.md | 12 | export declare function computeSystemExecutablePath( | CODE |
| LOW | docs/browsers-api/browsers.resolvedefaultuserdatadir.md | 12 | export declare function resolveDefaultUserDataDir( | CODE |
| LOW | packages/ng-schematics/src/schematics/utils/packages.ts | 35 | export function getPackageLatestNpmVersion(name: string): Promise<NodePackage> { | CODE |
| LOW | packages/ng-schematics/src/schematics/utils/packages.ts | 82 | export function addPackageJsonDependencies( | CODE |
| LOW | packages/ng-schematics/src/schematics/utils/packages.ts | 105 | export function getDependenciesFromOptions( | CODE |
| LOW | packages/browsers/test/src/utils.ts | 18 | export function createMockedReadlineInterface( | CODE |
| LOW | packages/browsers/test/src/fileUtil.test.ts | 123 | function assertTestArchiveUnpacked(): void { | CODE |
| LOW | packages/browsers/src/launch.ts | 104 | export function computeSystemExecutablePath( | CODE |
| LOW | packages/browsers/src/launch.ts | 272 | function unsubscribeFromProcessEvent( | CODE |
| LOW | packages/browsers/src/browser-data/browser-data.ts | 65 | async function resolveBuildIdForBrowserTag( | CODE |
| LOW | packages/browsers/src/browser-data/browser-data.ts | 232 | export function resolveSystemExecutablePath( | CODE |
| LOW | packages/browsers/src/browser-data/browser-data.ts | 256 | export function resolveDefaultUserDataDir( | CODE |
| LOW | packages/browsers/src/browser-data/browser-data.ts | 280 | export function resolveSystemExecutablePaths( | CODE |
| LOW⚡ | packages/browsers/src/browser-data/chrome.ts | 79 | export function changeBaseVersionUrlForTesting(url: string): void { | CODE |
| LOW⚡ | packages/browsers/src/browser-data/chrome.ts | 82 | export function resetBaseVersionUrlForTesting(): void { | CODE |
| LOW⚡ | packages/browsers/src/browser-data/chrome.ts | 86 | export async function getLastKnownGoodReleaseForChannel( | CODE |
| LOW | packages/browsers/src/browser-data/chrome.ts | 110 | export async function getLastKnownGoodReleaseForMilestone( | CODE |
| LOW | packages/browsers/src/browser-data/chrome.ts | 122 | export async function getLastKnownGoodReleaseForBuild( | CODE |
| LOW | packages/browsers/src/browser-data/chrome.ts | 249 | function getChromeLinuxOrWslLocation( | CODE |
| LOW | packages/browsers/src/browser-data/chrome.ts | 281 | export function resolveSystemExecutablePaths( | CODE |
| LOW | packages/browsers/src/browser-data/chrome.ts | 327 | export function resolveDefaultUserDataDir( | CODE |
| LOW | packages/browsers/src/browser-data/chrome.ts | 408 | function getBaseUserDataDirPathMac() { | CODE |
| LOW | packages/browsers/src/browser-data/types.ts | 75 | export function verifyChromeReleaseChannel( | CODE |
| LOW | packages/browsers/src/browser-data/firefox.ts | 169 | export function changeBaseVersionUrlForTesting(url: string): void { | CODE |
| LOW | packages/browsers/src/browser-data/firefox.ts | 173 | export function resetBaseVersionUrlForTesting(): void { | CODE |
| LOW | packages/browsers/src/browser-data/firefox.ts | 212 | function defaultProfilePreferences( | CODE |
| LOW | packages/puppeteer-core/src/cdp/TargetManager.ts | 37 | function isPageTargetBecomingPrimary( | CODE |
| LOW | packages/puppeteer-core/src/cdp/utils.ts | 201 | export function valueFromRemoteObjectReference(handle: JSHandle): string { | CODE |
| LOW | packages/puppeteer-core/src/cdp/utils.ts | 221 | export function valueFromPrimitiveRemoteObject( | CODE |
| LOW | packages/puppeteer-core/src/cdp/utils.ts | 321 | export function convertConsoleMessageLevel(method: string): ConsoleMessageType { | CODE |
| LOW | packages/puppeteer-core/src/cdp/Page.ts | 104 | export function convertSameSiteFromPuppeteerToCdp( | CODE |
| LOW | packages/puppeteer-core/src/cdp/Page.ts | 1466 | export function convertCookiesPartitionKeyFromPuppeteerToCdp( | CODE |
| LOW | packages/puppeteer-core/src/util/decorators.ts | 88 | export function invokeAtMostOnceForArguments( | CODE |
| LOW | packages/puppeteer-core/src/util/ErrorLike.ts | 52 | export function createProtocolErrorMessage(object: { | CODE |
| LOW | …es/puppeteer-core/src/util/incremental-id-generator.ts | 10 | export function createIncrementalIdGenerator(): GetIdFn { | CODE |
| LOW | packages/puppeteer-core/src/bidi/HTTPRequest.test.ts | 56 | async function unhandledRejectionsOnAuthenticate( | CODE |
| LOW | packages/puppeteer-core/src/bidi/Page.ts | 1085 | function testUrlMatchCookieHostname( | CODE |
| LOW | packages/puppeteer-core/src/bidi/Page.ts | 1200 | function cdpSpecificCookiePropertiesFromBidiToPuppeteer( | CODE |
| LOW | packages/puppeteer-core/src/bidi/Page.ts | 1217 | export function cdpSpecificCookiePropertiesFromPuppeteerToBidi( | CODE |
| LOW | packages/puppeteer-core/src/bidi/Page.ts | 1230 | function convertCookiesSameSiteBiDiToCdp( | CODE |
| LOW | packages/puppeteer-core/src/bidi/Page.ts | 1245 | export function convertCookiesSameSiteCdpToBiDi( | CODE |
| LOW | packages/puppeteer-core/src/bidi/Page.ts | 1260 | export function convertCookiesExpiryCdpToBiDi( | CODE |
| LOW | packages/puppeteer-core/src/bidi/Page.ts | 1266 | export function convertCookiesPartitionKeyFromPuppeteerToBiDi( | CODE |
| LOW | packages/puppeteer-core/src/bidi/util.ts | 29 | export function convertConsoleMessageLevel(method: string): ConsoleMessageType { | CODE |
| LOW | packages/puppeteer-core/src/common/GetQueryHandler.ts | 30 | export function getQueryHandlerAndSelector(selector: string): { | CODE |
| LOW | packages/puppeteer-core/src/common/util.ts | 248 | export async function getReadableFromProtocolStream( | CODE |
| LOW | packages/puppeteer-core/src/common/util.ts | 405 | function convertPrintParameterToInches( | CODE |
| LOW | packages/puppeteer-core/src/common/util.ts | 499 | export function assertSupportedUrlRestrictions(options: { | CODE |
| LOW | packages/puppeteer-core/src/api/Page.ts | 720 | export function setDefaultScreenshotOptions(options: ScreenshotOptions): void { | CODE |
| LOW | packages/puppeteer-core/src/node/BrowserLauncher.ts | 76 | export function getBrowserTypeDisplayName( | CODE |
| 3 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/src/defaultbrowsercontext.test.ts | 27 | value: 'John Doe', | CODE |
| LOW | test/src/defaultbrowsercontext.test.ts | 45 | value: 'John Doe', | CODE |
| LOW | test/src/defaultbrowsercontext.test.ts | 55 | value: 'John Doe', | CODE |
| LOW | test/src/accessibility.test.ts | 36 | <input aria-placeholder="placeholder" value="and a value" /> | CODE |
| LOW | test/src/accessibility.test.ts | 39 | aria-placeholder="placeholder" | CODE |
| LOW | test/src/accessibility.test.ts | 63 | {role: 'textbox', name: 'placeholder', value: 'and a value'}, | CODE |
| LOW | test/src/accessibility.test.ts | 66 | name: 'placeholder', | CODE |
| LOW | test/src/autofill.test.ts | 45 | {name: 'NAME_FULL', value: 'Jane Doe'}, | CODE |
| LOW | test/src/autofill.test.ts | 46 | {name: 'ADDRESS_HOME_STREET_ADDRESS', value: '123 Main St'}, | CODE |
| LOW | test/src/followSymlinks.test.ts | 128 | await fs.promises.writeFile(targetFile, 'placeholder'); | CODE |
| LOW | test/src/followSymlinks.test.ts | 150 | await fs.promises.writeFile(targetFile, 'placeholder'); | CODE |
| LOW | test/src/followSymlinks.test.ts | 172 | await fs.promises.writeFile(targetFile, 'placeholder'); | CODE |
| LOW | test/src/followSymlinks.test.ts | 190 | await fs.promises.writeFile(targetFile, 'placeholder'); | CODE |
| LOW | test/src/followSymlinks.test.ts | 248 | await fs.promises.writeFile(targetFile, 'placeholder'); | CODE |
| LOW | test/src/cookies.test.ts | 34 | value: 'John Doe', | CODE |
| LOW | test/src/cookies.test.ts | 150 | value: 'John Doe', | CODE |
| LOW | packages/puppeteer-core/src/util/encoding.test.ts | 21 | const body = 'Lorem ipsum dolor sit amet'; | CODE |
| LOW | packages/puppeteer-core/src/util/encoding.test.ts | 21 | const body = 'Lorem ipsum dolor sit amet'; | CODE |
| LOW | packages/puppeteer-core/src/util/encoding.test.ts | 34 | const body = btoa('Lorem ipsum dolor sit amet'); | CODE |
| LOW | packages/puppeteer-core/src/util/encoding.test.ts | 34 | const body = btoa('Lorem ipsum dolor sit amet'); | CODE |
| LOW | packages/puppeteer-core/src/api/HTTPRequest.test.ts | 26 | const body = 'Lorem ipsum dolor sit amet'; | CODE |
| LOW | packages/puppeteer-core/src/api/HTTPRequest.test.ts | 26 | const body = 'Lorem ipsum dolor sit amet'; | CODE |
| LOW | packages/puppeteer-core/src/api/HTTPRequest.test.ts | 49 | const body = 'Lorem ipsum dolor sit amet'; | CODE |
| LOW | packages/puppeteer-core/src/api/HTTPRequest.test.ts | 49 | const body = 'Lorem ipsum dolor sit amet'; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/third_party/validate-licenses.ts | 1 | // The MIT License | COMMENT |
| LOW | test/assets/offscreenbuttons.html | 1 | <!DOCTYPE html> | COMMENT |
| LOW | docs/troubleshooting.md | 441 | && apt-get update \ | COMMENT |
| LOW | packages/testserver/src/index.ts | 41 | COMMENT | |
| LOW | packages/puppeteer-core/src/cdp/HTTPResponse.ts | 21 | export class CdpHTTPResponse extends HTTPResponse { | COMMENT |
| LOW | packages/puppeteer-core/src/cdp/Accessibility.ts | 381 | #hasErrormessage = false; | COMMENT |
| LOW | packages/puppeteer-core/src/cdp/NetworkManager.ts | 81 | * @internal | COMMENT |
| LOW | packages/puppeteer-core/src/cdp/TargetManager.ts | 101 | // before resolving puppeteer.connect() or launch() to avoid flakiness. | COMMENT |
| LOW | packages/puppeteer-core/src/cdp/TargetManager.ts | 361 | COMMENT | |
| LOW | packages/puppeteer-core/src/cdp/Browser.ts | 121 | #closeCallback: BrowserCloseCallback; | COMMENT |
| LOW | packages/puppeteer-core/src/cdp/LifecycleWatcher.ts | 61 | COMMENT | |
| LOW | packages/puppeteer-core/src/cdp/Page.ts | 141 | } | COMMENT |
| LOW | packages/puppeteer-core/src/node/ScreenRecorder.ts | 181 | ], | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/src/elementhandle.test.ts | 105 | // Step 1: Add Frame and position it absolutely. | COMMENT |
| LOW⚡ | test/src/elementhandle.test.ts | 114 | // Step 2: Add div and position it absolutely inside frame. | COMMENT |
| LOW | test/src/elementhandle.test.ts | 133 | // Step 3: query div's boxModel and assert box values. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/src/elementhandle.test.ts | 105 | // Step 1: Add Frame and position it absolutely. | COMMENT |
| LOW⚡ | test/src/elementhandle.test.ts | 114 | // Step 2: Add div and position it absolutely inside frame. | COMMENT |
| LOW | test/src/elementhandle.test.ts | 133 | // Step 3: query div's boxModel and assert box values. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/browsers/src/install.ts | 560 | // TODO: Handle error here. Currently the setup.exe sometimes | COMMENT |