The superpowered headless CMS for Node.js — built with GraphQL and React
This report summarizes scanner evidence for keystonejs/keystone, a TypeScript project with 9,986 GitHub stars. SynthScan examined 166,681 lines of code across 1275 source files, recording 155 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 1.6 (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? 145 finding(s).
Are imports declared and package/API names verified? 10 finding(s).
Are wrappers, guards, and repeated structures necessary? 105 finding(s).
Which changes need focused human review? 155 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 155 distinct pattern matches across 8 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 | tests/api-tests/utils.ts | 60 | export function expectInternalServerError( | CODE |
| LOW | tests/api-tests/utils.ts | 76 | export function expectGraphQLValidationError( | CODE |
| LOW | tests/api-tests/utils.ts | 187 | export function expectSingleRelationshipError( | CODE |
| LOW | docs/components/docs/DocumentEditorDemo.tsx | 99 | function documentFeaturesCodeExample(config: DocumentFieldConfig | DocumentFeatures) { | CODE |
| LOW | docs/components/docs/DocumentEditorDemo.tsx | 143 | function documentFeaturesToShorthand(documentFeatures: DocumentFeatures): DocumentFieldConfig { | CODE |
| LOW | docs/components/docs/DocumentEditorDemo.tsx | 198 | function documentFeaturesFormToValue(formValue: DocumentFeaturesFormValue): DocumentFeatures { | CODE |
| LOW | docs/components/docs/DocumentEditorDemo.tsx | 264 | export function DocumentFeaturesFormAndCode() { | CODE |
| LOW | docs/scripts/replace-show-next-release/markdoc.ts | 6 | export function removeNextReleaseConditions(contents: string) { | CODE |
| LOW | scripts/prepare-release.js | 261 | async function generateGitHubReleaseText(previousTag, releaseTag) { | CODE |
| LOW | packages/document-renderer/src/index.tsx | 212 | function createComponentBlockProps(node: Element, children: ReactElement[]) { | CODE |
| LOW | packages/core/src/artifacts.ts | 16 | export function getFormattedGraphQLSchema(schema: string) { | CODE |
| LOW | packages/core/src/scripts/utils.ts | 17 | export async function importBuiltKeystoneConfiguration(cwd: string): Promise<KeystoneConfig> { | CODE |
| LOW | packages/core/src/lib/middleware.ts | 10 | export function createAdminUIMiddlewareWithNextApp( | CODE |
| LOW | packages/core/src/lib/typescript-schema-printer.ts | 39 | function printTypeReferenceWithoutNullable( | CODE |
| LOW | packages/core/src/lib/admin-meta.ts | 437 | export function getAdminMetaForRelationshipField() { | CODE |
| LOW | packages/core/src/lib/telemetry.ts | 231 | async function sendProjectTelemetryEvent( | CODE |
| LOW | packages/core/src/lib/system.ts | 7 | export function getBuiltKeystoneConfigurationPath(cwd: string) { | CODE |
| LOW | …kages/core/src/lib/coerceAndValidateForGraphQLInput.ts | 14 | export function coerceAndValidateForGraphQLInput( | CODE |
| LOW | packages/core/src/lib/context/graphql.ts | 37 | function getNamedOrListTypeNodeForType( | CODE |
| LOW | packages/core/src/lib/context/graphql.ts | 60 | function getVariablesForGraphQLField(field: GraphQLField<any, any>) { | CODE |
| LOW | packages/core/src/lib/core/field-assertions.ts | 16 | function assertFieldsIsNonNullAllowed(list: ListForValidation) { | CODE |
| LOW | packages/core/src/lib/core/field-assertions.ts | 29 | function assertUniqueWhereInputsValid(list: ListForValidation) { | CODE |
| LOW | packages/core/src/lib/core/field-assertions.ts | 47 | function assertNoFieldKeysThatConflictWithFilterCombinators(list: ListForValidation) { | CODE |
| LOW | packages/core/src/lib/core/field-assertions.ts | 57 | function assertNoConflictingExtraOutputFields(list: ListForValidation) { | CODE |
| LOW | packages/core/src/lib/core/field-assertions.ts | 81 | function assertIdFieldGraphQLTypesCorrect(list: ListForValidation) { | CODE |
| LOW | packages/core/src/lib/core/prisma-schema-printer.ts | 165 | function assertDbFieldIsValidForIdField( | CODE |
| LOW | packages/core/src/lib/core/access-control.ts | 239 | export async function enforceListLevelAccessControl( | CODE |
| LOW | packages/core/src/lib/core/access-control.ts | 301 | export async function enforceFieldLevelAccessControl( | CODE |
| LOW | packages/core/src/lib/core/utils.ts | 31 | export function getDBFieldKeyForFieldOnMultiField(fieldKey: string, subField: string) { | CODE |
| LOW | packages/core/src/lib/core/initialise-lists.ts | 139 | function isGraphQLInputTypeAssignable(source: GraphQLType, target: GraphQLType): boolean { | CODE |
| LOW | packages/core/src/lib/core/initialise-lists.ts | 454 | function getListsWithInitialisedFields( | CODE |
| LOW | packages/core/src/lib/core/initialise-lists.ts | 1123 | function getInitialisedActionGraphql( | CODE |
| LOW | packages/core/src/lib/core/mutations/select.ts | 33 | function applyConditionalSelection( | CODE |
| LOW | …core/mutations/nested-mutation-many-input-resolvers.ts | 39 | export function resolveRelateToManyForCreateInput( | CODE |
| LOW | …core/mutations/nested-mutation-many-input-resolvers.ts | 84 | export function resolveRelateToManyForUpdateInput( | CODE |
| LOW | …/core/mutations/nested-mutation-one-input-resolvers.ts | 35 | export function resolveRelateToOneForCreateInput( | CODE |
| LOW | …/core/mutations/nested-mutation-one-input-resolvers.ts | 51 | export function resolveRelateToOneForUpdateInput( | CODE |
| LOW | packages/core/src/lib/core/mutations/index.ts | 609 | async function resolveInputForCreateOrUpdate( | CODE |
| LOW | packages/core/src/lib/core/queries/select.ts | 112 | export function getOutputFieldRequirements( | CODE |
| LOW | packages/core/src/lib/core/queries/output-field.ts | 96 | function prepareRelatedItemSelection( | CODE |
| LOW | packages/core/src/lib/core/queries/output-field.ts | 120 | function mergeRelatedItemSelections( | CODE |
| LOW | packages/core/src/fields/types/calendarDay/index.ts | 139 | function dateStringToDateObjectInUTC(value: string) { | CODE |
| LOW | packages/core/src/fields/types/calendarDay/index.ts | 154 | function transformFilterDateStringsToDateObjects( | CODE |
| LOW | …/fields/types/relationship/views/ContextualActions.tsx | 131 | export function buildQueryForRelationshipFieldWithForeignField( | CODE |
| LOW | packages/core/src/fields/types/multiselect/index.ts | 168 | function configToOptionsAndGraphQLType( | CODE |
| LOW | packages/core/src/admin-ui/utils/filters.ts | 19 | function isConditionalFilterOperator(key: string): key is 'AND' | 'OR' | 'NOT' { | CODE |
| LOW | packages/core/src/admin-ui/utils/filters.ts | 70 | export function serializeItemForConditionalFilters( | CODE |
| LOW | packages/core/src/admin-ui/utils/filters.ts | 117 | export function getConditionalFilterCaseFieldKeys( | CODE |
| LOW | packages/core/src/admin-ui/utils/filters.ts | 146 | export function getConditionalFilterFieldKeys( | CODE |
| LOW | packages/core/src/admin-ui/utils/actionData.ts | 53 | export function getActionGraphQLVariables(action: ActionMeta): string { | CODE |
| LOW | packages/core/src/admin-ui/utils/utils.tsx | 25 | export function getRootGraphQLFieldsFromFieldController(controller: FieldController<any, any>) { | CODE |
| LOW | packages/core/src/admin-ui/utils/utils.tsx | 79 | export function serializeValueToOperationItem( | CODE |
| LOW | packages/fields-document/src/validation.ts | 25 | function validateComponentBlockProps( | CODE |
| LOW | packages/fields-document/src/validation.ts | 133 | export function getValidatedNodeWithNormalizedComponentFormProps( | CODE |
| LOW | packages/fields-document/src/validation.ts | 174 | export function validateAndNormalizeDocument( | CODE |
| LOW | packages/fields-document/src/validation.ts | 174 | export function validateAndNormalizeDocument( | CODE |
| LOW | packages/fields-document/src/structure-validation.ts | 163 | export function validateDocumentStructure(value: unknown): asserts value is Node[] { | CODE |
| LOW | packages/fields-document/src/relationship-data.ts | 160 | export async function addRelationshipDataToComponentProps( | CODE |
| LOW | packages/fields-document/src/structure-graphql-input.ts | 308 | export async function resolveRelateToManyForCreateInput( | CODE |
| LOW | packages/fields-document/src/structure-graphql-input.ts | 343 | export async function resolveRelateToManyForUpdateInput( | CODE |
| 45 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | packages/core/src/lib/core/field-assertions.ts | 92 | } defines the type ${idField.input.uniqueWhere.arg.type.toString()}` | CODE |
| CRITICAL | …/component-blocks/insertion-and-preview-props.test.tsx | 303 | previewProps.fields.object.fields.conditional.onChange(true) | CODE |
| CRITICAL | …/component-blocks/insertion-and-preview-props.test.tsx | 393 | previewProps.fields.object.fields.select.onChange('b') | CODE |
| CRITICAL | …/component-blocks/insertion-and-preview-props.test.tsx | 403 | previewProps.fields.object.fields.many.onChange(val) | CODE |
| CRITICAL | …/component-blocks/insertion-and-preview-props.test.tsx | 420 | previewProps.fields.object.fields.conditional.value.onChange(val) | CODE |
| CRITICAL | …/component-blocks/insertion-and-preview-props.test.tsx | 430 | previewProps.fields.object.fields.conditionalSelect.onChange('b') | CODE |
| CRITICAL | …/component-blocks/insertion-and-preview-props.test.tsx | 464 | previewProps.fields.object.fields.conditionalSelect.value.onChange('Some content') | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/custom-session-passport/schema.ts | 6 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/custom-session-passport/auth.ts | 74 | // WARNING: this is for demonstration purposes only, probably dont do this | COMMENT |
| MEDIUM | examples/usecase-blog-moderated/schema.ts | 6 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/auth-magic-link/schema.ts | 106 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/auth-magic-link/keystone.ts | 8 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/auth/schema.ts | 6 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/auth/keystone.ts | 8 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/custom-session-invalidation/schema.ts | 6 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/custom-session-invalidation/keystone.ts | 8 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/custom-session-redis/schema.ts | 6 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/custom-session-redis/keystone.ts | 9 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/usecase-roles/schema.ts | 8 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/usecase-roles/keystone.ts | 7 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/custom-session-next-auth/schema.ts | 6 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/custom-session-next-auth/session.ts | 7 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/custom-session-next-auth/keystone.ts | 8 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/hooks/schema.ts | 7 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/actions/schema.ts | 7 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/logging-opentelemetry/otel.ts | 5 | // WARNING: this open-telemetry example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/custom-session-jwt/keystone.ts | 8 | // WARNING: this example is for demonstration purposes only | COMMENT |
| MEDIUM | examples/extend-express-app/keystone.ts | 7 | // WARNING: this example is for demonstration purposes only | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/cli-tests/artifacts.test.ts | 61 | // uncomment when you need to update the schemas | COMMENT |
| LOW | docs/next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| LOW | examples/auth-magic-link/schema.ts | 101 | oneTimeTokenCreatedAt: timestamp({ ...hiddenField }), | COMMENT |
| LOW | examples/document-field/next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| LOW | examples/framework-astro/src/env.d.ts | 1 | /// <reference path="../.astro/types.d.ts" /> | COMMENT |
| LOW | examples/framework-astro/src/keystone/schema.ts | 1 | // Welcome to your schema | COMMENT |
| LOW | examples/framework-remix/remix.env.d.ts | 1 | /// <reference types="@remix-run/dev" /> | COMMENT |
| LOW | packages/core/src/types/next-fields.ts | 321 | // TDBField extends RelationDBField<infer Mode> | COMMENT |
| LOW | packages/core/src/types/config/access-control.ts | 141 | create?: ListItemAccessControl<'create', ListTypeInfo> | COMMENT |
| LOW | packages/core/src/types/schema/legacy-alias.ts | 21 | */ | COMMENT |
| LOW | packages/core/src/admin-ui/components/Logo.tsx | 61 | <path d="M0 0h13v76H0V0Z" fill={tokenSchema.color.foreground.neutral} /> | COMMENT |
| LOW | …es/fields-document/src/DocumentEditor/editor-shared.ts | 321 | } | COMMENT |
| LOW | …es/fields-document/src/DocumentEditor/editor-shared.ts | 341 | // return `"${key}" -> {${[...val.allowedChildren].map(x => JSON.stringify(x)).join(' ')}}`; | COMMENT |
| LOW | …ds-document/src/DocumentEditor/toolbar-state-shared.ts | 121 | ) as ToolbarState['marks'] | COMMENT |
| LOW | …es/fields-document/src/DocumentEditor/pasting/index.ts | 21 | editor.setFragmentData = data => { | COMMENT |
| LOW | packages/create/starter/schema.ts | 1 | // Welcome to your schema | COMMENT |
| LOW | packages/create/starter/auth.ts | 1 | // Welcome to some authentication for Keystone | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/cli-tests/utils.ts | 161 | print(_val) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/content/docs/walkthroughs/lesson-4.md | 309 | data: { name: 'admin', email: 'admin@example.com', password }, | CODE |
| LOW | packages/create/starter/keystone.ts | 37 | data: { name: 'admin', email: 'admin@example.com', password }, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/core/src/artifacts.ts | 18 | '# This file is automatically generated by Keystone, do not modify it manually.\n' + | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nd-graphql-subscriptions/admin/pages/subscriptions.tsx | 68 | // NOTE: to stop Next.js SSR from breaking, we need to check if window is defined | COMMENT |