🕸️ GraphQL Federation Framework for any API services such as REST, OpenAPI, Swagger, SOAP, gRPC and more...
This report summarizes scanner evidence for ardatan/graphql-mesh, a TypeScript project with 3,514 GitHub stars. SynthScan examined 372,665 lines of code across 1378 source files, recording 175 pattern matches distributed across 5 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? 141 finding(s).
Are imports declared and package/API names verified? 34 finding(s).
Are wrappers, guards, and repeated structures necessary? 132 finding(s).
Which changes need focused human review? 175 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 175 distinct pattern matches across 5 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 | packages/fusion/composition/tests/transforms/utils.ts | 26 | export function composeAndGetPublicSchema(subgraphs: SubgraphConfig[]) { | CODE |
| LOW | packages/fusion/composition/tests/transforms/utils.ts | 118 | export function printSortedSchemaWithDirectives(schema: GraphQLSchema) { | CODE |
| LOW | packages/fusion/composition/src/federation-utils.ts | 31 | export function importFederationDirectives(subgraph: GraphQLSchema, directives: string[]) { | CODE |
| LOW | packages/fusion/composition/src/federation-utils.ts | 101 | export function detectAndAddMeshDirectives(subgraph: GraphQLSchema) { | CODE |
| LOW | packages/fusion/composition/src/federation-utils.ts | 146 | export function normalizeDirectiveExtensions(subgraph: GraphQLSchema) { | CODE |
| LOW | packages/fusion/composition/src/compose.ts | 55 | export function getUnifiedGraphGracefully(subgraphs: SubgraphConfig[]) { | CODE |
| LOW | packages/fusion/composition/src/compose.ts | 586 | export function composeAnnotatedSubgraphs(annotatedSubgraphs: ServiceDefinition[]) { | CODE |
| LOW | packages/fusion/composition/src/compose.ts | 595 | function addAnnotationsForSemanticConventions({ | CODE |
| LOW | packages/fusion/composition/src/transforms.ts | 7 | export function createTypeReplaceTransform( | CODE |
| LOW | …fusion/composition/src/transforms/naming-convention.ts | 58 | export function createNamingConventionTransform( | CODE |
| LOW | …fusion/composition/src/transforms/naming-convention.ts | 131 | return function namingConventionTransform(schema: GraphQLSchema) { | CODE |
| LOW | …ckages/fusion/composition/src/transforms/federation.ts | 221 | export function createFederationTransform(config: FederationTransformConfig): SubgraphTransform { | CODE |
| LOW | …kages/fusion/composition/src/transforms/hoist-field.ts | 81 | export function createHoistFieldTransform(opts: CreateHoistFieldTransformOpts): SubgraphTransform { | CODE |
| LOW | packages/fusion/composition/src/transforms/rename.ts | 286 | export function createRenameTypeTransform( | CODE |
| LOW | packages/fusion/composition/src/transforms/rename.ts | 340 | export function createRenameFieldTransform( | CODE |
| LOW | …kages/fusion/composition/src/transforms/encapsulate.ts | 39 | export function createEncapsulateTransform(opts: EncapsulateTransformOpts = {}): SubgraphTransform { | CODE |
| LOW | …ges/fusion/composition/src/transforms/filter-schema.ts | 33 | function compareAndAddInaccessibleDirective( | CODE |
| LOW | …incontext-sdk-codegen/src/generateIncontextSDKTypes.ts | 10 | async function loadTypeScriptCodegenPlugin(): Promise<typeof GraphQLCodegenTypeScript> { | CODE |
| LOW | …incontext-sdk-codegen/src/generateIncontextSDKTypes.ts | 26 | function buildSignatureBasedOnRootFields( | CODE |
| LOW | …incontext-sdk-codegen/src/generateIncontextSDKTypes.ts | 87 | export async function generateIncontextSDKTypes(options: { | CODE |
| LOW | …incontext-sdk-codegen/src/generateIncontextSDKTypes.ts | 179 | export function generateUnifiedContextTypeFromIdentifiers(identifiers: string[]): string { | CODE |
| LOW | packages/cache/redis/src/iam.ts | 207 | export function setupIamAuthRefreshForStandalone( | CODE |
| LOW | packages/plugins/live-query/src/index.ts | 31 | ? function resourceIdentifierFactory({ typename, id }) { | CODE |
| LOW | …kages/plugins/operation-field-permissions/src/index.ts | 6 | export default function useMeshOperationFieldPermissions( | CODE |
| LOW | packages/plugins/http-details-extensions/src/index.ts | 33 | export default function useIncludeHttpDetailsInExtensions(opts: { | CODE |
| LOW | packages/json-machete/src/healUntitledDefinitions.ts | 1 | export function handleUntitledDefinitions(schemaDocument: any) { | CODE |
| LOW | packages/transports/neo4j/src/executor.ts | 120 | export function getExecutableSchemaFromTypeDefsAndDriver({ | CODE |
| LOW | packages/transports/neo4j/src/eventEmitterForPubSub.ts | 5 | export function getEventEmitterFromPubSub(pubsub: MeshPubSub) { | CODE |
| LOW | packages/transports/grpc/src/utils.ts | 138 | export function addExecutionLogicToScalar( | CODE |
| LOW | packages/transports/grpc/src/index.ts | 210 | return function connectivityStateResolver(_, { tryToConnect }) { | CODE |
| LOW | packages/transports/soap/tests/multi-namespace.spec.ts | 9 | function getRequestBodyFromFetchSpy(fetchSpy: jest.Mock): string { | CODE |
| LOW | packages/transports/soap/src/executor.ts | 54 | function normalizeArgsForConverter(args: any): any { | CODE |
| LOW | packages/transports/soap/src/executor.ts | 181 | function getOrAssignPrefix( | CODE |
| LOW | packages/transports/soap/src/executor.ts | 614 | export function createExecutorFromSchemaAST( | CODE |
| LOW | packages/transports/mysql/src/parseEndpointUri.ts | 6 | export function getConnectionOptsFromEndpointUri(endpointUri: string) { | CODE |
| LOW | …ckages/transports/rest/src/directives/discriminator.ts | 3 | export function processDiscriminatorAnnotations({ | CODE |
| LOW | …ckages/transports/rest/src/directives/discriminator.ts | 15 | interfaceType.resolveType = function discriminatorDirectiveHandler(data) { | CODE |
| LOW | packages/transports/rest/src/directives/scalars.ts | 34 | export function addExecutionLogicToScalar( | CODE |
| LOW | packages/transports/rest/src/directives/dictionary.ts | 3 | export function processDictionaryDirective( | CODE |
| LOW | packages/transports/rest/src/directives/dictionary.ts | 7 | field.resolve = function dictionaryDirectiveHandler(root) { | CODE |
| LOW | …ges/transports/rest/src/directives/resolveRootField.ts | 11 | export function processResolveRootFieldAnnotations( | CODE |
| LOW | packages/transports/rest/src/directives/utils.ts | 44 | function normalizeArgValueForInterpolation(argValue: any): any { | CODE |
| LOW | packages/transports/rest/src/directives/utils.ts | 51 | export function serializeArgumentsForInterpolation(argValue: any, argType: GraphQLInputType) { | CODE |
| LOW | packages/transports/rest/src/directives/resolveRoot.ts | 7 | export function processResolveRootAnnotations(field: GraphQLField<any, any>) { | CODE |
| LOW | …/rest/src/directives/getTypeResolverForAbstractType.ts | 9 | export function getTypeResolverForAbstractType({ | CODE |
| LOW | …ckages/transports/rest/src/directives/httpOperation.ts | 27 | const isListTypeOrNonNullListType = memoize1(function isListTypeOrNonNullListType( | CODE |
| LOW | …rts/rest/src/directives/resolveDataByUnionInputType.ts | 6 | export function resolveDataByUnionInputType( | CODE |
| LOW | packages/transports/rest/src/directives/flatten.ts | 3 | export function processFlattenAnnotations(field: GraphQLField<any, any>) { | CODE |
| LOW | …ages/transports/rest/src/directives/pubsubOperation.ts | 13 | export function processPubSubOperationAnnotations({ | CODE |
| LOW | …ransports/rest/src/directives/typescriptAnnotations.ts | 3 | export function processTypeScriptAnnotations(type: GraphQLLeafType, typeDefinition: string) { | CODE |
| LOW | …ges/transports/rest/src/directives/responseMetadata.ts | 3 | export function processResponseMetadataAnnotations(field: GraphQLField<any, any>) { | CODE |
| LOW | packages/transports/rest/src/directives/link.ts | 7 | export function processLinkFieldAnnotations( | CODE |
| LOW | packages/legacy/migrate-config-cli/src/migrate.ts | 562 | function handleTransformConfiguration( | CODE |
| LOW | packages/legacy/config/src/utils.ts | 89 | export async function resolveAdditionalTypeDefs(baseDir: string, additionalTypeDefs: string) { | CODE |
| LOW | packages/legacy/runtime/src/get-mesh.ts | 83 | function createProxyingResolverFactory( | CODE |
| LOW | packages/legacy/runtime/src/get-mesh.ts | 358 | function handleExecutorResultForSdk(result) { | CODE |
| LOW | packages/legacy/apollo-link/src/index.ts | 13 | function createMeshApolloRequestHandler( | CODE |
| LOW | packages/legacy/utils/src/getOperationsAndFragments.ts | 4 | export const getOperationsAndFragments = memoize1(function getOperationsAndFragments( | CODE |
| LOW | packages/legacy/utils/src/in-context-sdk.ts | 293 | function getSelectionSetFromDocumentNode(documentNode: DocumentNode): SelectionSetNode { | CODE |
| LOW | packages/legacy/utils/src/in-context-sdk.ts | 303 | function normalizeSelectionSetParam(selectionSetParam: SelectionSetParam): SelectionSetNode { | CODE |
| 72 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/hive-example/sources/authors/src/index.ts | 7 | name: 'John Doe', | CODE |
| LOW | examples/hive-example/sources/authors/src/index.ts | 12 | name: 'Jane Doe', | CODE |
| LOW | …type-merging-batching-example/author-service-schema.ts | 6 | name: 'John Doe', | CODE |
| LOW | …type-merging-batching-example/author-service-schema.ts | 10 | name: 'Jane Doe', | CODE |
| LOW | …s/type-merging-batching-example/book-service-schema.ts | 6 | title: 'Lorem Ipsum', | CODE |
| LOW | …s/type-merging-batching-example/book-service-schema.ts | 11 | title: 'Dolor Sit Amet', | CODE |
| LOW | examples/programmatic-batching/example-api/app.ts | 6 | { id: 1, name: 'John Doe' }, | CODE |
| LOW | examples/programmatic-batching/example-api/app.ts | 7 | { id: 2, name: 'Jane Doe' }, | CODE |
| LOW | examples/nextjs-apollo-example/pages/api/hello.js | 4 | res.status(200).json({ name: 'John Doe' }); | CODE |
| LOW | packages/plugins/mock/tests/mocking.spec.ts | 335 | addUser(name: "John Doe") { | CODE |
| LOW | packages/plugins/mock/tests/mocking.spec.ts | 346 | expect(addUserResult?.data?.addUser?.name).toBe('John Doe'); | CODE |
| LOW | packages/plugins/mock/tests/mocking.spec.ts | 362 | expect(getUserResult?.data?.user?.name).toBe('John Doe'); | CODE |
| LOW | packages/plugins/mock/tests/mocking.spec.ts | 365 | updateUser(id: "${addedUserId}", name: "Jane Doe") { | CODE |
| LOW | packages/plugins/mock/tests/mocking.spec.ts | 377 | expect(updateUserResult?.data?.updateUser?.name).toBe('Jane Doe'); | CODE |
| LOW | packages/plugins/mock/tests/mocking.spec.ts | 445 | addUser(name: "John Doe") { | CODE |
| LOW | packages/plugins/mock/tests/mocking.spec.ts | 455 | expect(addUserResult?.data?.addUser?.name).toBe('John Doe'); | CODE |
| LOW | packages/plugins/mock/tests/mocking.spec.ts | 470 | expect(getUserResult?.data?.user?.name).toBe('John Doe'); | CODE |
| LOW | packages/plugins/mock/tests/mocking.spec.ts | 473 | updateUser(id: "${addedUserId}", name: "Jane Doe") { | CODE |
| LOW | packages/plugins/mock/tests/mocking.spec.ts | 484 | expect(updateUserResult?.data?.updateUser?.name).toBe('Jane Doe'); | CODE |
| LOW | …kages/legacy/runtime/test/reproduction-8688/schema.yml | 155 | example: 'Jane Doe' | CODE |
| LOW | …es/legacy/handlers/supergraph/tests/supergraph.spec.ts | 118 | name: 'Jane Doe', | CODE |
| LOW | …es/legacy/handlers/supergraph/tests/supergraph.spec.ts | 169 | name: 'Jane Doe', | CODE |
| LOW | …es/legacy/handlers/supergraph/tests/supergraph.spec.ts | 223 | name: 'Jane Doe', | CODE |
| LOW | e2e/type-merging-batching/services/authors.ts | 8 | name: 'John Doe', | CODE |
| LOW | e2e/type-merging-batching/services/authors.ts | 12 | name: 'Jane Doe', | CODE |
| LOW | e2e/type-merging-batching/services/books.ts | 8 | title: 'Lorem Ipsum', | CODE |
| LOW | e2e/type-merging-batching/services/books.ts | 13 | title: 'Dolor Sit Amet', | CODE |
| LOW | e2e/programmatic-batching/services/api.ts | 6 | { id: 1, name: 'John Doe' }, | CODE |
| LOW | e2e/programmatic-batching/services/api.ts | 7 | { id: 2, name: 'Jane Doe' }, | CODE |
| LOW | e2e/type-merging-with-transforms/services/authors.ts | 8 | name: 'John Doe', | CODE |
| LOW | e2e/type-merging-with-transforms/services/authors.ts | 12 | name: 'Jane Doe', | CODE |
| LOW | e2e/type-merging-with-transforms/services/books.ts | 8 | title: 'Lorem Ipsum', | CODE |
| LOW | e2e/type-merging-with-transforms/services/books.ts | 13 | title: 'Dolor Sit Amet', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | packages/legacy/handlers/odata/test/handler.spec.ts | 675 | const correctUrl = `https://services.odata.org/TripPinRESTierService/People/russellwhyte/Microsoft.OData.Service.Sam | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/openapi-react-weatherbit/src/serviceWorker.ts | 1 | // This optional code is used to register a service worker. | COMMENT |
| LOW | examples/openapi-react-weatherbit/src/setupTests.ts | 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. | COMMENT |
| LOW | …graphql-file-upload-example/frontend/src/setupTests.ts | 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. | COMMENT |
| LOW | examples/nextjs-sdk-example/next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| LOW | examples/nextjs-apollo-example/next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| LOW | packages/transports/soap/src/executor.ts | 381 | const argTypeMap = Object.fromEntries(fieldDef.args.map(a => [a.name, a.type])); | COMMENT |
| LOW | packages/loaders/openapi/tests/example_api.test.ts | 1781 | // ofType { | COMMENT |
| LOW | packages/loaders/openapi/tests/example_api.test.ts | 1801 | // return field.name === 'patent_id'; | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/type-merging-batching-example/.meshrc.yml | 44 | # Create a stitching resolver with batching | COMMENT |