AI Slop Code RIsk Monitor

pyscript/pyscript

An open source platform for Python in the browser. https://pyscript.net Docs: https://docs.pyscript.net/ Try it: https://pyscript.com/ Community: https://discord.gg/HxvBtukrg2

15.3 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for pyscript/pyscript, a Python project with 18,687 GitHub stars. SynthScan examined 23,023 lines of code across 306 source files, recording 268 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 15.3 (Elevated 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.

15.3
Adjusted Signal
15.3
Raw Pattern Score
100%
Time Factor
2026-10-05
Last Push
18.7K
Stars
Python
Language
23.0K
Lines of Code
306
Files
268
Pattern Hits
2026-10-12
Scan Date
0.06
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 34.8/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 196 finding(s).

Hallucinated Dependency & Supply Chain Risk 15.7/100 · LOW

Are imports declared and package/API names verified? 44 finding(s).

Agent Over-Engineering Ratio 40.5/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 200 finding(s).

PR Review Velocity Impact 57.1/100 · HIGH

Which changes need focused human review? 268 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 1HIGH 17MEDIUM 14LOW 236

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 268 distinct pattern matches across 13 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.

Hyper-Verbose Identifiers172 hits · 164 pts
SeverityFileLineSnippetContext
LOWcore/types/fs.d.ts4export function getFileSystemDirectoryHandle(options: {CODE
LOWcore/tests/python/tests/test_websocket.py18async def test_websocket_with_attributes():CODE
LOWcore/tests/python/tests/test_websocket.py112async def test_websocket_async_handlers():CODE
LOWcore/tests/python/tests/test_websocket.py146async def test_websocket_binary_data_conversion():CODE
LOWcore/tests/python/tests/test_websocket.py180async def test_websocket_send_bytes_conversion():CODE
LOWcore/tests/python/tests/test_websocket.py211async def test_websocket_event_wrapper():CODE
LOWcore/tests/python/tests/test_websocket.py248async def test_websocket_reassign_handler():CODE
LOW⚡core/tests/python/tests/test_display.py88def test_target_parameter_with_hash():CODE
LOW⚡core/tests/python/tests/test_display.py97def test_non_existing_id_target_raises_value_error():CODE
LOW⚡core/tests/python/tests/test_display.py105def test_empty_string_target_raises_value_error():CODE
LOW⚡core/tests/python/tests/test_display.py114async def test_tag_target_attribute():CODE
LOW⚡core/tests/python/tests/test_display.py169async def test_display_multiple_values():CODE
LOW⚡core/tests/python/tests/test_display.py178async def test_display_multiple_append_false():CODE
LOW⚡core/tests/python/tests/test_display.py184def test_display_multiple_append_false_with_target():CODE
LOW⚡core/tests/python/tests/test_display.py566async def test_empty_string_display():CODE
LOW⚡core/tests/python/tests/test_display.py575async def test_newline_string_skipped():CODE
LOW⚡core/tests/python/tests/test_display.py585async def test_string_with_special_html_chars():CODE
LOW⚡core/tests/python/tests/test_display.py595async def test_javascript_mime_type():CODE
LOWcore/tests/python/tests/test_display.py131async def test_multiple_display_calls_same_tag():CODE
LOWcore/tests/python/tests/test_display.py207async def test_display_list_dict_tuple():CODE
LOWcore/tests/python/tests/test_display.py225async def test_display_should_escape():CODE
LOWcore/tests/python/tests/test_display.py266async def test_image_renders_correctly():CODE
LOWcore/tests/python/tests/test_display.py298async def test_mimebundle_with_metadata():CODE
LOWcore/tests/python/tests/test_display.py319async def test_mimebundle_with_tuple_output():CODE
LOWcore/tests/python/tests/test_display.py333async def test_mimebundle_metadata_merge():CODE
LOWcore/tests/python/tests/test_display.py358async def test_mimebundle_unsupported_mime():CODE
LOWcore/tests/python/tests/test_display.py404async def test_repr_html_with_metadata():CODE
LOWcore/tests/python/tests/test_display.py514async def test_object_with_no_repr_methods():CODE
LOWcore/tests/python/tests/test_display.py529async def test_repr_method_returns_none():CODE
LOWcore/tests/python/tests/test_display.py546async def test_multiple_repr_methods_priority():CODE
LOWcore/tests/python/tests/test_display.py610async def test_append_false_clears_multiple_children():CODE
LOWcore/tests/python/tests/test_display.py628async def test_mixed_append_true_false():CODE
LOWcore/tests/python/tests/test_display.py639def test_target_with_multiple_hashes():CODE
LOWcore/tests/python/tests/test_display.py660async def test_display_boolean_values():CODE
LOW⚡core/tests/python/tests/test_web.py90 def test_wrap_if_not_none_with_none(self):CODE
LOW⚡core/tests/python/tests/test_web.py101 def test_find_by_id_without_hash(self):CODE
LOW⚡core/tests/python/tests/test_web.py1539 def test_page_getitem_with_id(self):CODE
LOW⚡core/tests/python/tests/test_web.py1545 def test_page_getitem_with_hash(self):CODE
LOW⚡core/tests/python/tests/test_web.py1551 def test_page_getitem_nonexistent(self):CODE
LOWcore/tests/python/tests/test_web.py55def test_read_n_write_collection_elements():CODE
LOWcore/tests/python/tests/test_web.py74 def test_wrap_if_not_none_with_element(self):CODE
LOWcore/tests/python/tests/test_web.py118 def test_find_by_id_with_hash(self):CODE
LOWcore/tests/python/tests/test_web.py134 def test_find_by_id_not_found(self):CODE
LOWcore/tests/python/tests/test_web.py145 def test_find_by_id_within_element(self):CODE
LOWcore/tests/python/tests/test_web.py162 def test_find_and_wrap_with_results(self):CODE
LOWcore/tests/python/tests/test_web.py186 def test_find_and_wrap_no_results(self):CODE
LOWcore/tests/python/tests/test_web.py202 def test_find_and_wrap_on_document(self):CODE
LOWcore/tests/python/tests/test_web.py273 def test_append_dom_element_element(self):CODE
LOWcore/tests/python/tests/test_web.py308 def test_append_multiple_mixed_types(self):CODE
LOWcore/tests/python/tests/test_web.py364 async def test_when_decorator_on_event(self):CODE
LOWcore/tests/python/tests/test_web.py386 async def test_on_event_with_default_handler(self):CODE
LOWcore/tests/python/tests/test_web.py404 def test_on_event_must_be_actual_event(self):CODE
LOWcore/tests/python/tests/test_web.py415 def test_inner_html_attribute(self):CODE
LOWcore/tests/python/tests/test_web.py478 def test_getitem_integer_index(self):CODE
LOWcore/tests/python/tests/test_web.py502 def test_getitem_by_id_with_hash(self):CODE
LOWcore/tests/python/tests/test_web.py536 def test_trailing_underscore_removal(self):CODE
LOWcore/tests/python/tests/test_web.py555 def test_container_children_kwarg(self):CODE
LOWcore/tests/python/tests/test_web.py560 def test_container_html_string(self):CODE
LOWcore/tests/python/tests/test_web.py609 def test_update_all_single_attribute(self):CODE
LOWcore/tests/python/tests/test_web.py619 def test_update_all_multiple_attributes(self):CODE
112 more matches not shown…
Empty Error Handlers12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHcore/tests/python/tests/test_fetch.py241except Exception:CODE
HIGHcore/tests/python/tests/test_media.py17except Exception:CODE
HIGHcore/tests/python/tests/test_media.py44except Exception:CODE
HIGHcore/tests/python/tests/test_media.py65except Exception:CODE
HIGHcore/tests/python/tests/test_media.py77except Exception:CODE
HIGHcore/tests/python/tests/test_media.py89except Exception:CODE
HIGHcore/tests/python/tests/test_media.py101except Exception:CODE
HIGHcore/tests/python/tests/test_media.py114except Exception:CODE
HIGHcore/tests/python/tests/test_media.py126except Exception:CODE
HIGHcore/tests/python/tests/test_media.py149except Exception:CODE
HIGHcore/tests/python/tests/test_media.py174except Exception:CODE
HIGHcore/src/stdlib/pyscript/events.py81except ValueError:CODE
Unused Imports37 hits · 37 pts
SeverityFileLineSnippetContext
LOWcore/tests/manual/worker.py5CODE
LOWcore/tests/manual/camera.py1CODE
LOWcore/tests/manual/camera.py1CODE
LOWcore/tests/manual/camera.py1CODE
LOWcore/tests/manual/issue-2304/main.py1CODE
LOWcore/tests/manual/game/aliens.py31CODE
LOWcore/tests/manual/issue-2302/worker.py3CODE
LOWcore/tests/manual/issue-2302/libthree.py9CODE
LOWcore/tests/manual/issue-2302/libthree.py9CODE
LOWcore/tests/manual/issue-2302/libthree.py9CODE
LOWcore/tests/manual/issue-2302/libthree.py11CODE
LOWcore/tests/manual/issue-2302/main.py5CODE
LOWcore/tests/manual/issue-2302/main.py16CODE
LOWcore/tests/manual/issue-2302/main.py16CODE
LOWcore/tests/manual/issue-2302/main.py16CODE
LOWcore/tests/manual/issue-2302/glue/multipyjs.py20CODE
LOWcore/tests/manual/issue-2302/glue/multipyjs.py20CODE
LOWcore/src/stdlib/pyscript/__init__.py101CODE
LOWcore/src/stdlib/pyscript/__init__.py102CODE
LOWcore/src/stdlib/pyscript/__init__.py102CODE
LOWcore/src/stdlib/pyscript/__init__.py102CODE
LOWcore/src/stdlib/pyscript/__init__.py102CODE
LOWcore/src/stdlib/pyscript/__init__.py102CODE
LOWcore/src/stdlib/pyscript/__init__.py102CODE
LOWcore/src/stdlib/pyscript/__init__.py102CODE
LOWcore/src/stdlib/pyscript/__init__.py102CODE
LOWcore/src/stdlib/pyscript/__init__.py113CODE
LOWcore/src/stdlib/pyscript/__init__.py113CODE
LOWcore/src/stdlib/pyscript/__init__.py114CODE
LOWcore/src/stdlib/pyscript/__init__.py115CODE
LOWcore/src/stdlib/pyscript/__init__.py115CODE
LOWcore/src/stdlib/pyscript/__init__.py116CODE
LOWcore/src/stdlib/pyscript/__init__.py117CODE
LOWcore/src/stdlib/pyscript/__init__.py117CODE
LOWcore/src/stdlib/pyscript/__init__.py120CODE
LOWcore/src/stdlib/pyscript/__init__.py120CODE
LOWcore/src/stdlib/pyscript/fs.py43CODE
Self-Referential Comments13 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMcore/tests/python/tests/test_web.py79 # Create a DOM element.COMMENT
MEDIUMcore/tests/python/tests/test_web.py150 # Create a container with a child.COMMENT
MEDIUMcore/tests/python/tests/test_web.py191 # Create a container.COMMENT
MEDIUMcore/tests/python/tests/test_web.py719 # Creating an element from another element automatically creates that elementCOMMENT
MEDIUMcore/src/stdlib/pyscript/web.py254 # Create a simple div.STRING
MEDIUMcore/src/stdlib/pyscript/web.py1367# Initialize element classes at module load time. :-)COMMENT
MEDIUMcore/src/stdlib/pyscript/events.py33 # Create a custom event.STRING
MEDIUMcore/src/stdlib/pyscript/flatted.py22# Create a circular structure.STRING
MEDIUMcore/src/stdlib/pyscript/flatted.py206 # Create an object with a circular reference.STRING
MEDIUMcore/src/stdlib/pyscript/context.py178 # Create a worker to run background tasks.STRING
MEDIUMcore/src/stdlib/pyscript/workers.py40# Create a worker from a Python file.STRING
MEDIUMcore/src/stdlib/pyscript/workers.py150 # Create a Pyodide worker.STRING
MEDIUM.github/workflows/publish-release.yml87 | # Create an explicitly versioned directory under releases/YYYY.MM.MICRO/CODE
Cross-Language Confusion (JS/TS)4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHcore/types/3rd-party/xterm-readline.d.ts94 print(t: any): void;CODE
HIGHcore/types/3rd-party/xterm-readline.d.ts103 print(t: any): any;CODE
HIGHcore/tests/manual/donkey/index.js36 print(f'1 + 2 = {a}')CODE
HIGHcore/src/stdlib/pyscript.js14 "util.py": "import js,inspect\ndef as_bytearray(buffer):\n\tA=js.Uint8Array.new(buffer);B=A.length;C=bytearray(B)\n\CODE
Excessive Try-Catch Wrapping16 hits · 16 pts
SeverityFileLineSnippetContext
LOWcore/tests/python/tests/test_web.py956 except Exception as e:CODE
LOWcore/tests/python/tests/test_fetch.py241 except Exception:CODE
LOW⚡core/tests/python/tests/test_media.py65 except Exception:CODE
LOW⚡core/tests/python/tests/test_media.py77 except Exception:CODE
LOW⚡core/tests/python/tests/test_media.py89 except Exception:CODE
LOW⚡core/tests/python/tests/test_media.py101 except Exception:CODE
LOW⚡core/tests/python/tests/test_media.py114 except Exception:CODE
LOW⚡core/tests/python/tests/test_media.py126 except Exception:CODE
LOWcore/tests/python/tests/test_media.py17 except Exception:CODE
LOWcore/tests/python/tests/test_media.py44 except Exception:CODE
LOWcore/tests/python/tests/test_media.py149 except Exception:CODE
LOWcore/tests/python/tests/test_media.py174 except Exception:CODE
LOWcore/tests/manual/issue-2304/main.py9except Exception as e:CODE
LOWcore/tests/manual/issue-2304/main.py20except Exception as e:CODE
LOWcore/tests/manual/issue-2304/main.py31except Exception as e:CODE
MEDIUMcore/src/stdlib/pyscript/fetch.py206 print(f"Error: {response.status} {response.statusText}")STRING
Cross-Language Confusion1 hit · 11 pts
SeverityFileLineSnippetContext
HIGH⚡core/tests/python/tests/test_web.py95 # Pass None (as a JS null).COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALcore/src/3rd-party/xterm.js11WARNING: This link could potentially be dangerous`)){const s=window.open();if(s){try{s.opener=null}catch{}s.location.hreCODE
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippetContext
LOWcore/tests/manual/game/aliens.py237CODE
LOWcore/src/stdlib/pyscript/web.py640CODE
LOWcore/src/stdlib/pyscript/web.py1228CODE
LOWcore/src/stdlib/pyscript/events.py180CODE
LOWcore/src/stdlib/pyscript/display.py130CODE
Redundant / Tautological Comments4 hits · 3 pts
SeverityFileLineSnippetContext
LOWcore/src/stdlib/pyscript/web.py103# Check if style is set.STRING
LOWcore/src/stdlib/pyscript/web.py822 # Check if a style is set.STRING
LOWcore/src/stdlib/pyscript/web.py1058 # Iterate over elements.STRING
LOWcore/src/stdlib/pyscript/fs.py100 # Check if path is already mounted with a different ID.COMMENT
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWcore/pyodide.sh1#!/usr/bin/env bashCOMMENT
Fake / Example Data1 hit · 0 pts
SeverityFileLineSnippetContext
LOWcore/tests/python/tests/test_web.py1193 "placeholder": "some placeholder",CODE
AI Slop Vocabulary1 hit · 0 pts
SeverityFileLineSnippetContext
LOWcore/src/stdlib/pyscript/web.py283 # Or, better, just use direct ID lookup (with or without theSTRING