AI Slop Code Risk Monitor

drizzle-team/drizzle-orm

SlopCodeMonitor badge for drizzle-team/drizzle-orm Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

ORM

0.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for drizzle-team/drizzle-orm, a TypeScript project with 36,184 GitHub stars. SynthScan examined 481,989 lines of code across 1340 source files, recording 608 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 0.9 (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.

0.9
Adjusted Signal
0.9
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
36.2K
Stars
TypeScript
Language
482.0K
Lines of Code
1.3K
Files
608
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 4.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 597 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

Are imports declared and package/API names verified? 11 finding(s).

Agent Over-Engineering Ratio 0.3/100 · LOW

Are wrappers, guards, and repeated structures necessary? 27 finding(s).

PR Review Velocity Impact 6.1/100 · LOW

Which changes need focused human review? 608 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 0LOW 608

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 608 distinct pattern matches across 4 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.

Over-Commented Block567 hits · 402 pts
SeverityFileLineSnippetContext
LOWdrizzle-kit/tests/cli-generate.test.ts1import { test as brotest } from '@drizzle-team/brocli';COMMENT
LOWdrizzle-kit/tests/pg-identity.test.ts1import { integer, pgSequence, pgTable } from 'drizzle-orm/pg-core';COMMENT
LOWdrizzle-kit/tests/push/pg.test.ts1001 // async addVectorIndexes() {COMMENT
LOWdrizzle-kit/tests/push/pg.test.ts1021 // .with({ m: 16, ef_construction: 64 }),COMMENT
LOWdrizzle-kit/tests/migrate/libsql-migrate.test.ts41// const res = await query(`PRAGMA table_info("users");`);COMMENT
LOWdrizzle-kit/src/introspect-gel.ts101// const mappedTableEntries = Object.entries(val).map((tableEntry) => {COMMENT
LOWdrizzle-kit/src/introspect-gel.ts121// if (value.name === columnName) {COMMENT
LOWdrizzle-kit/src/introspect-gel.ts141// relationsConfig.tableNamesMap[relation.referencedTableName].split('.')[1]COMMENT
LOWdrizzle-kit/src/introspect-gel.ts161// }`,COMMENT
LOWdrizzle-kit/src/introspect-gel.ts301 // Object.values(schema.enums).forEach((it) => {COMMENT
LOWdrizzle-kit/src/introspect-gel.ts321 // const values = Object.values(it.values)COMMENT
LOWdrizzle-kit/src/introspect-gel.ts341 // if (it.increment) {COMMENT
LOWdrizzle-kit/src/introspect-gel.ts461 // : 'gelView';COMMENT
LOWdrizzle-kit/src/introspect-gel.ts881COMMENT
LOWdrizzle-kit/src/introspect-gel.ts901 // paramName,COMMENT
LOWdrizzle-kit/src/utils.ts81};COMMENT
LOWdrizzle-kit/src/jsonStatements.ts2361 // newDataType: columnType,COMMENT
LOWdrizzle-kit/src/jsonStatements.ts2381 // columnOnUpdate,COMMENT
LOWdrizzle-kit/src/introspect-pg.ts1161COMMENT
LOWdrizzle-kit/src/introspect-pg.ts1181 // )COMMENT
LOWdrizzle-kit/src/snapshotsDiffer.ts1681 );COMMENT
LOWdrizzle-kit/src/serializer/sqliteSerializer.ts821 // }COMMENT
LOWdrizzle-kit/src/serializer/gelSerializer.ts201 // const existingUnique = uniqueConstraintObject[column.uniqueName!];COMMENT
LOWdrizzle-kit/src/serializer/gelSerializer.ts221 // )COMMENT
LOWdrizzle-kit/src/serializer/gelSerializer.ts281 // uniqueConstraints?.map((unq) => {COMMENT
LOWdrizzle-kit/src/serializer/gelSerializer.ts301 // // );COMMENT
LOWdrizzle-kit/src/serializer/gelSerializer.ts521 });COMMENT
LOWdrizzle-kit/src/serializer/gelSerializer.ts541 // tableName,COMMENT
LOWdrizzle-kit/src/serializer/gelSerializer.ts1041COMMENT
LOWdrizzle-kit/src/serializer/gelSerializer.ts1061 // FROM pg_classCOMMENT
LOWdrizzle-kit/src/serializer/gelSerializer.ts1161 // const constraintName: string = unqs.constraint_name;COMMENT
LOWdrizzle-kit/src/serializer/gelSerializer.ts1221 // const tableCompositePkName = await db.query(COMMENT
LOWdrizzle-kit/src/cli/commands/introspect.ts241 const schemaFile = join(out, 'schema.ts');COMMENT
LOWdrizzle-kit/src/cli/commands/introspect.ts261 // viewsResolver,COMMENT
LOWdrizzle-kit/src/cli/commands/pgPushUtils.ts1import chalk from 'chalk';COMMENT
LOWdrizzle-kit/src/cli/commands/pgPushUtils.ts21// if (COMMENT
LOWdrizzle-kit/src/cli/commands/singlestorePushUtils.ts61 // ) as JsonAlterColumnTypeStatement;COMMENT
LOWdrizzle-arktype/tests/singlestore.test.ts81// const view = mysqlView('test').as((qb) => qb.select({ id: table.id, age: sql``.as('age') }).from(table));COMMENT
LOWdrizzle-arktype/tests/singlestore.test.ts101// test('view with nested fields - select', (t) => {COMMENT
LOWdrizzle-arktype/tests/singlestore.test.ts281// c6: int(),COMMENT
LOWdrizzle-arktype/tests/singlestore.test.ts301// c5: (schema) => v.pipe(schema, v.maxValue(1000)),COMMENT
LOWdrizzle-arktype/tests/singlestore.test.ts481}COMMENT
LOWdrizzle-arktype/tests/singlestore.test.ts501// // @ts-expect-errorCOMMENT
LOWdrizzle-valibot/tests/singlestore.test.ts81 Expect<Equal<typeof result, typeof expected>>();COMMENT
LOWdrizzle-valibot/tests/singlestore.test.ts101// id: serial().primaryKey(),COMMENT
LOWdrizzle-valibot/tests/singlestore.test.ts121// age: sql``.as('age'),COMMENT
LOWdrizzle-valibot/tests/singlestore.test.ts281 Expect<Equal<typeof result, typeof expected>>();COMMENT
LOWdrizzle-valibot/tests/singlestore.test.ts301// c6: table.c6,COMMENT
LOWdrizzle-valibot/tests/singlestore.test.ts321// c2: v.nullable(v.pipe(intSchema, v.maxValue(1000))),COMMENT
LOWdrizzle-valibot/tests/singlestore.test.ts501// const view = mysqlView('test').as((qb) => qb.select().from(table));COMMENT
LOWintegration-tests/sst-env.d.ts1// eslint-disable-next-line @typescript-eslint/triple-slash-referenceCOMMENT
LOWintegration-tests/tests/awsdatapi.alltypes.test.ts1/* eslint-disable unicorn/no-empty-file */COMMENT
LOWintegration-tests/tests/awsdatapi.alltypes.test.ts21// jsonb,COMMENT
LOWintegration-tests/tests/awsdatapi.alltypes.test.ts41// numeric: numeric('numeric'),COMMENT
LOWintegration-tests/tests/awsdatapi.alltypes.test.ts61// realdef: real('realdef').default(100),COMMENT
LOWintegration-tests/tests/awsdatapi.alltypes.test.ts81// }COMMENT
LOWintegration-tests/tests/awsdatapi.alltypes.test.ts101// });COMMENT
LOWintegration-tests/tests/awsdatapi.alltypes.test.ts121// "varchardef" varchar DEFAULT 'text',COMMENT
LOWintegration-tests/tests/awsdatapi.alltypes.test.ts141// "timestampdef" timestamp DEFAULT now(),COMMENT
LOWintegration-tests/tests/awsdatapi.alltypes.test.ts161// bigserial: 63473487,COMMENT
507 more matches not shown…
Hyper-Verbose Identifiers27 hits · 32 pts
SeverityFileLineSnippetContext
LOWdrizzle-kit/tests/schemaDiffer.ts1940export async function diffTestSchemasPushLibSQL(CODE
LOWdrizzle-kit/src/serializer/sqliteSerializer.ts498function filterIgnoredTablesByField(fieldName: string) {CODE
LOW⚡drizzle-kit/src/serializer/gelSerializer.ts44function stringFromIdentityProperty(field: string | number | undefined): string | undefined {CODE
LOW⚡drizzle-kit/src/serializer/gelSerializer.ts48function maxRangeForIdentityBasedOn(columnType: string) {CODE
LOW⚡drizzle-kit/src/serializer/gelSerializer.ts52function minRangeForIdentityBasedOn(columnType: string) {CODE
LOW⚡drizzle-kit/src/serializer/gelSerializer.ts56function stringFromDatabaseIdentityProperty(field: any): string | undefined {CODE
LOW⚡drizzle-kit/src/serializer/pgSerializer.ts50function stringFromIdentityProperty(field: string | number | undefined): string | undefined {CODE
LOW⚡drizzle-kit/src/serializer/pgSerializer.ts54function maxRangeForIdentityBasedOn(columnType: string) {CODE
LOW⚡drizzle-kit/src/serializer/pgSerializer.ts58function minRangeForIdentityBasedOn(columnType: string) {CODE
LOW⚡drizzle-kit/src/serializer/pgSerializer.ts62function stringFromDatabaseIdentityProperty(field: any): string | undefined {CODE
LOWdrizzle-kit/src/cli/commands/migrate.ts589function singleStoreSchemaSuggestions(CODE
LOWdrizzle-kit/src/cli/commands/singlestorePushUtils.ts109export function findColumnTypeAlternations(CODE
LOWintegration-tests/tests/mysql-returning.test.ts133async function setupReturningFunctionsTest(db: MySql2Database) {CODE
LOWintegration-tests/tests/sqlite/sqlite-common.ts318 async function setupAggregateFunctionsTest(db: BaseSQLiteDatabase<any, any>) {CODE
LOWintegration-tests/tests/sqlite/durable-objects/index.ts168async function setupAggregateFunctionsTest(db: BaseSQLiteDatabase<any, any>) {CODE
LOWintegration-tests/tests/bun/bun-sql.test.ts562async function setupAggregateFunctionsTest(db: PgDatabase<PgQueryResultHKT>) {CODE
LOWintegration-tests/tests/pg/pg-common.ts581 async function setupAggregateFunctionsTest(db: PgDatabase<PgQueryResultHKT>) {CODE
LOWintegration-tests/tests/mysql/mysql-common.ts394 async function setupReturningFunctionsTest(db: MySqlDatabase<any, any>) {CODE
LOWintegration-tests/tests/mysql/mysql-common.ts446 async function setupAggregateFunctionsTest(db: TestMySQLDB) {CODE
LOWintegration-tests/tests/gel/gel.test.ts633 async function setupAggregateFunctionsTest(db: GelJsDatabase) {CODE
LOW…egration-tests/tests/singlestore/singlestore-common.ts381 async function setupReturningFunctionsTest(CODE
LOW…egration-tests/tests/singlestore/singlestore-common.ts435 async function setupAggregateFunctionsTest(db: TestSingleStoreDB) {CODE
LOWdrizzle-orm/src/alias.ts109export function mapColumnsInAliasedSQLToAlias(query: SQL.Aliased, alias: string): SQL.Aliased {CODE
LOWdrizzle-orm/src/pg-core/view.ts397export function pgMaterializedViewWithSchema(CODE
LOWdrizzle-orm/src/gel-core/view.ts397export function gelMaterializedViewWithSchema(CODE
LOWdrizzle-orm/src/singlestore-core/view.ts188// export function singlestoreViewWithSchema(COMMENT
LOWdrizzle-orm/src/singlestore-core/columns/all.ts27export function getSingleStoreColumnBuilders() {CODE
Fake / Example Data11 hits · 12 pts
SeverityFileLineSnippetContext
LOWdrizzle-arktype/README.md47 name: 'John Doe',CODE
LOWdrizzle-valibot/README.md47 name: 'John Doe',CODE
LOWdrizzle-zod/README.md58 name: 'John Doe',CODE
LOWchangelogs/drizzle-arktype/0.1.2.md47 name: 'John Doe',CODE
LOWdrizzle-seed/src/datasets/loremIpsumSentences.ts5 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',CODE
LOWdrizzle-seed/src/datasets/loremIpsumSentences.ts5 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',CODE
LOWdrizzle-seed/src/datasets/loremIpsumSentences.ts679 'Vivamus scelerisque dolor sit amet erat dapibus consectetur.',CODE
LOWdrizzle-seed/src/datasets/loremIpsumSentences.ts1346 'Integer sagittis dolor sit amet velit mollis, quis sodales odio sollicitudin.',CODE
LOWdrizzle-seed/src/services/GeneratorFuncs.ts651 * generates 'lorem ipsum' text sentences.COMMENT
LOWdrizzle-seed/src/services/Generators.ts2788 `You can't use lorem ipsum generator with a db column length restriction of ${this.stringLength}. Set the maximum stCODE
LOWdrizzle-typebox/README.md48 name: 'John Doe',CODE
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWdrizzle-kit/tests/push/singlestore.test.ts298 // TODO: implement if neededCOMMENT
LOWdrizzle-kit/tests/push/pg.test.ts1047 // TODO: implement if neededCOMMENT
LOWdrizzle-kit/tests/push/mysql.test.ts310 // TODO: implement if neededCOMMENT