Repository Analysis

abi/screenshot-to-code

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

11.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of abi/screenshot-to-code, a Python project with 73,272 GitHub stars. SynthScan v2.0 examined 39,623 lines of code across 263 source files, recording 408 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 11.9 places this repository in the Low 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).

11.9
Adjusted Score
11.9
Raw Score
100%
Time Factor
2026-07-13
Last Push
73.3K
Stars
Python
Language
39.6K
Lines of Code
263
Files
408
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 0HIGH 1MEDIUM 16LOW 391

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 408 distinct pattern matches across 11 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.

Hyper-Verbose Identifiers255 hits · 271 pts
SeverityFileLineSnippetContext
LOWdesign-docs/commits-and-variants.md120async def process_variant_completion(index: int, task: asyncio.Task):CODE
LOWfrontend/src/components/settings/GenerationSettings.tsx33 function setSelectedDesignSystemId(id: string | null) {CODE
LOW…c/components/select-and-edit/SelectAndEditControls.tsx7export function SelectAndEditToolbarButton() {CODE
LOWfrontend/src/components/select-and-edit/utils.ts39export function buildSelectedElementInstruction(CODE
LOW…omponents/select-and-edit/useEscapeToExitSelectMode.ts6export function useEscapeToExitSelectMode() {CODE
LOWfrontend/src/components/agent/AgentActivity.tsx80function formatVariantWallClockDuration(CODE
LOWfrontend/src/components/agent/AgentActivity.tsx103function getExtractedAssetPreviewUrl(asset: unknown): string | null {CODE
LOWfrontend/src/components/agent/AgentActivity.tsx115function isSuccessfulExtractedAsset(asset: unknown): boolean {CODE
LOW…tend/src/components/unified-input/UnifiedInputPane.tsx47 function setSelectedDesignSystemId(id: string | null) {CODE
LOWfrontend/src/components/preview/download.ts15function filenameFromContentDisposition(contentDisposition: string | null) {CODE
LOWfrontend/src/lib/design-systems.ts46export function createHttpDesignSystemsRequest(CODE
LOWfrontend/src/lib/design-systems.ts67export function createDesignSystemsClient(CODE
LOWfrontend/src/lib/prompt-history.ts65export function resolveAssetIdsToDataUrls(CODE
LOWfrontend/src/lib/prompt-history.ts100export function buildAssistantHistoryMessage(CODE
LOWbackend/asset_extraction.py23def _data_url_to_source_image(data_url: str) -> SourceImage | None:CODE
LOWbackend/asset_extraction.py150async def extract_assets_from_images(STRING
LOWbackend/llm.py127def get_openai_reasoning_effort(model: Llm) -> str | None:CODE
LOWbackend/main.py32async def probe_screenshot_preview_on_startup() -> None:CODE
LOWbackend/video/utils.py21def get_video_bytes_and_mime_type(video_data_url: str) -> tuple[bytes, str]:CODE
LOWbackend/evals/runner.py17def normalize_local_asset_urls(html: str) -> str:CODE
LOWbackend/evals/runner.py50def get_eval_output_subfolder(stack: Stack, model: str) -> str:CODE
LOWbackend/uploaded_assets/store.py38def configure_uploaded_asset_routes(app: FastAPI) -> None:CODE
LOWbackend/uploaded_assets/store.py43def infer_local_asset_base_url(websocket: WebSocket) -> str:CODE
LOWbackend/uploaded_assets/store.py83def _content_type_for_extension(extension: str) -> str:CODE
LOWbackend/uploaded_assets/store.py208def persist_data_url_as_temporary_asset(CODE
LOWbackend/uploaded_assets/store.py240async def persist_data_url_as_asset(CODE
LOWbackend/uploaded_assets/store.py261async def promote_temporary_asset_id(CODE
LOWbackend/uploaded_assets/tools.py49def summarize_save_assets_input(args: Dict[str, Any]) -> Dict[str, Any]:CODE
LOWbackend/uploaded_assets/prompts.py41def append_uploaded_asset_ids_to_prompt(STRING
LOWbackend/uploaded_assets/prompts.py52def append_uploaded_asset_ids_to_history(STRING
LOWbackend/tests/test_status_broadcast.py15async def test_video_update_broadcasts_two_variants() -> None:CODE
LOWbackend/tests/test_status_broadcast.py68async def test_image_update_broadcasts_two_variants() -> None:CODE
LOWbackend/tests/test_screenshot.py8 def test_url_without_protocol(self):CODE
LOWbackend/tests/test_screenshot.py14 def test_url_with_http_protocol(self):CODE
LOWbackend/tests/test_screenshot.py19 def test_url_with_https_protocol(self):CODE
LOWbackend/tests/test_screenshot.py24 def test_url_with_path_and_params(self):CODE
LOWbackend/tests/test_websocket_communicator.py11async def test_send_message_ignores_already_completed_websocket() -> None:CODE
LOWbackend/tests/test_websocket_communicator.py28async def test_receive_params_marks_websocket_closed_on_disconnect() -> None:CODE
LOWbackend/tests/test_websocket_communicator.py40async def test_close_ignores_already_completed_websocket() -> None:CODE
LOWbackend/tests/test_websocket_communicator.py57async def test_throw_error_ignores_already_completed_websocket() -> None:CODE
LOWbackend/tests/test_design_systems.py18async def test_design_system_crud_persists_to_backend_file(CODE
LOWbackend/tests/test_openai_input_compare.py9def test_compare_openai_inputs_returns_none_for_identical_inputs() -> None:CODE
LOWbackend/tests/test_openai_input_compare.py26def test_compare_openai_inputs_finds_first_different_block_and_field() -> None:CODE
LOWbackend/tests/test_openai_input_compare.py70def test_compare_openai_inputs_accepts_raw_input_arrays() -> None:CODE
LOWbackend/tests/test_capabilities.py8async def test_capabilities_reports_screenshot_preview_available(CODE
LOWbackend/tests/test_capabilities.py22async def test_capabilities_reports_screenshot_preview_unavailable(CODE
LOWbackend/tests/test_request_parsing.py4def test_parse_prompt_content_with_valid_data() -> None:CODE
LOWbackend/tests/test_request_parsing.py20def test_parse_prompt_content_filters_invalid_media_types() -> None:CODE
LOWbackend/tests/test_request_parsing.py36def test_parse_prompt_content_defaults_for_invalid_payload() -> None:CODE
LOWbackend/tests/test_request_parsing.py42def test_parse_prompt_history_with_valid_entries() -> None:CODE
LOWbackend/tests/test_request_parsing.py76def test_parse_prompt_history_filters_invalid_items() -> None:CODE
LOWbackend/tests/test_request_parsing.py102def test_parse_prompt_history_defaults_for_invalid_payload() -> None:CODE
LOWbackend/tests/test_batching.py13async def test_process_tasks_batches_replicate_calls(CODE
LOWbackend/tests/test_batching.py40async def test_remove_background_batches_calls(CODE
LOWbackend/tests/test_batching.py78async def test_remove_background_accepts_data_urls(CODE
LOWbackend/tests/test_batching.py109async def test_remove_background_converts_localhost_asset_url_to_data_url(CODE
LOWbackend/tests/test_prompts.py94 def test_plan_create_uses_create_from_input(self) -> None:CODE
LOWbackend/tests/test_prompts.py105 async def test_create_prompt_includes_design_system(self) -> None:CODE
LOWbackend/tests/test_prompts.py133 def test_plan_update_with_history_uses_history_strategy(self) -> None:CODE
LOWbackend/tests/test_prompts.py143 def test_plan_update_without_history_uses_file_snapshot_strategy(self) -> None:CODE
195 more matches not shown…
Unused Imports57 hits · 57 pts
SeverityFileLineSnippetContext
LOWbackend/video/__init__.py1CODE
LOWbackend/video/__init__.py1CODE
LOWbackend/evals/core.py13CODE
LOWbackend/uploaded_assets/__init__.py1CODE
LOWbackend/uploaded_assets/__init__.py1CODE
LOWbackend/uploaded_assets/__init__.py5CODE
LOWbackend/uploaded_assets/__init__.py5CODE
LOWbackend/uploaded_assets/__init__.py5CODE
LOWbackend/uploaded_assets/__init__.py5CODE
LOWbackend/uploaded_assets/__init__.py5CODE
LOWbackend/uploaded_assets/__init__.py5CODE
LOWbackend/uploaded_assets/__init__.py5CODE
LOWbackend/image_generation/core.py1CODE
LOWbackend/image_generation/core.py1CODE
LOWbackend/agent/tools/__init__.py1CODE
LOWbackend/agent/tools/__init__.py2CODE
LOWbackend/agent/tools/__init__.py2CODE
LOWbackend/agent/tools/__init__.py2CODE
LOWbackend/agent/tools/__init__.py7CODE
LOWbackend/agent/tools/__init__.py7CODE
LOWbackend/agent/tools/__init__.py8CODE
LOWbackend/agent/tools/__init__.py8CODE
LOWbackend/agent/tools/__init__.py9CODE
LOWbackend/agent/tools/__init__.py9CODE
LOWbackend/agent/tools/__init__.py9CODE
LOWbackend/agent/tools/runtime.py4CODE
LOWbackend/agent/providers/__init__.py1CODE
LOWbackend/agent/providers/__init__.py1CODE
LOWbackend/agent/providers/__init__.py2CODE
LOWbackend/agent/providers/__init__.py2CODE
LOWbackend/agent/providers/__init__.py2CODE
LOWbackend/agent/providers/__init__.py2CODE
LOWbackend/agent/providers/__init__.py2CODE
LOWbackend/agent/providers/__init__.py9CODE
LOWbackend/agent/providers/__init__.py10CODE
LOWbackend/agent/providers/__init__.py10CODE
LOWbackend/agent/providers/__init__.py11CODE
LOWbackend/agent/providers/__init__.py11CODE
LOWbackend/agent/providers/__init__.py11CODE
LOWbackend/agent/providers/types.py1CODE
LOWbackend/agent/providers/types.py1CODE
LOWbackend/agent/providers/types.py1CODE
LOWbackend/agent/providers/token_usage.py1CODE
LOWbackend/agent/providers/anthropic/__init__.py1CODE
LOWbackend/agent/providers/anthropic/__init__.py1CODE
LOWbackend/agent/providers/anthropic/__init__.py1CODE
LOWbackend/prompts/__init__.py1CODE
LOWbackend/prompts/update/__init__.py1CODE
LOWbackend/prompts/update/__init__.py2CODE
LOWbackend/routes/evals.py4CODE
LOWbackend/preview_screenshot/__init__.py12CODE
LOWbackend/preview_screenshot/__init__.py12CODE
LOWbackend/preview_screenshot/__init__.py13CODE
LOWbackend/preview_screenshot/__init__.py14CODE
LOWbackend/preview_screenshot/__init__.py14CODE
LOWbackend/preview_screenshot/__init__.py14CODE
LOWbackend/preview_screenshot/__init__.py14CODE
Decorative Section Separators12 hits · 45 pts
SeverityFileLineSnippetContext
MEDIUMbackend/tests/test_token_usage.py41# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/tests/test_token_usage.py43# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/tests/test_token_usage.py106# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/tests/test_token_usage.py108# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/tests/test_token_usage.py276# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/tests/test_token_usage.py278# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/tests/test_token_usage.py12# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/tests/test_token_usage.py14# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/tests/test_token_usage.py168# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/tests/test_token_usage.py170# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/tests/test_token_usage.py228# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/tests/test_token_usage.py230# ---------------------------------------------------------------------------COMMENT
Excessive Try-Catch Wrapping33 hits · 40 pts
SeverityFileLineSnippetContext
LOWplan.md61 except Exception as e:CODE
LOWbackend/asset_extraction.py33 except Exception:CODE
LOWbackend/run_image_generation_evals.py203 except Exception as exc:CODE
LOWbackend/evals/runner.py112 except Exception as e:CODE
LOWbackend/evals/runner.py286 except Exception as e_write:CODE
LOWbackend/evals/runner.py317 except Exception as e_as_completed:CODE
LOWbackend/evals/runner.py352 except Exception as e:CODE
MEDIUMbackend/evals/runner.py353 print(f"Error writing timing file {timing_file_path}: {e}")CODE
LOWbackend/evals/runner.py362 except Exception as e:CODE
MEDIUMbackend/evals/runner.py363 print(f"Error writing failed tasks log {failed_log_path}: {e}")CODE
LOWbackend/image_generation/replicate.py100 except Exception as exc:CODE
LOWbackend/agent/tools/screenshot_preview.py64 except Exception as exc:CODE
LOWbackend/agent/tools/parsing.py73 except Exception:CODE
LOWbackend/agent/tools/extract_assets.py94 except Exception as exc:CODE
LOWbackend/agent/tools/runtime.py442 except Exception as exc:CODE
LOWbackend/agent/providers/gemini.py112 except Exception:CODE
LOWbackend/agent/providers/gemini.py366 except Exception as exc:CODE
LOWbackend/fs_logging/prompt_reports.py146 except Exception as e:CODE
MEDIUMbackend/routes/generate_code.py183 print(f"Error (variant {variantIndex + 1}): {value}")CODE
LOWbackend/routes/generate_code.py437 except Exception:CODE
LOWbackend/routes/generate_code.py521 except Exception:CODE
LOWbackend/routes/generate_code.py680 except Exception as e:CODE
MEDIUMbackend/routes/generate_code.py681 print(f"Error in variant {index + 1}: {e}")CODE
LOWbackend/routes/generate_code.py832 except Exception as e:CODE
LOWbackend/routes/evals.py47 except Exception as e:CODE
LOWbackend/routes/evals.py101 except Exception as e:CODE
LOWbackend/routes/evals.py303 except Exception as e:CODE
LOWbackend/routes/evals.py438 except Exception as e:CODE
LOWbackend/routes/export.py357 except Exception as exc:CODE
LOWbackend/routes/screenshot.py105 except Exception as e:CODE
LOWbackend/debug/DebugFileWriter.py26 except Exception as e:CODE
LOWbackend/preview_screenshot/playwright_backend.py53 except Exception as exc:CODE
LOWbackend/preview_screenshot/playwright_backend.py85 except Exception:CODE
Deep Nesting22 hits · 22 pts
SeverityFileLineSnippetContext
LOWbackend/utils.py12CODE
LOWbackend/utils.py39CODE
LOWbackend/utils.py100CODE
LOWbackend/utils.py172CODE
LOWbackend/evals/runner.py133CODE
LOWbackend/agent/engine.py175CODE
LOWbackend/agent/tools/extract_assets.py43CODE
LOWbackend/agent/providers/gemini.py118CODE
LOWbackend/agent/providers/openai.py27CODE
LOWbackend/agent/providers/openai.py85CODE
LOWbackend/agent/providers/openai.py168CODE
LOWbackend/agent/providers/openai.py88CODE
LOWbackend/agent/providers/openai.py476CODE
LOWbackend/agent/providers/anthropic/provider.py181CODE
LOWbackend/agent/providers/anthropic/provider.py314CODE
LOWbackend/fs_logging/openai_input_formatting.py96CODE
LOWbackend/routes/prompt_reports.py168CODE
LOWbackend/routes/generate_code.py169CODE
LOWbackend/routes/generate_code.py280CODE
LOWbackend/routes/generate_code.py445CODE
LOWbackend/routes/evals.py54CODE
LOWbackend/routes/evals.py335CODE
Modern Structural Boilerplate12 hits · 12 pts
SeverityFileLineSnippetContext
LOWbackend/video/__init__.py6__all__ = [CODE
LOWbackend/uploaded_assets/__init__.py15__all__ = [CODE
LOWbackend/image_generation/core.py7__all__ = [CODE
LOWbackend/agent/tools/__init__.py15__all__ = [CODE
LOWbackend/agent/providers/__init__.py13__all__ = [CODE
LOWbackend/agent/providers/types.py11__all__ = [CODE
LOWbackend/agent/providers/anthropic/__init__.py7__all__ = [CODE
LOWbackend/prompts/__init__.py3__all__ = [CODE
LOWbackend/prompts/update/__init__.py4__all__ = [CODE
LOWbackend/prompts/create/__init__.py48__all__ = ["build_create_prompt_from_input"]CODE
LOWbackend/preview_screenshot/registry.py16def set_screenshot_backend(backend: ScreenshotBackend) -> None:CODE
LOWbackend/preview_screenshot/__init__.py21__all__ = [CODE
Fake / Example Data8 hits · 9 pts
SeverityFileLineSnippetContext
LOWbackend/tests/test_batching.py43 monkeypatch.setattr("agent.tools.runtime.REPLICATE_API_KEY", "fake-key")CODE
LOWbackend/tests/test_batching.py81 monkeypatch.setattr("agent.tools.runtime.REPLICATE_API_KEY", "fake-key")CODE
LOWbackend/tests/test_batching.py113 monkeypatch.setattr("agent.tools.runtime.REPLICATE_API_KEY", "fake-key")CODE
LOWbackend/tests/test_tool_image_outputs.py204 monkeypatch.setattr("agent.tools.runtime.REPLICATE_API_KEY", "fake-key")CODE
LOWbackend/tests/test_tool_image_outputs.py284 monkeypatch.setattr("agent.tools.runtime.REPLICATE_API_KEY", "fake-key")CODE
LOWbackend/tests/test_prompt_summary.py17 {"role": "system", "content": "lorem ipsum dolor sit amet"},CODE
LOWbackend/tests/test_prompt_summary.py17 {"role": "system", "content": "lorem ipsum dolor sit amet"},CODE
LOWbackend/tests/test_prompt_summary.py35 assert "SYSTEM: lorem ipsum" in summaryCODE
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHbackend/asset_extraction.py126- If the asset is not visible, return {{"image_index": null, "box_2d": null, "label": "not found"}}.CODE
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWbackend/routes/generate_code.py817 # Check if all variants failedCOMMENT
LOWbackend/routes/screenshot.py20 # Check if we have a schemeCOMMENT
LOWbackend/routes/screenshot.py28 # Check if this might be a domain with port (like example.com:8080)COMMENT
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWfrontend/src/index.css161 90deg,COMMENT
LOWfrontend/src/components/select-and-edit/overlays.ts1// Devtools-style indicators for select-and-edit mode, rendered asCOMMENT
LOWbackend/.pre-commit-config.yaml1# See https://pre-commit.com for more informationCOMMENT
LOWbackend/.pre-commit-config.yaml21 # # entry: poetry run --directory backend pyrightCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdocker-compose.yml14 #- BACKEND_PORT=7001 # if you change the port, make sure to also change the VITE_WS_BACKEND_URL at frontend/.envCOMMENT