Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
This report presents the forensic synthetic code analysis of nwjs/nw.js, a JavaScript project with 41,181 GitHub stars. SynthScan v2.0 examined 45,632 lines of code across 942 source files, recording 700 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 16.3 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 700 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/sync.py | 1 | CODE | |
| LOW | tools/sync.py | 6 | CODE | |
| LOW | tools/roll-deps.py | 20 | CODE | |
| LOW | tools/roll-deps.py | 21 | CODE | |
| LOW | tools/cleanup.py | 3 | CODE | |
| LOW | tools/patcher.py | 5 | CODE | |
| LOW | tools/patcher.py | 9 | CODE | |
| LOW | tools/aws_uploader.py | 5 | CODE | |
| LOW | tools/aws_uploader.py | 13 | CODE | |
| LOW | tools/getnwisrelease.py | 1 | CODE | |
| LOW | test/testpy/__init__.py | 30 | CODE | |
| LOW | test/testpy/__init__.py | 33 | CODE | |
| LOW | test/sanity/testcfg.py | 3 | CODE | |
| LOW | test/sanity/testcfg.py | 3 | CODE | |
| LOW | test/sanity/testcfg.py | 4 | CODE | |
| LOW | test/sanity/http-server-node.py | 10 | CODE | |
| LOW | test/sanity/start-page/test.py | 5 | CODE | |
| LOW | test/sanity/start-page/test.py | 7 | CODE | |
| LOW | test/sanity/worker-sharedworker/test.py | 5 | CODE | |
| LOW | test/sanity/worker-sharedworker/test.py | 7 | CODE | |
| LOW | test/sanity/issue6251-node-crypto/test.py | 3 | CODE | |
| LOW | test/sanity/issue6251-node-crypto/test.py | 4 | CODE | |
| LOW | test/sanity/issue6251-node-crypto/test.py | 5 | CODE | |
| LOW | test/sanity/issue6251-node-crypto/test.py | 7 | CODE | |
| LOW | test/sanity/issue6251-node-crypto/test.py | 7 | CODE | |
| LOW | test/sanity/issue6251-node-crypto/test.py | 9 | CODE | |
| LOW | test/sanity/issue6251-node-crypto/test.py | 10 | CODE | |
| LOW | test/sanity/issue4007-reload-lost-app-window/test.py | 1 | CODE | |
| LOW | test/sanity/issue4007-reload-lost-app-window/test.py | 5 | CODE | |
| LOW | test/sanity/issue4007-reload-lost-app-window/test.py | 6 | CODE | |
| LOW | test/sanity/issue6229-webview-executeScript/test.py | 1 | CODE | |
| LOW | test/sanity/issue6229-webview-executeScript/test.py | 3 | CODE | |
| LOW | test/sanity/issue6229-webview-executeScript/test.py | 6 | CODE | |
| LOW | test/sanity/issue6229-webview-executeScript/test.py | 7 | CODE | |
| LOW | test/sanity/crash-dump-report/test.py | 4 | CODE | |
| LOW | test/sanity/crash-dump-report/test.py | 16 | CODE | |
| LOW | test/sanity/issue4180-remote-win-open/test.py | 4 | CODE | |
| LOW | test/sanity/issue4180-remote-win-open/test.py | 5 | CODE | |
| LOW | test/sanity/issue4180-remote-win-open/test.py | 7 | CODE | |
| LOW | test/sanity/issue4180-remote-win-open/test.py | 8 | CODE | |
| LOW | test/sanity/issue4180-remote-win-open/test.py | 10 | CODE | |
| LOW | test/sanity/node-remote-negtive/test.py | 1 | CODE | |
| LOW | test/sanity/node-remote-negtive/test.py | 5 | CODE | |
| LOW | test/sanity/node-remote-negtive/test.py | 6 | CODE | |
| LOW | test/sanity/node-remote-negtive/test.py | 7 | CODE | |
| LOW | test/sanity/node-remote-negtive/test.py | 9 | CODE | |
| LOW | test/sanity/node-remote-negtive/test.py | 10 | CODE | |
| LOW | test/sanity/issue4959-stringify-window/test.py | 5 | CODE | |
| LOW | test/sanity/issue4959-stringify-window/test.py | 7 | CODE | |
| LOW | test/sanity/issue4959-stringify-window/test.py | 9 | CODE | |
| LOW | test/sanity/cookie-lost-devtools-close/test.py | 1 | CODE | |
| LOW | test/sanity/cookie-lost-devtools-close/test.py | 5 | CODE | |
| LOW | test/sanity/cookie-lost-devtools-close/test.py | 6 | CODE | |
| LOW | test/sanity/issue5882-debugging-tools-crash/test.py | 6 | CODE | |
| LOW | test/sanity/issue5882-debugging-tools-crash/test.py | 7 | CODE | |
| LOW | test/sanity/issue5882-debugging-tools-crash/test.py | 11 | CODE | |
| LOW | test/sanity/issue5882-debugging-tools-crash/test.py | 12 | CODE | |
| LOW | test/sanity/issue8107-node-inspector/test.py | 1 | CODE | |
| LOW | test/sanity/issue8107-node-inspector/test.py | 4 | CODE | |
| LOW | test/sanity/issue8107-node-inspector/test.py | 7 | CODE | |
| 469 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/utils.py | 1 | # Copyright 2008 the V8 project authors. All rights reserved. | COMMENT |
| LOW | test/testpy/__init__.py | 1 | # Copyright 2008 the V8 project authors. All rights reserved. | COMMENT |
| LOW | test/sanity/issue7197-load/js/app.6d98adfb.js | 261 | // | COMMENT |
| LOW | test/sanity/issue7197-load/js/app.6d98adfb.js | 321 | // EXTERNAL MODULE: ./src/scss/main.scss | COMMENT |
| LOW | test/sanity/issue7197-load/js/app.6d98adfb.js | 381 | COMMENT | |
| LOW | test/sanity/issue7197-load/js/app.6d98adfb.js | 401 | // | COMMENT |
| LOW | test/sanity/issue7197-load/js/app.6d98adfb.js | 921 | * Create OSX menubar | COMMENT |
| LOW | test/sanity/issue6171-sdk-start-crash/index.html | 101 | COMMENT | |
| LOW | docs/References/App.md | 81 | COMMENT | |
| LOW | docs/References/App.md | 101 | // the proxy scheme for proxy-uris is assumed to be http. | COMMENT |
| LOW | docs/References/App.md | 121 | // proxy. | COMMENT |
| LOW | src/nw_protocol_handler.h | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/nw_export.h | 1 | #ifndef NW_EXPORT_H_ | COMMENT |
| LOW | src/nw_export.h | 21 | #else // defined(COMPONENT_BUILD) | COMMENT |
| LOW | src/nw_package.h | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/paths_mac.mm | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/paths_mac.mm | 21 | #include "paths_mac.h" | COMMENT |
| LOW | src/resource.h | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/resource.h | 21 | #define IDC_PASSWORDEDIT 1011 | COMMENT |
| LOW | src/nw_version.h | 1 | // Copyright (c) 2012 Roger Wang <roger@nwjs.io> | COMMENT |
| LOW | src/nw_version.h | 21 | #ifndef NW_VERSION_H | COMMENT |
| LOW | src/nw_content.h | 1 | #ifndef NWJS_CONTENT_HOOKS_H | COMMENT |
| LOW | src/renderer/shell_content_renderer_client.h | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/renderer/autofill_agent.h | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/renderer/autofill_agent.h | 81 | // Called in a posted task by textFieldDidChange() to work-around a WebKit bug | COMMENT |
| LOW | src/renderer/nw_render_view_observer.h | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/renderer/shell_render_process_observer.h | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/renderer/printing/print_web_view_helper.h | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/renderer/printing/print_web_view_helper_mac.mm | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/renderer/common/render_messages.h | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/renderer/common/render_messages.h | 21 | #include "content/public/common/common_param_traits.h" | COMMENT |
| LOW | src/renderer/prerenderer/prerenderer_client.h | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/net/sqlite_persistent_cookie_store.h | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/net/resource_request_job.h | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/net/shell_url_request_context_getter.h | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/resources/nwapp/background.js | 1 | //console.log("nwapp/background.js"); | COMMENT |
| LOW | src/browser/app_controller_mac.mm | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/browser/file_select_helper.h | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/chrome_event_processing_window.h | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/popup_controller_common.h | 41 | COMMENT | |
| LOW | src/browser/file_select_helper_mac.mm | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/standard_menus_mac.mm | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/browser/nw_form_database_service.h | 1 | // Copyright (c) 2013 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/chrome_crash_reporter_client_mac.mm | 1 | // Copyright 2013 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/nw_content_browser_hooks.h | 81 | // ref in content/browser/renderer_host/render_process_host_impl.cc | COMMENT |
| LOW | src/browser/color_chooser_dialog.h | 41 | // shown modal to |params.owner|. Once it's closed, calls back to | COMMENT |
| LOW | src/browser/nw_autofill_client.h | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/color_chooser_mac.mm | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/browser_view_layout.h | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/standard_menus_mac.h | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/browser/app_controller_mac.h | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/browser/printing_handler.h | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/autofill_popup_view_cocoa.mm | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/capture_page_helper.h | 1 | // Copyright (c) 2012 Intel Corp | COMMENT |
| LOW | src/browser/autofill_popup_view_bridge.h | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/autofill_popup_controller_impl.h | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/autofill_popup_view_gtk.h | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/printing/print_dialog_gtk.h | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | src/browser/printing/print_view_manager.h | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. | COMMENT |
| 58 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tools/sync.py | 36 | print("Error opening DEPS file: {}".format(e)) | CODE |
| MEDIUM⚡ | tools/sync.py | 40 | print("Error: Could not find 'nw_src_revision' in DEPS file.") | CODE |
| MEDIUM⚡ | tools/sync.py | 45 | print("Error: Directory {} does not exist. Run gclient sync without --shallow first to create it.".format(src_di | CODE |
| MEDIUM⚡ | tools/sync.py | 55 | print("Error: git fetch failed with exit code {}".format(fetch_ret)) | CODE |
| MEDIUM⚡ | tools/sync.py | 61 | print("Error: git reset failed with exit code {}".format(reset_ret)) | CODE |
| LOW | tools/commit_id.py | 37 | except Exception as e: | CODE |
| MEDIUM | tools/package_binaries.py | 507 | print(f"Error: Could not write to file {output_filename}") | CODE |
| LOW | tools/cleanup.py | 20 | except Exception as e: | CODE |
| MEDIUM | tools/cleanup.py | 24 | print(f"Error scanning directory {target_dir}: {e}", file=sys.stderr) | CODE |
| LOW | test/test.py | 110 | except Exception as e: | CODE |
| LOW | test/sanity/nw_util.py | 85 | except Exception as e: | CODE |
| LOW | test/sanity/nw_util.py | 92 | except Exception as e_log: | CODE |
| LOW | test/sanity/mv3-devtools-extension/test.py | 32 | except Exception as e: | CODE |
| MEDIUM⚡ | test/sanity/app-open-event/second_instance.py | 35 | print("Error: The 'CHROMEDRIVER' environment variable is not set.") | CODE |
| LOW⚡ | test/sanity/app-open-event/second_instance.py | 36 | except Exception as e: | CODE |
| MEDIUM⚡ | test/sanity/app-open-event/second_instance.py | 37 | print(f"An error occurred: {e}") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/test.py | 57 | # --------------------------------------------- | COMMENT |
| MEDIUM | test/test.py | 59 | # --------------------------------------------- | COMMENT |
| MEDIUM | test/test.py | 373 | # ------------------------- | COMMENT |
| MEDIUM | test/test.py | 375 | # ------------------------- | COMMENT |
| MEDIUM | test/test.py | 800 | # ------------------------------------------- | COMMENT |
| MEDIUM | test/test.py | 802 | # ------------------------------------------- | COMMENT |
| MEDIUM | test/test.py | 1220 | # --------------- | COMMENT |
| MEDIUM | test/test.py | 1222 | # --------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/package_binaries.py | 128 | CODE | |
| LOW | tools/package_binaries.py | 370 | CODE | |
| LOW | tools/package_binaries.py | 401 | CODE | |
| LOW | tools/package_binaries.py | 428 | CODE | |
| LOW | tools/cleanup.py | 7 | CODE | |
| LOW | tools/aws_uploader.py | 85 | CODE | |
| LOW | test/test.py | 1019 | CODE | |
| LOW | test/test.py | 1374 | CODE | |
| LOW | test/test.py | 963 | CODE | |
| LOW | test/utils.py | 46 | CODE | |
| LOW | test/utils.py | 73 | CODE | |
| LOW | test/testpy/__init__.py | 175 | CODE | |
| LOW | test/sanity/nw_util.py | 19 | CODE | |
| LOW | test/sanity/nw_util.py | 98 | CODE | |
| LOW | test/sanity/nw_util.py | 298 | CODE | |
| LOW | test/sanity/nw_util.py | 404 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/For Users/Advanced/Use NaCl in NW.js.md | 25 | ## Step 1: Download and install the Native Client SDK | COMMENT |
| LOW | docs/For Users/Advanced/Use NaCl in NW.js.md | 28 | ## Step 2: Start a local server | COMMENT |
| LOW | docs/For Users/Advanced/Use NaCl in NW.js.md | 43 | ## Step 3: Set up the Chrome browser | COMMENT |
| LOW | docs/For Users/Advanced/Use NaCl in NW.js.md | 56 | ## Step 4: Stub code for the tutorial | COMMENT |
| LOW | docs/For Users/Advanced/Use NaCl in NW.js.md | 69 | ## Step 5: Compile the Native Client module and run the stub application | COMMENT |
| LOW | docs/For Users/Advanced/Use NaCl in NW.js.md | 81 | ## Step 6: Modify the JavaScript code to send a message to the Native Client module | COMMENT |
| LOW | docs/For Users/Advanced/Use NaCl in NW.js.md | 95 | ## Step 7: Implement a message handler in the Native Client module | COMMENT |
| LOW | docs/For Users/Advanced/Use NaCl in NW.js.md | 133 | ## Step 8: Compile the Native Client module and run the application again | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …sanity/issue5730-add-node-in-permissions/jquery.min.js | 4 | void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/package_binaries.py | 215 | def generate_target_chromedriver(platform_name, arch, version): | CODE |
| LOW | test/sanity/nw_util.py | 254 | def wait_for_element_id_content(driver, elem_id, content, timeout=60): | CODE |
| LOW | test/sanity/user-agent/echo-user-agent.py | 5 | class RequestHandler(BaseHTTPRequestHandler): | CODE |
| LOW | test/sanity/nwuseragent/echo-user-agent.py | 6 | class RequestHandler(BaseHTTPRequestHandler): | CODE |