A reference implementation of GraphQL for JavaScript
This report summarizes scanner evidence for graphql/graphql-js, a TypeScript project with 20,344 GitHub stars. SynthScan examined 158,715 lines of code across 556 source files, recording 161 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.1 (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? 155 finding(s).
Are imports declared and package/API names verified? 6 finding(s).
Are wrappers, guards, and repeated structures necessary? 144 finding(s).
Which changes need focused human review? 161 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 161 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 | resources/build-npm.ts | 253 | function buildPlatformConditionalExports( | CODE |
| LOW | resources/change-extension-in-import-paths.ts | 22 | export function changeExtensionInImportPaths(config: { | CODE |
| LOW | resources/change-extension-in-import-paths.ts | 70 | export function changeExtensionInImportPathsInBundle(config: { | CODE |
| LOW | resources/benchmark/statistics.ts | 82 | export function havePairwiseComparisonsStabilized( | CODE |
| LOW | resources/benchmark/statistics.ts | 113 | function computeRelativeMarginOfError(samples: ReadonlyArray<number>): number { | CODE |
| LOW | …es/eslint-internal-rules/require-public-api-exports.js | 77 | function reportUnexpectedInternalDoc(node, name) { | CODE |
| LOW | …es/eslint-internal-rules/require-public-api-exports.js | 194 | function unwrapExportedDeclaration(statement) { | CODE |
| LOW | …es/eslint-internal-rules/require-public-api-exports.js | 453 | function isDocumentableDeclaration(node) { | CODE |
| LOW | …lint-internal-rules/require-graphql-public-api-docs.js | 12 | function requireGraphqlPublicApiDocs(context) { | CODE |
| LOW | …lint-internal-rules/require-graphql-public-api-docs.js | 128 | function unwrapExportedDeclaration(statement) { | CODE |
| LOW | …lint-internal-rules/require-graphql-public-api-docs.js | 198 | function isDocumentableDeclaration(node) { | CODE |
| LOW⚡ | website/generate-api.js | 1782 | function signatureArrayElementTypeSource(type, ctx) { | CODE |
| LOW⚡ | website/generate-api.js | 1791 | function signatureTypeArgumentsSource(type, ctx) { | CODE |
| LOW⚡ | website/generate-api.js | 1798 | function signatureSourceTypeEquivalent(type, ctx) { | CODE |
| LOW⚡ | website/generate-api.js | 1874 | function signatureInterfaceTypeSource(node, packagePath, ctx) { | CODE |
| LOW⚡ | website/generate-api.js | 1881 | function signatureObjectTypeSource(members, ctx) { | CODE |
| LOW⚡ | website/generate-api.js | 1887 | function signatureInterfaceMemberSource(member, packagePath, ctx) { | CODE |
| LOW | website/generate-api.js | 384 | function collectDeclarationDefaults(metadata, statement, packagePath) { | CODE |
| LOW | website/generate-api.js | 1159 | function typeLiteralIndexSignature(signature, options = {}) { | CODE |
| LOW | website/generate-api.js | 1471 | function renderScannedSignatureSource(source, renderToken) { | CODE |
| LOW | website/generate-api.js | 1503 | function renderLeadingWhitespaceToken(token, tokenText, atLineStart) { | CODE |
| LOW | website/generate-api.js | 1510 | function createSignatureSourceContext(options = {}) { | CODE |
| LOW | website/generate-api.js | 1522 | function withSignatureSourceContext(ctx, overrides) { | CODE |
| LOW | website/generate-api.js | 1580 | function renderFormattedSignatureSource(source, ctx) { | CODE |
| LOW | website/generate-api.js | 1586 | function renderFormattedSignatureToken(token, tokenText, ctx) { | CODE |
| LOW | website/generate-api.js | 1601 | async function formatInterfaceMemberSource(memberSource) { | CODE |
| LOW | website/generate-api.js | 1636 | function signatureTypeParametersSource(node, ctx) { | CODE |
| LOW | website/generate-api.js | 1646 | function signatureTypeParameterSource(param, ctx) { | CODE |
| LOW | website/generate-api.js | 1661 | function signatureParametersSource(signature, ctx, options = {}) { | CODE |
| LOW | website/generate-api.js | 1669 | function signatureParameterDeclarationSource( | CODE |
| LOW | website/generate-api.js | 1685 | function signatureFunctionTypeSource(signature, ctx) { | CODE |
| LOW | website/generate-api.js | 1918 | function signatureReflectionTypeSource(node, ctx) { | CODE |
| LOW | website/generate-api.js | 1939 | function signatureTypeLiteralIndexSignatureSource(signature, ctx) { | CODE |
| LOW | website/generate-api.js | 1953 | function signatureIndexSignatureSource( | CODE |
| LOW | website/generate-api.js | 1966 | function signatureTypedPropertySource(name, optional, type, ctx) { | CODE |
| LOW | website/generate-api.js | 1972 | function signaturePropertyNameSource(name, ctx) { | CODE |
| LOW | website/generate-api.js | 2063 | function signatureTypeNodeParameterSource(param, packagePath, ctx) { | CODE |
| LOW | website/generate-api.js | 2143 | async function renderSignatureDeclaration( | CODE |
| LOW | website/generate-api.js | 2166 | async function renderConstructorDeclaration(signature, options = {}) { | CODE |
| LOW | website/generate-api.js | 2186 | async function renderTypeAliasDeclaration(node, options = {}) { | CODE |
| LOW | website/generate-api.js | 2421 | function tableWithOptionalDescription(headers, rows) { | CODE |
| LOW | website/generate-api.js | 2510 | async function renderInterfaceDeclaration(node, options = {}) { | CODE |
| LOW | website/generate-api.js | 3076 | function assertAllItemsCategorized(docs) { | CODE |
| LOW | website/generate-api.js | 3172 | function isLeadingLineCommentTrivia(value) { | CODE |
| LOW | website/generate-api.js | 3273 | function exposePublicOverloadSignatures(dir) { | CODE |
| LOW | website/generate-api.js | 3300 | function publicOverloadImplementationJSDocRanges(ast, content) { | CODE |
| LOW | website/generate-api.js | 3364 | function stripCoverageIgnoreComments(dir) { | CODE |
| LOW | website/generate-api.js | 3425 | function assertUniqueMajorVersions(sources) { | CODE |
| LOW | integrationTests/diagnostics-bun/test.js | 145 | function runExecuteRootSelectionSetCase() { | CODE |
| LOW | …egrationTests/diagnostics-deno-with-node-build/test.js | 145 | function runExecuteRootSelectionSetCase() { | CODE |
| LOW | …egrationTests/diagnostics-deno-with-deno-build/test.js | 145 | function runExecuteRootSelectionSetCase() { | CODE |
| LOW | src/diagnostics.ts | 290 | function resolveDiagnosticsChannel(): DiagnosticsChannelModule | undefined { | CODE |
| LOW | src/graphql.ts | 261 | function validateAndExecute( | CODE |
| LOW | src/graphql.ts | 284 | function checkValidationAndExecute( | CODE |
| LOW | src/language/lexer.ts | 680 | function readEscapedUnicodeVariableWidth( | CODE |
| LOW | src/language/lexer.ts | 715 | function readEscapedUnicodeFixedWidth( | CODE |
| LOW | src/language/predicates.ts | 59 | export function isExecutableDefinitionNode( | CODE |
| LOW | src/language/predicates.ts | 86 | export function isSubscriptionOperationDefinitionNode( | CODE |
| LOW | src/language/predicates.ts | 212 | export function isTypeSystemDefinitionNode( | CODE |
| LOW | src/language/predicates.ts | 265 | export function isTypeSystemExtensionNode( | CODE |
| 84 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/utilities/__tests__/TypeInfo-test.ts | 366 | print(parse('{ human(id: 4) { name, pets }, alien }')), | CODE |
| HIGH | src/utilities/__tests__/TypeInfo-test.ts | 370 | print( | CODE |
| HIGH | src/type/scalars.ts | 298 | print(valueNode), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | website/next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| LOW | .github/workflows/ci.yml | 261 | - name: Run denoDist package publish dry-run checks | COMMENT |
| LOW | src/language/lexer.ts | 281 | // | COMMENT |
| LOW | src/execution/incremental/__tests__/stream-test.ts | 2661 | // treated as still belonging to the outer @defer instead of to the stream | COMMENT |
| LOW | …tion/legacyIncremental/__tests__/legacy-stream-test.ts | 2121 | // Validation rejects the overlapping @stream selections. See | COMMENT |
| LOW | …ion/rules/DeferStreamDirectiveOnValidOperationsRule.ts | 261 | // - Continue to the next {selection} in {selectionSet}. | COMMENT |
| LOW | …ion/rules/DeferStreamDirectiveOnValidOperationsRule.ts | 281 | // - Let {fragmentSelectionSet} be the selection set of {selection}. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | website/package-lock.json | 8418 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz", | CODE |
| MEDIUM | website/pages/api-v17/graphql/_meta.ts | 16 | href: '/api-v17/graphql#category-harness', | CODE |
| MEDIUM | src/validation/__tests__/ScalarLeafsRule-test.ts | 67 | // We can't leverage expectErrors since it doesn't support passing in the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/jsutils/keyMap.ts | 15 | * { name: 'Jon', num: '555-1234' }, | COMMENT |
| LOW | src/jsutils/keyValMap.ts | 12 | * { name: 'Jon', num: '555-1234' }, | COMMENT |
| LOW | src/jsutils/keyValMap.ts | 20 | * ); // => { Jon: '555-1234', Jenny: '867-5309' } | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/utilities/buildClientSchema.ts | 62 | * This function expects a complete introspection result. Don't forget to check | COMMENT |