Repository Analysis

livewire/livewire

A full-stack framework for Laravel that takes the pain out of building dynamic UIs.

3.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of livewire/livewire, a PHP project with 23,544 GitHub stars. SynthScan v2.0 examined 133,553 lines of code across 1055 source files, recording 378 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 3.5 places this repository in the Likely human-written 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).

3.5
Adjusted Score
3.5
Raw Score
100%
Time Factor
2026-07-13
Last Push
23.5K
Stars
PHP
Language
133.6K
Lines of Code
1.1K
Files
378
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 13LOW 364

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 378 distinct pattern matches across 9 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 Identifiers323 hits · 353 pts
SeverityFileLineSnippetContext
LOWlegacy_tests/Unit/TestCase.php67 protected function resolveApplicationHttpKernel($app)CODE
LOWlegacy_tests/Browser/TestCase.php42 function registerComponentForNextTest($components)CODE
LOWlegacy_tests/Browser/TestCase.php49 function wipeRuntimeComponentRegistration()CODE
LOWlegacy_tests/Browser/TestCase.php216 protected function resolveApplicationHttpKernel($app)CODE
LOWlegacy_tests/Browser/FileDownloads/Test.php237 public function downloadWithContentTypeHeader($contentType = null)CODE
LOWlegacy_tests/Browser/FileDownloads/Test.php247 public function downloadAnUntitledFileWithContentTypeHeader($contentType = 'text/html')CODE
LOWlegacy_tests/Browser/FileDownloads/Test.php269 public function downloadFromResponseWithContentTypeHeader()CODE
LOWlegacy_tests/Browser/FileDownloads/Test.php283 public function downloadQuotedContentDispositionFilename()CODE
LOWlegacy_tests/Browser/FileDownloads/Test.php293 public function downloadQuotedContentDispositionFilenameFromResponse()CODE
LOWjs/debounce.js41export function callAndClearComponentDebounces(component, callback) {CODE
LOWjs/fragment.js133export function findMatchingEndMarkerNode(startMarkerNode, metadata) {CODE
LOWjs/fragment.js151export function extractInnerHtmlFromFragmentHtml(fragmentHtml) {CODE
LOWjs/fragment.js163export function extractFragmentMetadataFromHtml(fragmentHtml) {CODE
LOWjs/fragment.js175export function extractFragmentMetadataFromMarkerNode(startMarkerNode) {CODE
LOWjs/directives.js5export function matchesForLivewireDirective(attributeName) {CODE
LOWjs/directives.js47export function customDirectiveHasBeenRegistered(name) {CODE
LOWjs/lifecycle.js119function ensureLivewireScriptIsntMisplaced() {CODE
LOWjs/directives/wire-for.js38function contextualizeForExpression(expression, el) {CODE
LOWjs/directives/wire-poll.js100function theDirectiveIsOffTheElement(el) {CODE
LOWjs/directives/wire-poll.js104function theDirectiveIsMissingKeepAlive(directive) {CODE
LOWjs/directives/wire-poll.js112function theElementIsNotInTheViewport(el) {CODE
LOWjs/directives/wire-model.js190function componentIsMissingProperty(component, property) {CODE
LOWjs/directives/shared.js2export function toggleBooleanStateDirective(el, directive, isTruthy, cachedDisplay = null) {CODE
LOWjs/directives/wire-loading.js73function whenTargetsArePartOfRequest(component, el, targets, inverted, [ startLoading, endLoading ]) {CODE
LOWjs/directives/wire-loading.js125function whenTargetsArePartOfFileUpload(component, targets, [ startLoading, endLoading ]) {CODE
LOWjs/plugins/navigate/scroll.js2export function storeScrollInformationInHtmlBeforeNavigatingAway() {CODE
LOWjs/plugins/navigate/scroll.js12export function restoreScrollPositionOrScrollToTop() {CODE
LOWjs/plugins/navigate/persist.js5export function storePersistantElementsForLater(callback) {CODE
LOWjs/plugins/navigate/persist.js19export function putPersistantElementsBack(callback) {CODE
LOWjs/plugins/navigate/page.js11export function swapCurrentPageWithNewHtml(html, andThen) {CODE
LOWjs/plugins/navigate/page.js44function prepNewBodyScriptTagsToRun(newBody, oldBodyScriptTagHashes) {CODE
LOWjs/plugins/navigate/page.js163async function injectScriptTagAndWaitForItToFullyLoad(script) {CODE
LOWjs/plugins/navigate/page.js182function ifTheQueryStringChangedSinceLastRequest(el, currentHeadChildren) {CODE
LOWjs/plugins/navigate/links.js78export function extractDestinationFromLink(linkEl) {CODE
LOWjs/plugins/navigate/links.js82export function createUrlObjectFromString(urlString) {CODE
LOWjs/plugins/navigate/links.js86export function linkShouldBeHandledNatively(linkEl, destination = extractDestinationFromLink(linkEl)) {CODE
LOWjs/plugins/navigate/links.js99export function getUriStringFromUrlObject(urlObject) {CODE
LOWjs/plugins/navigate/index.js217function fetchHtmlOrUsePrefetchedHtml(fromDestination, callback, errorCallback) {CODE
LOWjs/plugins/navigate/index.js223function preventAlpineFromPickingUpDomChanges(Alpine, callback) {CODE
LOWjs/plugins/navigate/index.js235function fireEventForOtherLibrariesToHookInto(name, detail) {CODE
LOWjs/plugins/navigate/index.js247function nowInitializeAlpineOnTheNewPage(Alpine) {CODE
LOWjs/plugins/navigate/index.js253function autofocusElementsWithTheAutofocusAttribute() {CODE
LOWjs/plugins/navigate/index.js257function cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement() {CODE
LOWjs/plugins/navigate/teleport.js11export function removeAnyLeftOverStaleTeleportTargets(body) {CODE
LOWjs/plugins/navigate/history.js67export function updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks() {CODE
LOWjs/plugins/navigate/history.js76export function updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(key, url) {CODE
LOWjs/plugins/navigate/history.js82export function whenTheBackOrForwardButtonIsClicked(CODE
LOWjs/plugins/navigate/history.js122export function updateUrlAndStoreLatestHtmlForFutureBackButtons(CODE
LOWjs/plugins/navigate/prefetch.js30export function storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination) {CODE
LOWjs/plugins/navigate/bar.js32export function removeAnyLeftOverStaleProgressBars() {CODE
LOWjs/features/supportQueryString.js84function normalizeQueryStringEntry(key, value) {CODE
LOWjs/features/supportNavigate.js19export function shouldRedirectUsingNavigateOr(effects, url, or) {CODE
LOWjs/features/supportScriptsAndAssets.js62function onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, callback) {CODE
LOWjs/features/supportScriptsAndAssets.js88async function onlyIfAssetsHaventBeenLoadedAlreadyOnThisPage(key, callback) {CODE
LOWjs/request/index.js74export function interceptComponentMessage(component, actionNameOrCallback, maybeCallback) {CODE
LOWjs/request/index.js89export function interceptComponentRequest(component, actionNameOrCallback, maybeCallback) {CODE
LOWjs/request/index.js178export function createOrAddToOutstandingMessage(action) {CODE
LOWjs/request/index.js569async function interceptStreamAndReturnFinalResponse(response, callback) {CODE
LOWjs/request/index.js659function createUrlObjectFromString(urlString) {CODE
LOWjs/request/legacy.js3export function registerLegacyEventSupport(interceptRequest, interceptMessage) {CODE
263 more matches not shown…
Decorative Section Separators12 hits · 45 pts
SeverityFileLineSnippetContext
MEDIUMscripts/worktree.sh4# ── Resolve the repo root from this script's location ────────────────────────COMMENT
MEDIUMscripts/worktree.sh7# ── Usage ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/worktree.sh26# ── Check if it already exists ───────────────────────────────────────────────COMMENT
MEDIUMscripts/worktree.sh34# ── Fetch & create ───────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/worktree.sh41# ── Install deps ─────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/worktree.sh57# ── Done ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/cleanup-worktree.sh4# ── Resolve the repo root from this script's location ────────────────────────COMMENT
MEDIUMscripts/cleanup-worktree.sh7# ── Usage ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/cleanup-worktree.sh23# ── Validate ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/cleanup-worktree.sh29# ── Remove ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/cleanup-worktree.sh33# ── Prune any stale worktree references ──────────────────────────────────────COMMENT
MEDIUM…eatures/SupportFileUploads/UploadActionBrowserTest.php325 // ─── Real-input helpers ─────────────────────────────────────────────COMMENT
Structural Annotation Overuse18 hits · 32 pts
SeverityFileLineSnippetContext
LOW.claude/skills/summarize-activity/SKILL.md15## Step 1: Parse timeframeCOMMENT
LOW.claude/skills/summarize-activity/SKILL.md33## Step 2: Fetch activity in parallelCOMMENT
LOW.claude/skills/summarize-activity/SKILL.md88## Step 3: Fetch comment threads for active itemsCOMMENT
LOW.claude/skills/summarize-activity/SKILL.md118## Step 4: Filter by timeframeCOMMENT
LOW.claude/skills/summarize-activity/SKILL.md125## Step 5: Analyze and write reportCOMMENT
LOW.claude/skills/review-pr/SKILL.md15## Step 1: Pick a PRCOMMENT
LOW.claude/skills/review-pr/SKILL.md23## Step 2: Check if already reviewedCOMMENT
LOW.claude/skills/review-pr/SKILL.md33## Step 3: Fetch PR dataCOMMENT
LOW.claude/skills/review-pr/SKILL.md44## Step 4: Checkout locally and merge mainCOMMENT
LOW.claude/skills/review-pr/SKILL.md53## Step 5: Read and classifyCOMMENT
LOW.claude/skills/review-pr/SKILL.md63## Step 6: Challenge the contributor's framingCOMMENT
LOW.claude/skills/review-pr/SKILL.md72## Step 7: EvaluateCOMMENT
LOW.claude/skills/review-pr/SKILL.md112## Step 8: Run relevant tests onlyCOMMENT
LOW.claude/skills/review-pr/SKILL.md145## Step 9: Make fixes directlyCOMMENT
LOW.claude/skills/review-pr/SKILL.md166## Step 10: Push to PR branchCOMMENT
LOW.claude/skills/review-pr/SKILL.md199## Step 11: Post verdict commentCOMMENT
LOWdocs/uploads.md435### Step 1: Configure an S3 diskCOMMENT
LOWdocs/uploads.md485### Step 2: Store uploaded files in S3COMMENT
Over-Commented Block13 hits · 13 pts
SeverityFileLineSnippetContext
LOWclose.bash21# for pid in ${vscode_renderer_pids}; doCOMMENT
LOWlegacy_tests/Browser/TestCase.php101 // ->filter(function ($class) {COMMENT
LOWlegacy_tests/Browser/TestCase.php121 // \LegacyTests\Browser\SyncHistory\ComponentWithoutQueryString::classCOMMENT
LOWlegacy_tests/Browser/QueryString/Test.php161COMMENT
LOWlegacy_tests/Browser/FileDownloads/Test.php101 // succeed(({ effects }) => {COMMENT
LOWlegacy_tests/Browser/DataBinding/InputSelect/Test.php81 // ->assertSeeIn('@output', '3')COMMENT
LOWjs/plugins/history/index.js81 // The new strategy needs to be something like:COMMENT
LOWjs/features/supportFileUploads/action.js1import { getUploadManager } from './manager'COMMENT
LOWjs/request/interactions.js61COMMENT
LOWdocs/javascript.md781COMMENT
LOWscripts/laravel.php61 // Illuminate\Broadcasting\BroadcastServiceProvider::class,COMMENT
LOWsrc/Features/SupportCompiledWireKeys/BrowserTest.php501 // https://github.com/livewire/livewire/discussions/8877COMMENT
LOWsrc/Features/SupportReleaseTokens/UnitTest.php61 ComponentWithReleaseToken::$releaseToken = 'bob';COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL….obsidian/plugins/obsidian-languagetool-plugin/main.js1"use strict";var e=require("obsidian"),t=require("path"),n=require("@codemirror/view"),r=require("@codemirror/state"),i=CODE
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippetContext
LOW…y_tests/Browser/DataBinding/InputSelect/view.blade.php24 <select wire:model.live="placeholder" dusk="placeholder.input">CODE
LOWdocs/wire-model.md225As you can see, there is no "placeholder" attribute for a select menu like there is for text inputs. Instead, you have tCODE
LOWsrc/Features/SupportValidation/UnitTest.php1049 public $emails = ['foo@bar.com', 'invalid-email'];CODE
LOWsrc/Features/SupportLazyLoading/BrowserTest.php393 return view('placeholder', $params);CODE
LOWsrc/Features/SupportJsSynthesizers/BrowserTest.php353 $this->address = new AddressDto('123 Main St', 'Anytown');CODE
LOWsrc/Features/SupportModels/BrowserTest.php104 <span dusk="placeholder">{{ $placeholder }}</span>CODE
LOWsrc/Features/SupportCSP/BrowserTest.php162 ->type('@name', 'John Doe')CODE
LOWsrc/Features/SupportCSP/BrowserTest.php373 ->type('@name', 'John Doe')CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdocs/.obsidian/plugins/obsidian-dynamic-toc/main.js2`)}function J(i,e){let t=i.map(a=>a.level).reduce((a,d)=>Math.min(a,d)),n=i.filter(a=>a.level===t),s=e.delimiter?e.delimCODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWjs/directives/wire-loading.js172 // If the property is nested, like `foo.bar`, we need to check if the root `foo` is the target.COMMENT
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/bump-alpine.js30console.log(`\nDone. Alpine updated to ^${latest}. Don't forget to commit package.json and package-lock.json.`)CODE