Repository Analysis

nwjs/nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.

16.3 Moderate AI signal View on GitHub

Analysis Overview

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).

16.3
Adjusted Score
16.3
Raw Score
100%
Time Factor
2026-07-02
Last Push
41.2K
Stars
JavaScript
Language
45.6K
Lines of Code
942
Files
700
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 1HIGH 0MEDIUM 17LOW 682

Directory Score Breakdown

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.

Pattern Findings

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.

Unused Imports529 hits · 529 pts
SeverityFileLineSnippetContext
LOWtools/sync.py1CODE
LOWtools/sync.py6CODE
LOWtools/roll-deps.py20CODE
LOWtools/roll-deps.py21CODE
LOWtools/cleanup.py3CODE
LOWtools/patcher.py5CODE
LOWtools/patcher.py9CODE
LOWtools/aws_uploader.py5CODE
LOWtools/aws_uploader.py13CODE
LOWtools/getnwisrelease.py1CODE
LOWtest/testpy/__init__.py30CODE
LOWtest/testpy/__init__.py33CODE
LOWtest/sanity/testcfg.py3CODE
LOWtest/sanity/testcfg.py3CODE
LOWtest/sanity/testcfg.py4CODE
LOWtest/sanity/http-server-node.py10CODE
LOWtest/sanity/start-page/test.py5CODE
LOWtest/sanity/start-page/test.py7CODE
LOWtest/sanity/worker-sharedworker/test.py5CODE
LOWtest/sanity/worker-sharedworker/test.py7CODE
LOWtest/sanity/issue6251-node-crypto/test.py3CODE
LOWtest/sanity/issue6251-node-crypto/test.py4CODE
LOWtest/sanity/issue6251-node-crypto/test.py5CODE
LOWtest/sanity/issue6251-node-crypto/test.py7CODE
LOWtest/sanity/issue6251-node-crypto/test.py7CODE
LOWtest/sanity/issue6251-node-crypto/test.py9CODE
LOWtest/sanity/issue6251-node-crypto/test.py10CODE
LOWtest/sanity/issue4007-reload-lost-app-window/test.py1CODE
LOWtest/sanity/issue4007-reload-lost-app-window/test.py5CODE
LOWtest/sanity/issue4007-reload-lost-app-window/test.py6CODE
LOWtest/sanity/issue6229-webview-executeScript/test.py1CODE
LOWtest/sanity/issue6229-webview-executeScript/test.py3CODE
LOWtest/sanity/issue6229-webview-executeScript/test.py6CODE
LOWtest/sanity/issue6229-webview-executeScript/test.py7CODE
LOWtest/sanity/crash-dump-report/test.py4CODE
LOWtest/sanity/crash-dump-report/test.py16CODE
LOWtest/sanity/issue4180-remote-win-open/test.py4CODE
LOWtest/sanity/issue4180-remote-win-open/test.py5CODE
LOWtest/sanity/issue4180-remote-win-open/test.py7CODE
LOWtest/sanity/issue4180-remote-win-open/test.py8CODE
LOWtest/sanity/issue4180-remote-win-open/test.py10CODE
LOWtest/sanity/node-remote-negtive/test.py1CODE
LOWtest/sanity/node-remote-negtive/test.py5CODE
LOWtest/sanity/node-remote-negtive/test.py6CODE
LOWtest/sanity/node-remote-negtive/test.py7CODE
LOWtest/sanity/node-remote-negtive/test.py9CODE
LOWtest/sanity/node-remote-negtive/test.py10CODE
LOWtest/sanity/issue4959-stringify-window/test.py5CODE
LOWtest/sanity/issue4959-stringify-window/test.py7CODE
LOWtest/sanity/issue4959-stringify-window/test.py9CODE
LOWtest/sanity/cookie-lost-devtools-close/test.py1CODE
LOWtest/sanity/cookie-lost-devtools-close/test.py5CODE
LOWtest/sanity/cookie-lost-devtools-close/test.py6CODE
LOWtest/sanity/issue5882-debugging-tools-crash/test.py6CODE
LOWtest/sanity/issue5882-debugging-tools-crash/test.py7CODE
LOWtest/sanity/issue5882-debugging-tools-crash/test.py11CODE
LOWtest/sanity/issue5882-debugging-tools-crash/test.py12CODE
LOWtest/sanity/issue8107-node-inspector/test.py1CODE
LOWtest/sanity/issue8107-node-inspector/test.py4CODE
LOWtest/sanity/issue8107-node-inspector/test.py7CODE
469 more matches not shown…
Over-Commented Block118 hits · 118 pts
SeverityFileLineSnippetContext
LOWtest/test.py1#!/usr/bin/env pythonCOMMENT
LOWtest/utils.py1# Copyright 2008 the V8 project authors. All rights reserved.COMMENT
LOWtest/testpy/__init__.py1# Copyright 2008 the V8 project authors. All rights reserved.COMMENT
LOWtest/sanity/issue7197-load/js/app.6d98adfb.js261//COMMENT
LOWtest/sanity/issue7197-load/js/app.6d98adfb.js321// EXTERNAL MODULE: ./src/scss/main.scssCOMMENT
LOWtest/sanity/issue7197-load/js/app.6d98adfb.js381COMMENT
LOWtest/sanity/issue7197-load/js/app.6d98adfb.js401//COMMENT
LOWtest/sanity/issue7197-load/js/app.6d98adfb.js921 * Create OSX menubarCOMMENT
LOWtest/sanity/issue6171-sdk-start-crash/index.html101COMMENT
LOWdocs/References/App.md81COMMENT
LOWdocs/References/App.md101 // the proxy scheme for proxy-uris is assumed to be http.COMMENT
LOWdocs/References/App.md121 // proxy.COMMENT
LOWsrc/nw_protocol_handler.h1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/nw_export.h1#ifndef NW_EXPORT_H_COMMENT
LOWsrc/nw_export.h21#else // defined(COMPONENT_BUILD)COMMENT
LOWsrc/nw_package.h1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/paths_mac.mm1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/paths_mac.mm21#include "paths_mac.h"COMMENT
LOWsrc/resource.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/resource.h21#define IDC_PASSWORDEDIT 1011COMMENT
LOWsrc/nw_version.h1// Copyright (c) 2012 Roger Wang <roger@nwjs.io>COMMENT
LOWsrc/nw_version.h21#ifndef NW_VERSION_HCOMMENT
LOWsrc/nw_content.h1#ifndef NWJS_CONTENT_HOOKS_HCOMMENT
LOWsrc/renderer/shell_content_renderer_client.h1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/renderer/autofill_agent.h1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/renderer/autofill_agent.h81 // Called in a posted task by textFieldDidChange() to work-around a WebKit bugCOMMENT
LOWsrc/renderer/nw_render_view_observer.h1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/renderer/shell_render_process_observer.h1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/renderer/printing/print_web_view_helper.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/renderer/printing/print_web_view_helper_mac.mm1// Copyright (c) 2012 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/renderer/common/render_messages.h1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/renderer/common/render_messages.h21#include "content/public/common/common_param_traits.h"COMMENT
LOWsrc/renderer/prerenderer/prerenderer_client.h1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/net/sqlite_persistent_cookie_store.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/net/resource_request_job.h1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/net/shell_url_request_context_getter.h1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/resources/nwapp/background.js1//console.log("nwapp/background.js");COMMENT
LOWsrc/browser/app_controller_mac.mm1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/browser/file_select_helper.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/chrome_event_processing_window.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/popup_controller_common.h41COMMENT
LOWsrc/browser/file_select_helper_mac.mm1// Copyright 2014 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/standard_menus_mac.mm1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/browser/nw_form_database_service.h1// Copyright (c) 2013 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/chrome_crash_reporter_client_mac.mm1// Copyright 2013 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/nw_content_browser_hooks.h81// ref in content/browser/renderer_host/render_process_host_impl.cc COMMENT
LOWsrc/browser/color_chooser_dialog.h41 // shown modal to |params.owner|. Once it's closed, calls back toCOMMENT
LOWsrc/browser/nw_autofill_client.h1// Copyright 2014 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/color_chooser_mac.mm1// Copyright (c) 2012 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/browser_view_layout.h1// Copyright (c) 2011 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/standard_menus_mac.h1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/browser/app_controller_mac.h1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/browser/printing_handler.h1// Copyright 2014 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/autofill_popup_view_cocoa.mm1// Copyright (c) 2012 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/capture_page_helper.h1// Copyright (c) 2012 Intel CorpCOMMENT
LOWsrc/browser/autofill_popup_view_bridge.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/autofill_popup_controller_impl.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/autofill_popup_view_gtk.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/printing/print_dialog_gtk.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.COMMENT
LOWsrc/browser/printing/print_view_manager.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.COMMENT
58 more matches not shown…
Excessive Try-Catch Wrapping16 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMtools/sync.py36 print("Error opening DEPS file: {}".format(e))CODE
MEDIUMtools/sync.py40 print("Error: Could not find 'nw_src_revision' in DEPS file.")CODE
MEDIUMtools/sync.py45 print("Error: Directory {} does not exist. Run gclient sync without --shallow first to create it.".format(src_diCODE
MEDIUMtools/sync.py55 print("Error: git fetch failed with exit code {}".format(fetch_ret))CODE
MEDIUMtools/sync.py61 print("Error: git reset failed with exit code {}".format(reset_ret))CODE
LOWtools/commit_id.py37 except Exception as e:CODE
MEDIUMtools/package_binaries.py507 print(f"Error: Could not write to file {output_filename}")CODE
LOWtools/cleanup.py20 except Exception as e:CODE
MEDIUMtools/cleanup.py24 print(f"Error scanning directory {target_dir}: {e}", file=sys.stderr)CODE
LOWtest/test.py110 except Exception as e:CODE
LOWtest/sanity/nw_util.py85 except Exception as e:CODE
LOWtest/sanity/nw_util.py92 except Exception as e_log:CODE
LOWtest/sanity/mv3-devtools-extension/test.py32except Exception as e:CODE
MEDIUMtest/sanity/app-open-event/second_instance.py35 print("Error: The 'CHROMEDRIVER' environment variable is not set.")CODE
LOWtest/sanity/app-open-event/second_instance.py36except Exception as e:CODE
MEDIUMtest/sanity/app-open-event/second_instance.py37 print(f"An error occurred: {e}")CODE
Decorative Section Separators8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMtest/test.py57# ---------------------------------------------COMMENT
MEDIUMtest/test.py59# ---------------------------------------------COMMENT
MEDIUMtest/test.py373# -------------------------COMMENT
MEDIUMtest/test.py375# -------------------------COMMENT
MEDIUMtest/test.py800# -------------------------------------------COMMENT
MEDIUMtest/test.py802# -------------------------------------------COMMENT
MEDIUMtest/test.py1220# ---------------COMMENT
MEDIUMtest/test.py1222# ---------------COMMENT
Deep Nesting16 hits · 16 pts
SeverityFileLineSnippetContext
LOWtools/package_binaries.py128CODE
LOWtools/package_binaries.py370CODE
LOWtools/package_binaries.py401CODE
LOWtools/package_binaries.py428CODE
LOWtools/cleanup.py7CODE
LOWtools/aws_uploader.py85CODE
LOWtest/test.py1019CODE
LOWtest/test.py1374CODE
LOWtest/test.py963CODE
LOWtest/utils.py46CODE
LOWtest/utils.py73CODE
LOWtest/testpy/__init__.py175CODE
LOWtest/sanity/nw_util.py19CODE
LOWtest/sanity/nw_util.py98CODE
LOWtest/sanity/nw_util.py298CODE
LOWtest/sanity/nw_util.py404CODE
Structural Annotation Overuse8 hits · 12 pts
SeverityFileLineSnippetContext
LOWdocs/For Users/Advanced/Use NaCl in NW.js.md25## Step 1: Download and install the Native Client SDKCOMMENT
LOWdocs/For Users/Advanced/Use NaCl in NW.js.md28## Step 2: Start a local serverCOMMENT
LOWdocs/For Users/Advanced/Use NaCl in NW.js.md43## Step 3: Set up the Chrome browserCOMMENT
LOWdocs/For Users/Advanced/Use NaCl in NW.js.md56## Step 4: Stub code for the tutorialCOMMENT
LOWdocs/For Users/Advanced/Use NaCl in NW.js.md69## Step 5: Compile the Native Client module and run the stub applicationCOMMENT
LOWdocs/For Users/Advanced/Use NaCl in NW.js.md81## Step 6: Modify the JavaScript code to send a message to the Native Client moduleCOMMENT
LOWdocs/For Users/Advanced/Use NaCl in NW.js.md95## Step 7: Implement a message handler in the Native Client moduleCOMMENT
LOWdocs/For Users/Advanced/Use NaCl in NW.js.md133## Step 8: Compile the Native Client module and run the application againCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL…sanity/issue5730-add-node-in-permissions/jquery.min.js4void 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
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtools/package_binaries.py215def generate_target_chromedriver(platform_name, arch, version):CODE
LOWtest/sanity/nw_util.py254def wait_for_element_id_content(driver, elem_id, content, timeout=60):CODE
LOWtest/sanity/user-agent/echo-user-agent.py5class RequestHandler(BaseHTTPRequestHandler):CODE
LOWtest/sanity/nwuseragent/echo-user-agent.py6class RequestHandler(BaseHTTPRequestHandler):CODE