A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, (+ more) and traditional web applications from a single, framework-agnostic codebase.
This report summarizes scanner evidence for stenciljs/core, a TypeScript project with 13,147 GitHub stars. SynthScan examined 275,262 lines of code across 2027 source files, recording 137 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.5 (Low 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.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 125 finding(s).
Are imports declared and package/API names verified? 12 finding(s).
Are wrappers, guards, and repeated structures necessary? 63 finding(s).
Which changes need focused human review? 137 finding(s).
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.
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.
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.
The scanner identified 137 distinct pattern matches across 6 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/esbuild/internal-app-globals.ts | 17 | export async function getInternalAppGlobalsBundles(opts: BuildOptions): Promise<ESBuildOptions[]> { | CODE |
| LOW | scripts/esbuild/testing.ts | 125 | function ignorePuppeteerDependency(opts: BuildOptions): Plugin { | CODE |
| LOW | scripts/esbuild/internal-platform-hydrate.ts | 19 | export async function getInternalPlatformHydrateBundles(opts: BuildOptions): Promise<ESBuildOptions[]> { | CODE |
| LOW | scripts/esbuild/internal-platform-hydrate.ts | 81 | async function createHydrateRunnerDtsBundle(opts: BuildOptions, inputHydrateDir: string, outputDir: string) { | CODE |
| LOW | scripts/esbuild/internal-app-data.ts | 17 | export async function getInternalAppDataBundles(opts: BuildOptions): Promise<ESBuildOptions[]> { | CODE |
| LOW | scripts/esbuild/compiler.ts | 114 | async function getTypeScriptDefaultLibNames(opts: BuildOptions): Promise<string[]> { | CODE |
| LOW | scripts/esbuild/utils/typescript-source.ts | 55 | // ts.someMethod = function myReplacementForSomeMethod () { | COMMENT |
| LOW | src/dev-server/serve-file.ts | 109 | export function appendDevServerClientScript(devServerConfig: d.DevServerConfig, req: d.HttpRequest, content: string) { | CODE |
| LOW | src/dev-server/serve-file.ts | 119 | export function appendDevServerClientIframe(content: string, iframe: string) { | CODE |
| LOW | src/dev-server/server-worker-main.ts | 6 | export function initServerProcessWorkerProxy(sendToMain: (msg: d.DevServerMessage) => void) { | CODE |
| LOW | src/hydrate/runner/render.ts | 279 | export function serializeDocumentToString(doc: Document, opts: HydrateFactoryOptions) { | CODE |
| LOW | src/runtime/dom-extras.ts | 573 | function patchHostOriginalAccessor( | CODE |
| LOW | src/runtime/vdom/test/set-accessor.spec.ts | 414 | function expectStraightForwardAttribute(propName: string, newValue: any, oldValue: any) { | CODE |
| LOW | src/runtime/vdom/test/set-accessor.spec.ts | 465 | function expectStraightForwardAttribute(propName: string, newValue: any, oldValue: any) { | CODE |
| LOW | src/runtime/vdom/test/set-accessor.spec.ts | 550 | function expectSpecialAttributeDefined(propName: string, newValue: any, oldValue: any) { | CODE |
| LOW | src/runtime/vdom/test/set-accessor.spec.ts | 616 | function expectBooleanAttributeDefined(propName: string, newValue: any, oldValue: any) { | CODE |
| LOW | src/runtime/vdom/test/set-accessor.spec.ts | 659 | function expectMinMaxAttributeDefined(propName: string, newValue: any, oldValue: any) { | CODE |
| LOW | src/utils/output-target.ts | 214 | export function isValidConfigOutputTarget(targetType: string): targetType is ValidConfigOutputTarget { | CODE |
| LOW | src/utils/style.ts | 10 | export function createStyleSheetIfNeededAndSupported(styles: string): CSSStyleSheet | undefined { | CODE |
| LOW | src/cli/telemetry/telemetry.ts | 17 | export async function telemetryBuildFinishedAction( | CODE |
| LOW | src/mock-doc/serialize-node.ts | 19 | function normalizeSerializationOptions(opts: Partial<SerializeNodeToHtmlOptions> = {}) { | CODE |
| LOW | src/mock-doc/serialize-node.ts | 548 | function isWithinWhitespaceSensitive(node: Node | MockNode) { | CODE |
| LOW | src/mock-doc/css-style-declaration.ts | 60 | export function createCSSStyleDeclaration() { | CODE |
| LOW | src/mock-doc/global.ts | 90 | export function addGlobalsToWindowPrototype(mockWinPrototype: any) { | CODE |
| LOW | src/testing/test-transpile.ts | 38 | function parseStencilTranspilePaths(stencilTranspilePaths: string | undefined): boolean { | CODE |
| LOW | src/testing/puppeteer/puppeteer-screenshot.ts | 150 | export function createPuppeteerScreenshotOptions( | CODE |
| LOW | src/testing/jest/jest-29/jest-config.ts | 136 | export function getProjectListFromCLIArgs(config: d.ValidatedConfig, argv: Config.Argv): string[] { | CODE |
| LOW | src/testing/jest/jest-29/jest-environment.ts | 8 | export function createJestPuppeteerEnvironment(): JestPuppeteerEnvironmentConstructor { | CODE |
| LOW | src/testing/jest/jest-29/matchers/events.ts | 48 | export function toHaveReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) { | CODE |
| LOW | src/testing/jest/jest-29/matchers/events.ts | 75 | export function toHaveFirstReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) { | CODE |
| LOW | src/testing/jest/jest-29/matchers/events.ts | 102 | export function toHaveLastReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) { | CODE |
| LOW | src/testing/jest/jest-29/matchers/events.ts | 129 | export function toHaveNthReceivedEventDetail(eventSpy: d.EventSpy, index: number, eventDetail: any) { | CODE |
| LOW | src/testing/jest/jest-28/jest-config.ts | 136 | export function getProjectListFromCLIArgs(config: d.ValidatedConfig, argv: Config.Argv): string[] { | CODE |
| LOW | src/testing/jest/jest-28/jest-environment.ts | 8 | export function createJestPuppeteerEnvironment(): JestPuppeteerEnvironmentConstructor { | CODE |
| LOW | src/testing/jest/jest-28/matchers/events.ts | 48 | export function toHaveReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) { | CODE |
| LOW | src/testing/jest/jest-28/matchers/events.ts | 75 | export function toHaveFirstReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) { | CODE |
| LOW | src/testing/jest/jest-28/matchers/events.ts | 102 | export function toHaveLastReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) { | CODE |
| LOW | src/testing/jest/jest-28/matchers/events.ts | 129 | export function toHaveNthReceivedEventDetail(eventSpy: d.EventSpy, index: number, eventDetail: any) { | CODE |
| LOW | src/testing/jest/jest-27-and-under/jest-config.ts | 172 | export function getProjectListFromCLIArgs(config: d.ValidatedConfig, argv: Config.Argv): Config.Path[] { | CODE |
| LOW | src/testing/jest/jest-27-and-under/jest-environment.ts | 7 | export function createJestPuppeteerEnvironment(): JestPuppeteerEnvironmentConstructor { | CODE |
| LOW | src/testing/jest/jest-27-and-under/matchers/events.ts | 48 | export function toHaveReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) { | CODE |
| LOW | src/testing/jest/jest-27-and-under/matchers/events.ts | 75 | export function toHaveFirstReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) { | CODE |
| LOW | src/testing/jest/jest-27-and-under/matchers/events.ts | 102 | export function toHaveLastReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any) { | CODE |
| LOW | src/testing/jest/jest-27-and-under/matchers/events.ts | 129 | export function toHaveNthReceivedEventDetail(eventSpy: d.EventSpy, index: number, eventDetail: any) { | CODE |
| LOW | src/compiler/types/generate-component-types.ts | 175 | function generateStandardElementInterface( | CODE |
| LOW | src/compiler/types/generate-component-types.ts | 201 | function generateElementInterfaceWithConflictResolution( | CODE |
| LOW | src/compiler/entries/resolve-component-dependencies.ts | 16 | export function resolveComponentDependencies(cmps: d.ComponentCompilerMeta[]): void { | CODE |
| LOW | src/compiler/entries/resolve-component-dependencies.ts | 74 | function resolveTransitiveDependencies( | CODE |
| LOW | src/compiler/entries/resolve-component-dependencies.ts | 114 | function resolveTransitiveDependents(cmp: d.ComponentCompilerMeta, cmps: d.ComponentCompilerMeta[]): void { | CODE |
| LOW | src/compiler/optimize/optimize-module.ts | 199 | function getTerserManglePropertiesConfig(): ManglePropertiesOptions { | CODE |
| LOW | src/compiler/docs/generate-doc-data.ts | 64 | function findSupplementalPublicTypes(outputTargets: d.OutputTargetDocsJson[]): string { | CODE |
| LOW | src/compiler/transformers/type-library.ts | 102 | function exportedTypesInSourceFile( | CODE |
| LOW | src/compiler/transformers/transform-utils.ts | 1489 | export function addTagTransformToCssString(cssCode: string, tagNames: string[]): string { | CODE |
| LOW | src/compiler/transformers/transform-utils.ts | 1517 | export function addTagTransformToCssTsAST( | CODE |
| LOW | src/compiler/transformers/rewrite-aliased-paths.ts | 14 | export function rewriteAliasedDTSImportPaths( | CODE |
| LOW | src/compiler/transformers/rewrite-aliased-paths.ts | 35 | export function rewriteAliasedSourceFileImportPaths( | CODE |
| LOW | src/compiler/transformers/test/lazy-component.spec.ts | 115 | function verifyStylingUsingComponent(inputComponent: string, expectedOutput: string) { | CODE |
| LOW | …ompiler/transformers/static-to-meta/class-extension.ts | 73 | function resolveAndProcessExtendedClass( | CODE |
| LOW | …/transformers/decorators-to-static/attach-internals.ts | 89 | function parseCustomStatesFromDecorator( | CODE |
| LOW | …mpiler/transformers/component-lazy/attach-internals.ts | 46 | export function createLazyAttachInternalsBinding(cmp: d.ComponentCompilerMeta): ts.Statement[] { | CODE |
| 3 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/wdio/wdio.conf.ts | 61 | // of the configuration file being run. | COMMENT |
| LOW | test/wdio/wdio.conf.ts | 81 | // order to group specific specs to a specific capability. | COMMENT |
| LOW | test/wdio/wdio.conf.ts | 101 | // Level of logging verbosity: trace | debug | info | warn | error | silent | COMMENT |
| LOW | test/wdio/wdio.conf.ts | 121 | bail: 0, | COMMENT |
| LOW | test/wdio/wdio.conf.ts | 141 | // your test setup with almost no effort. Unlike plugins, they don't add new | COMMENT |
| LOW | test/wdio/wdio.conf.ts | 161 | // specFileRetriesDeferred: false, | COMMENT |
| LOW | scripts/esbuild/utils/typescript-source.ts | 21 | // get the source typescript.js file to modify | COMMENT |
| LOW | scripts/esbuild/utils/typescript-source.ts | 41 | // Object.defineProperty(ts, name, value, { enumerable: true }) | COMMENT |
| LOW | scripts/esbuild/utils/typescript-source.ts | 61 | // properties. | COMMENT |
| LOW | scripts/esbuild/utils/typescript-source.ts | 81 | // const minified = await minify(code, { | COMMENT |
| LOW | .github/workflows/test-component-starter.yml | 121 | # - name: Verify Files Exist | COMMENT |
| LOW | .github/workflows/test-component-starter.yml | 141 | # run: npm run test | COMMENT |
| LOW | src/runtime/proxy-component.ts | 301 | // There is an edge case where a developer sets the attribute inline on a custom element and then | COMMENT |
| LOW | src/runtime/update-component.ts | 81 | 'For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime', | COMMENT |
| LOW | src/runtime/test/render-vdom.spec.tsx | 1181 | root.state = false; | COMMENT |
| LOW | src/runtime/vdom/vdom-render.ts | 481 | // since things are matched up in order. | COMMENT |
| LOW | src/runtime/vdom/vdom-render.ts | 501 | // ^^^^^^^^^^^ | COMMENT |
| LOW | src/runtime/vdom/vdom-render.ts | 521 | // <next-sibling /> | COMMENT |
| LOW | src/runtime/vdom/vdom-render.ts | 541 | // ^^^^^^^^^^^ | COMMENT |
| LOW | src/runtime/vdom/vdom-render.ts | 801 | // first get the content reference comment node ('s-cr'), then we get | COMMENT |
| LOW | src/runtime/vdom/vdom-render.ts | 821 | node['s-hn'] !== childNode['s-hn'] && | COMMENT |
| LOW | src/runtime/vdom/vdom-render.ts | 1181 | if (slotRefNode) { | COMMENT |
| LOW | src/runtime/vdom/set-accessor.ts | 121 | // <my-cmp on-click> // listens for "click" | COMMENT |
| LOW | src/runtime/vdom/test/scoped-slot.spec.tsx | 741 | expect(root.firstElementChild.nodeName).toBe('TEST-1'); | COMMENT |
| LOW | src/runtime/vdom/test/scoped-slot.spec.tsx | 761 | // expect(root.firstElementChild.firstElementChild.children[1].firstElementChild.children[0].nodeName).toBe('SLOT-FB | COMMENT |
| LOW | src/utils/shadow-css.ts | 421 | let startIndex = 0; | COMMENT |
| LOW | src/mock-doc/performance.ts | 41 | getEntriesByType() { | COMMENT |
| LOW | src/mock-doc/third-party/jquery.ts | 941 | // Calculate position if both inputs belong to the same document | COMMENT |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 41 | tsconfig: '/tsconfig.json', | COMMENT |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 61 | // "es2018", | COMMENT |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 101 | // }, | COMMENT |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 121 | COMMENT | |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 141 | // expect(r.hmr.inlineStylesUpdated[0].styleText).toBe(``); | COMMENT |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 161 | COMMENT | |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 181 | // expect(content).toContain(`color: green`); | COMMENT |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 201 | // const rebuildListener = compiler.once('buildFinish'); | COMMENT |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 221 | // it('should build one component w/ styleUrl, and re-compile css import of css import changes', async () => { | COMMENT |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 241 | COMMENT | |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 261 | // expect(content).not.toContain(`color: blue`); | COMMENT |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 281 | COMMENT | |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 301 | // }); | COMMENT |
| LOW | src/compiler/style/test/style-rebuild.spec.ts | 321 | // const rebuildListener = compiler.once('buildFinish'); | COMMENT |
| LOW | src/compiler/transformers/type-library.ts | 121 | // we get each export specifier (`Pie`, `Cake`), use the typechecker | COMMENT |
| LOW | src/compiler/transformers/add-tag-transform.ts | 141 | } | COMMENT |
| LOW | src/compiler/transformers/transform-utils.ts | 1421 | // [argName] = "best property around"; | COMMENT |
| LOW | src/compiler/transformers/rewrite-aliased-paths.ts | 181 | // | COMMENT |
| LOW | src/compiler/transformers/rewrite-aliased-paths.ts | 201 | // transformed to relative imports anyway, we check to see if the new | COMMENT |
| LOW | …c/compiler/transformers/map-imports-to-path-aliases.ts | 81 | // | COMMENT |
| LOW | …compiler/transformers/automatic-key-insertion/index.ts | 81 | // We want to only keep going if there's a single return statement because | COMMENT |
| LOW | …c/compiler/transformers/test/add-tag-transform.spec.ts | 281 | // const cmp = ` | COMMENT |
| LOW | …c/compiler/transformers/test/add-tag-transform.spec.ts | 301 | // expect(res).toContain("if (__stencil_transformTag('cmp-b') == el.tagName) {"); | COMMENT |
| LOW | …mpiler/transformers/test/rewrite-aliased-paths.spec.ts | 201 | `, | COMMENT |
| LOW | src/compiler/worker/worker-thread.ts | 41 | const fnName = msgToWorker.method; | COMMENT |
| LOW | …-targets/dist-custom-elements/custom-elements-types.ts | 61 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/runtime/vdom/test/set-accessor.spec.ts | 532 | expectSpecialAttribute('placeholder', undefined, undefined); | CODE |
| LOW | src/runtime/vdom/test/set-accessor.spec.ts | 533 | expectSpecialAttribute('placeholder', null, undefined); | CODE |
| LOW | src/runtime/vdom/test/set-accessor.spec.ts | 574 | expectSpecialAttributeDefined('placeholder', 'text placeholder', undefined); | CODE |
| LOW⚡ | src/utils/test/util.spec.ts | 196 | text: 'Lorem ipsum', | CODE |
| LOW⚡ | src/utils/test/util.spec.ts | 202 | * Lorem ipsum | COMMENT |
| LOW⚡ | src/utils/test/util.spec.ts | 211 | * Lorem ipsum | COMMENT |
| LOW | src/testing/puppeteer/puppeteer-screenshot.ts | 68 | id: 'placeholder', | CODE |
| LOW | …ler/types/tests/ComponentCompilerTypeReference.stub.ts | 15 | id: 'placeholder', | CODE |
| LOW | src/compiler/types/tests/generate-app-types.spec.ts | 135 | id: 'placeholder', | CODE |
| LOW | …compiler/types/tests/ComponentCompilerProperty.stub.ts | 20 | id: 'placeholder', | CODE |
| LOW | …c/compiler/types/tests/ComponentCompilerMethod.stub.ts | 18 | references: { Foo: { location: 'import', path: './resources', id: 'placeholder' } }, | CODE |
| LOW | src/compiler/config/test/validate-dev-server.spec.ts | 253 | inputConfig.devServer = { ...inputDevServerConfig, https: { key: 'fake-key', cert: 'fake-cert' } }; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/compiler/bundle/bundle-output.ts | 71 | // Investigate if we can use this to leverage Stencil's in-memory fs | COMMENT |
| MEDIUM | src/compiler/style/css-imports.ts | 311 | // Extract supports() - handles nested parentheses with a more robust approach | COMMENT |
| MEDIUM | src/compiler/transformers/type-library.ts | 36 | // external packages so we can leverage the original type name when | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/runtime.md | 127 | ### Step 1: Component Discovery | COMMENT |
| LOW | docs/runtime.md | 155 | ### Step 2: Build Feature Aggregation | COMMENT |
| LOW | docs/runtime.md | 176 | ### Step 3: Runtime Generation | COMMENT |
| LOW | docs/runtime.md | 194 | ### Step 4: Optimization Magic | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/runtime/client-hydrate.ts | 269 | * so we need to check if the node is still in the array before appending it to avoid any errors like: | COMMENT |