AI Slop Code Risk Monitor

pubkey/rxdb

SlopCodeMonitor badge for pubkey/rxdb Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

The local-first database that runs on every JS runtime and replicates with your existing backend - no vendor, no lock-in - https://rxdb.info/

1.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for pubkey/rxdb, a TypeScript project with 23,421 GitHub stars. SynthScan examined 225,610 lines of code across 1223 source files, recording 232 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 1.2 (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.

1.2
Adjusted Signal
1.2
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
23.4K
Stars
TypeScript
Language
225.6K
Lines of Code
1.2K
Files
232
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 5.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 3.1/100 · LOW

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

PR Review Velocity Impact 5.5/100 · LOW

Which changes need focused human review? 232 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 3MEDIUM 5LOW 224

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 232 distinct pattern matches across 9 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.

Hyper-Verbose Identifiers143 hits · 144 pts
SeverityFileLineSnippetContext
LOWtest/react-ssr.test.ts231 function UseReplicationStatusComponent() {CODE
LOWtest/replication-firestore.test.ts111 function makeFirestoreHumanDocument(human: HumanDocumentType) {CODE
LOWtest/unit/rx-collection.test.ts396 async function ensurePrimaryKeyInsertThrows(id: string) {CODE
LOWtest/unit/replication-protocol.test.ts64function ensureReplicationHasNoErrors(replicationState: RxStorageInstanceReplicationState<any>) {CODE
LOWtest/unit/attachments.test.ts62 async function createEncryptedAttachmentsCollection(CODE
LOWtest/unit/attachments-compression.test.ts47 async function createCompressedAttachmentsCollection(CODE
LOWtest/unit/encryption.test.ts44 async function createEncryptedCollection(CODE
LOWtest/unit/query-planner.test.ts32 function getHumanSchemaWithIndexes(CODE
LOWtest/unit/migration-schema.test.ts2819 function wrapStorageWithLoopDetection(CODE
LOWtest/unit/rx-storage-sqlite.test.ts40function getConcurrencyTrackingBasics(CODE
LOWtest/unit/rx-storage-implementations.test.ts3712 async function getMultiInstanceRxStorageInstance(): Promise<{CODE
LOWtest/unit/rx-storage-implementations.test.ts3753 async function closeMultiInstanceRxStorageInstance(instances: MultiInstanceInstances) {CODE
LOWtest/unit/internal-indexes.test.ts19 async function createCollectionWithInternalIndexes(internalIndexes: string[][], docsAmount: number = 0) {CODE
LOWtest/helper/ajv-standalone.ts23export async function compileAjvStandaloneValidators(CODE
LOWtest/helper/graphql-server.ts39function sortByUpdatedAtAndPrimary(CODE
LOWexamples/angular/src/app/typings-test.ts18function checkDocumentDoubleDollar(doc: RxHeroDocument): Signal<RxHeroDocument> {CODE
LOWexamples/angular/src/app/typings-test.ts22function checkDocumentDeletedDoubleDollar(doc: RxHeroDocument): Signal<boolean> {CODE
LOWexamples/graphql/server/index.js38function sortByUpdatedAtAndPrimary(a, b) {CODE
LOWdocs-src/docs/adapters.md276export function awaitCapacitorDeviceReady(): Promise<void> {CODE
LOWdocs-src/docs/articles/javascript-vector-database.md222export async function getVectorFromTextWithWorker(text: string): Promise<number[]> {CODE
LOWdocs-src/docs/articles/javascript-vector-database.md408async function vectorSearchIndexSimilarity(searchEmbedding: number[]) {CODE
LOWdocs-src/src/components/trigger-event.tsx71function getOrMintClientId(): string {CODE
LOWdocs-src/src/theme/Root.tsx393function triggerClickEventWhenFromCode() {CODE
LOWdocs-src/src/theme/Root.tsx408function triggerClickEventWhenFromDiscord() {CODE
LOWdocs-src/src/theme/SearchBar/index.tsx70function importDocSearchModalIfNeeded() {CODE
LOWdocs-src/src/theme/SearchBar/index.tsx167function useResultsFooterComponent({CODE
LOW…cs-src/src/theme/Navbar/MobileSidebar/Layout/index.tsx44export default function NavbarMobileSidebarLayout({CODE
LOW…src/theme/Navbar/MobileSidebar/SecondaryMenu/index.tsx20export default function NavbarMobileSidebarSecondaryMenu(): ReactNode {CODE
LOW…cs-src/src/theme/Navbar/MobileSidebar/Header/index.tsx25export default function NavbarMobileSidebarHeader(): ReactNode {CODE
LOW…s-src/src/theme/ThemeProvider/TitleFormatter/index.tsx45export default function ThemeProviderTitleFormatter({CODE
LOWdocs-src/src/theme/DocSidebarItem/Category/index.tsx32function useAutoExpandActiveCategory({CODE
LOWdocs-src/src/theme/DocSidebarItem/Category/index.tsx57function useCategoryHrefWithSSRFallback(item) {CODE
LOWdocs-src/src/theme/DocSidebarItem/Category/index.tsx126function DocSidebarItemCategoryEmpty({item, ...props}: any) {CODE
LOWdocs-src/src/theme/DocSidebarItem/Category/index.tsx139function DocSidebarItemCategoryCollapsible({CODE
LOWdocs-src/src/pages/index.tsx39function startLandingpageAnimation() {CODE
LOWsrc/event-reduce.ts46export function defaultResultWindowBuffer(query: FilledMangoQuery<any>): { skip: number; limit: number; } {CODE
LOWsrc/plugin-helpers.ts55export function wrappedValidateStorageFactory(CODE
LOWsrc/rx-error.ts170export function rxStorageWriteErrorToRxError(err: RxStorageWriteError<any>): RxError {CODE
LOWsrc/rx-query.ts637function getLiveQueryUpdateThrottleTime(collection: RxCollection<any>): number {CODE
LOWsrc/rx-document.ts444export function createRxDocumentConstructor(proto = basePrototype) {CODE
LOWsrc/rx-document.ts540function getNestedDocumentProperty(doc: RxDocument, objPath: string, valueObj: any): any | null {CODE
LOWsrc/rx-document.ts550function createDocumentPropertyValue(doc: RxDocument, objPath: string, valueObj: any): any {CODE
LOWsrc/rx-query-helper.ts294function shouldNormalizeElemMatchSelector(elemMatch: any): boolean {CODE
LOWsrc/rx-query-helper.ts314function normalizeQuerySelectorShorthands(selector: any): void {CODE
LOWsrc/rx-database-internal-store.ts102export function getPrimaryKeyOfInternalDocument(CODE
LOWsrc/rx-database-internal-store.ts119export async function getAllCollectionDocuments(CODE
LOWsrc/rx-database-internal-store.ts247export function isDatabaseStateVersionCompatibleWithDatabaseCode(CODE
LOWsrc/rx-database-internal-store.ts276export async function addConnectedStorageToCollection(CODE
LOWsrc/rx-database-internal-store.ts337export async function removeConnectedStorageFromCollection(CODE
LOWsrc/rx-storage-multiinstance.ts59export function getBroadcastChannelReference(CODE
LOWsrc/rx-storage-multiinstance.ts82export function removeBroadcastChannelReference(CODE
LOWsrc/query-planner.ts244export function isSelectorSatisfiedByIndex(CODE
LOWsrc/custom-index.ts214export function getStringLengthOfIndexNumber(CODE
LOWsrc/custom-index.ts263export function getPrimaryKeyFromIndexableString(CODE
LOWsrc/custom-index.ts318export function getStartIndexStringFromLowerBound(CODE
LOWsrc/custom-index.ts393export function getStartIndexStringFromUpperBound(CODE
LOWsrc/custom-index.ts464export function changeIndexableStringByOneQuantum(str: string, direction: 1 | -1): string {CODE
LOWsrc/rx-storage-helper.ts81export function registerMutableWriteContext(context: string): void {CODE
LOWsrc/rx-storage-helper.ts526export function attachmentWriteDataToNormalData(writeData: RxAttachmentData | RxAttachmentWriteData): RxAttachmentData {CODE
LOWsrc/rx-storage-helper.ts861export function ensureRxStorageInstanceParamsAreCorrect(CODE
83 more matches not shown…
Over-Commented Block63 hits · 63 pts
SeverityFileLineSnippetContext
LOWtest/unit/rx-pipeline.test.ts101 */COMMENT
LOWtest/unit/rx-pipeline.test.ts121 // identifier: randomToken(10)COMMENT
LOWexamples/react-native/initializeDb.js81 const doc = await db[HeroesCollectionName].upsert({ name: 'Alice', color: 'green' });COMMENT
LOWexamples/flutter/pubspec.yaml1name: my_appCOMMENT
LOWexamples/flutter/pubspec.yaml61# The following section is specific to Flutter packages.COMMENT
LOWexamples/flutter/pubspec.yaml81 # list giving the asset and other descriptors for the font. ForCOMMENT
LOWexamples/flutter/analysis_options.yaml1# This file configures the analyzer, which statically analyzes Dart code toCOMMENT
LOWexamples/flutter/analysis_options.yaml21 # section below, it can also be suppressed for a single line of codeCOMMENT
LOW…es/flutter/linux/flutter/generated_plugin_registrant.h1//COMMENT
LOWexamples/flutter/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_COMMENT
LOWexamples/flutter/windows/runner/resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOW…/flutter/windows/flutter/generated_plugin_registrant.h1//COMMENT
LOWexamples/electron/main.js61 storage,COMMENT
LOW.github/workflows/release.yml161 # @link https://github.com/marketplace/actions/actions-for-discordCOMMENT
LOW.github/workflows/cloudflare-pages.yml21 # accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}COMMENT
LOW.github/workflows/main.yml901 BROWSER_PATH: ${{ steps.chrome.outputs.chrome-path }}COMMENT
LOW.github/workflows/main.yml921 # uses: actions/cache@v4COMMENT
LOW.github/workflows/main.yml941 # npm install --legacy-peer-depsCOMMENT
LOW.github/workflows/main.yml981 # uses: actions/setup-node@v4COMMENT
LOW.github/workflows/main.yml1001 # # We start the download while building RxDB to make the CI fasterCOMMENT
LOW.github/workflows/main.yml1021 # working-directory: config/appwriteCOMMENT
LOWdocs-src/docs/replication-graphql.md341 queryBuilder: pullQueryBuilder,COMMENT
LOWdocs-src/src/components/a-b-tests.tsx1import { randomOfArray } from '../../../plugins/utils';COMMENT
LOWdocs-src/src/components/a-b-tests.tsx81export function ABTestContent(COMMENT
LOWdocs-src/src/components/salaries.ts21/**COMMENT
LOWdocs-src/src/components/salaries.ts41 { 'name': 'Bahamas', 'code': 'BS', salary: 62024 },COMMENT
LOWdocs-src/src/components/salaries.ts61 { 'name': 'Cambodia', 'code': 'KH', salary: 18000 },COMMENT
LOWdocs-src/src/components/salaries.ts81 { 'name': 'Czech Republic', 'code': 'CZ', salary: 33760 },COMMENT
LOWdocs-src/src/components/salaries.ts101 // { 'name': 'Gabon', 'code': 'GA', salary: false },COMMENT
LOWdocs-src/src/components/salaries.ts141 // { 'name': 'Jordan', 'code': 'JO', salary: false },COMMENT
LOWdocs-src/src/components/salaries.ts161 // { 'name': 'Maldives', 'code': 'MV', salary: false },COMMENT
LOWdocs-src/src/components/salaries.ts181 { 'name': 'Netherlands', 'code': 'NL', salary: 62661 },COMMENT
LOWdocs-src/src/components/salaries.ts201 // { 'name': 'Pitcairn Islands', 'code': 'PN', salary: false },COMMENT
LOWdocs-src/src/components/salaries.ts221 // { 'name': 'Seychelles', 'code': 'SC', salary: false },COMMENT
LOWdocs-src/src/components/salaries.ts241 // { 'name': 'Tanzania, United Republic of', 'code': 'TZ', salary: false },COMMENT
LOWdocs-src/src/components/salaries.ts261 // { 'name': 'Vanuatu', 'code': 'VU', salary: false },COMMENT
LOWdocs-src/src/theme/Root.tsx601 // DISABLED because it kill the google metric "Page prevented back/forward cache restoration"COMMENT
LOWdocs-src/src/theme/Root.tsx621 // console.log(' window.location.hostname: ' + window.location.hostname);COMMENT
LOWdocs-src/src/theme/Root.tsx641COMMENT
LOWdocs-src/src/theme/Root.tsx661 // }, reloadWait);COMMENT
LOWdocs-src/src/theme/PaginatorNavLink/index.tsx21 }}>{isNext ? 'Next' : 'Previous'}</span><br />{isNext ? '' : '« '}{title}{isNext ? ' »' : ''}</Button>;COMMENT
LOWdocs-src/src/pages/sem/gawmdb1.tsx41 // <>No hand-written sync code</>,COMMENT
LOWdocs-src/src/pages/sem/gaidxdb1.tsx41 // <>JSON schemas and migrations</>,COMMENT
LOWdocs-src/src/pages/sem/indexeddb-database-2.tsx21 // <TrophyCOMMENT
LOWdocs-src/src/pages/sem/indexeddb-database-2.tsx41 // <th>IndexedDB</th>COMMENT
LOWdocs-src/src/pages/sem/indexeddb-database-2.tsx61 // <tr>COMMENT
LOWdocs-src/src/pages/sem/indexeddb-database-2.tsx81 // <tr>COMMENT
LOWdocs-src/src/pages/sem/indexeddb-database-2.tsx101 // </tbody>COMMENT
LOWsrc/plugins/flutter/dart/analysis_options.yaml1# This file configures the static analysis results for your project (errors,COMMENT
LOWsrc/plugins/flutter/dart/analysis_options.yaml21COMMENT
LOW…plugins/storage-mongodb/rx-storage-instance-mongodb.ts141 // const eventBulk: EventBulk<RxStorageChangeEvent<RxDocumentData<RxDocType>>, RxStorageDefaultCheckCOMMENT
LOWsrc/plugins/storage-dexie/dexie-query.ts201 // apply skip and limit boundaries.COMMENT
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts1// /**COMMENT
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts21// export const P2PT_DEFAULT_TRACKERS = [COMMENT
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts41// infoHash: sha1.sync(options.topic).toLowerCase(),COMMENT
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts61// // a tracker was unavailable or sent bad data to the client. you can probably ignore itCOMMENT
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts81// peer.on('data', (data: Buffer) => {COMMENT
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts101// client.update();COMMENT
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts121// disconnect$.complete();COMMENT
LOW…plugins/replication-webrtc/connection-handler-p2pcf.ts1// import { Subject } from 'rxjs';COMMENT
3 more matches not shown…
Structural Annotation Overuse10 hits · 17 pts
SeverityFileLineSnippetContext
LOWtest/unit/rx-collection.test.ts568 // Step 1: Insert all N documentsCOMMENT
LOWtest/unit/rx-collection.test.ts582 // Step 2: Delete all N documentsCOMMENT
LOWtest/unit/rx-collection.test.ts596 // Step 3: Re-insert the same N documents (reviving soft-deleted entries)COMMENT
LOWtest/unit/rx-collection.test.ts609 // Step 4: Verify all documents are present (this is where the bug manifests)COMMENT
LOW⚡test/unit/rx-document.test.ts1568 // Step 1: Create the observable reference (captures startWith value eagerly)COMMENT
LOW⚡test/unit/rx-document.test.ts1571 // Step 2: Update the document AFTER creating the observable but BEFORE subscribingCOMMENT
LOW⚡test/unit/rx-document.test.ts1574 // Step 3: Subscribe to the previously created observableCOMMENT
LOWdocs-src/docs/fulltext-search.md58### Step 1: Add the `RxDBFlexSearchPlugin` to RxDB.COMMENT
LOWdocs-src/docs/fulltext-search.md66### Step 2: Create a `RxFulltextSearch` instance on top of a collection with the `addFulltextSearch()` function.COMMENT
LOWdocs-src/docs/fulltext-search.md105### Step 3: Run a search operation:COMMENT
Verbosity Indicators7 hits · 13 pts
SeverityFileLineSnippetContext
LOWtest/unit/rx-collection.test.ts568 // Step 1: Insert all N documentsCOMMENT
LOWtest/unit/rx-collection.test.ts582 // Step 2: Delete all N documentsCOMMENT
LOWtest/unit/rx-collection.test.ts596 // Step 3: Re-insert the same N documents (reviving soft-deleted entries)COMMENT
LOWtest/unit/rx-collection.test.ts609 // Step 4: Verify all documents are present (this is where the bug manifests)COMMENT
LOW⚡test/unit/rx-document.test.ts1568 // Step 1: Create the observable reference (captures startWith value eagerly)COMMENT
LOW⚡test/unit/rx-document.test.ts1571 // Step 2: Update the document AFTER creating the observable but BEFORE subscribingCOMMENT
LOW⚡test/unit/rx-document.test.ts1574 // Step 3: Subscribe to the previously created observableCOMMENT
AI Response Leakage2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHtest/replication-couchdb.test.ts412 // But in production it is pretty random, I've added 3 edits just in caseCOMMENT
HIGHdocs-src/docs/rx-server.md313When you have fields that should only be modified by the server, but not by the client, you can ensure that by comparingCODE
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMexamples/flutter/pubspec.yaml64 # included with your application, so that you can use the icons inCOMMENT
MEDIUMsrc/plugins/flutter/dart/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUM…s/replication-webrtc/connection-handler-simple-peer.ts196 'This server is made for demonstration purposes and tryouts. It is not reliable and might be offline at CODE
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMexamples/flutter/pubspec.yaml61# The following section is specific to Flutter packages.COMMENT
MEDIUMscripts/start-foundationdb-docker.sh24# Create the cluster file directory on the hostCOMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…cles/alternatives/aws-amplify-datastore-alternative.md237 'x-api-key': 'your-api-key'CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWconfig/appwrite/restore.bash35# Verify if tables exist to confirm import successCOMMENT