A Minimalistic Wrapper for IndexedDB
This report summarizes scanner evidence for dexie/Dexie.js, a TypeScript project with 14,673 GitHub stars. SynthScan examined 121,851 lines of code across 752 source files, recording 98 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 1.0 (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? 93 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 59 finding(s).
Which changes need focused human review? 98 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 98 distinct pattern matches across 7 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 | test/is-idb-and-promise-compatible.js | 14 | export async function isIdbAndPromiseCompatible() { | CODE |
| LOW | test/tests-upgrading.js | 64 | function checkTransactionObjectStores(t, expected) { | CODE |
| LOW | test/tests-open.js | 579 | async function withSafariLikeBrowserWithoutGlobalIndexedDB(fn) { | CODE |
| LOW | test/tests-promise.js | 9 | function createDirectlyResolvedPromise() { | CODE |
| LOW | test/babel-polyfill/polyfill.min.js | 3 | }})},{32:32}],208:[function(t,n,r){var e=t(32),i=t(7),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function isExt | CODE |
| LOW | addons/y-dexie/src/getOrCreateDocument.ts | 7 | export function getOrCreateDocument( | CODE |
| LOW | addons/Dexie.Observable/src/Dexie.Observable.js | 334 | function onLatestRevisionIncremented(dbname, latestRevision) { | CODE |
| LOW | …ns/Dexie.Observable/src/override-create-transaction.js | 1 | export default function initOverrideCreateTransaction(db, wakeupObservers) { | CODE |
| LOW | …ns/Dexie.Observable/src/override-create-transaction.js | 2 | return function overrideCreateTransaction(origFunc) { | CODE |
| LOW | addons/Dexie.Syncable/src/finally-commit-all-changes.js | 4 | export default function initFinallyCommitAllChanges(db, node) { | CODE |
| LOW | addons/Dexie.Syncable/src/connect-protocol.js | 256 | function continueUsingReactPattern(continuation) { | CODE |
| LOW | addons/Dexie.Syncable/src/get-or-create-sync-node.js | 6 | return function getOrCreateSyncNode(options) { | CODE |
| LOW | …dons/Dexie.Syncable/src/save-to-uncommitted-changes.js | 1 | export default function initSaveToUncommittedChanges(db, node) { | CODE |
| LOW | …t-local-changes-for-node/get-local-changes-for-node.js | 7 | export default function initGetLocalChangesForNode( | CODE |
| LOW | …-for-node/get-base-revision-and-max-client-revision.js | 1 | export default function getBaseRevisionAndMaxClientRevision(node) { | CODE |
| LOW | …t-local-changes-for-node/get-changes-since-revision.js | 4 | export default function initGetChangesSinceRevision(db, node, hasMoreToGive) { | CODE |
| LOW | …local-changes-for-node/get-table-objects-as-changes.js | 4 | export default function initGetTableObjectsAsChanges( | CODE |
| LOW | …s/dexie-cloud/src/yjs/createYClientUpdateObservable.ts | 10 | export function createYClientUpdateObservable( | CODE |
| LOW | …xie-cloud/src/yjs/listYClientMessagesAndStateVector.ts | 26 | export async function listYClientMessagesAndStateVector( | CODE |
| LOW | …s/dexie-cloud/src/middlewares/blobResolveMiddleware.ts | 41 | export function createBlobResolveMiddleware( | CODE |
| LOW | …s/dexie-cloud/src/middlewares/blobResolveMiddleware.ts | 185 | function createBlobResolvingCursor( | CODE |
| LOW | …/src/middlewares/createImplicitPropSetterMiddleware.ts | 6 | export function createImplicitPropSetterMiddleware( | CODE |
| LOW | …-cloud/src/middlewares/createIdGenerationMiddleware.ts | 18 | export function createIdGenerationMiddleware( | CODE |
| LOW | …ud/src/middlewares/createMutationTrackingMiddleware.ts | 39 | export function createMutationTrackingMiddleware({ | CODE |
| LOW | …ons/dexie-cloud/src/sync/getLatestRevisionsPerTable.ts | 3 | export function getLatestRevisionsPerTable( | CODE |
| LOW | addons/dexie-cloud/src/sync/blobOffloading.ts | 436 | export function hasLargeBlobsInOperations( | CODE |
| LOW | addons/dexie-cloud/src/sync/connectWebSocket.ts | 44 | async function waitAndReconnectWhenUserDoesSomething(error: Error) { | CODE |
| LOW | addons/dexie-cloud/src/sync/numUnsyncedMutations.ts | 8 | export function getNumUnsyncedMutationsObservable(db: DexieCloudDB) { | CODE |
| LOW | addons/dexie-cloud/src/sync/ratelimit.ts | 20 | export function updateSyncRateLimitDelays(db: DexieCloudDB, res: Response) { | CODE |
| LOW | addons/dexie-cloud/src/sync/messagesFromServerQueue.ts | 26 | export function MessagesFromServerConsumer(db: DexieCloudDB) { | CODE |
| LOW | …exie-cloud/src/sync/modifyLocalObjectsWithNewUserId.ts | 8 | export async function modifyLocalObjectsWithNewUserId( | CODE |
| LOW | addons/dexie-cloud/src/sync/registerSyncEvent.ts | 39 | export async function registerPeriodicSyncEvent(db: DexieCloudDB) { | CODE |
| LOW | addons/dexie-cloud/src/sync/sync.ts | 430 | async function deleteObjectsFromRemovedRealms( | CODE |
| LOW | addons/dexie-cloud/src/sync/sync.ts | 496 | export function filterServerChangesThroughAddedClientChanges( | CODE |
| LOW | addons/dexie-cloud/src/helpers/visibilityState.ts | 4 | export function createVisibilityStateObservable() { | CODE |
| LOW | …dexie-cloud/src/helpers/throwVersionIncrementNeeded.ts | 3 | export function throwVersionIncrementNeeded() { | CODE |
| LOW | …s/dexie-cloud/src/helpers/getTableFromMutationTable.ts | 1 | export function getTableFromMutationTable(mutationTable: string) { | CODE |
| LOW | …/src/async-generators/getFetchResponseBodyGenerator.ts | 1 | export function getFetchResponseBodyGenerator(res: Response) { | CODE |
| LOW | samples/remote-sync/websocket/websocketserver-shim.js | 15 | function EmulatedWebSocketServerFactory() { | CODE |
| LOW | samples/remote-sync/ajax/jquery-2.1.0.js | 5562 | function computePixelPositionAndBoxSizingReliable() { | CODE |
| LOW | samples/remote-sync/ajax/jquery-2.1.0.js | 7505 | function addToPrefiltersOrTransports( structure ) { | CODE |
| LOW | samples/remote-sync/ajax/jquery-2.1.0.js | 7537 | function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { | CODE |
| LOW | …query/cache/adjust-optimistic-request-from-failures.ts | 8 | export function adjustOptimisticFromFailures( | CODE |
| LOW | src/classes/transaction/transaction-constructor.ts | 25 | export function createTransactionConstructor(db: Dexie) { | CODE |
| LOW | src/classes/collection/collection-constructor.ts | 24 | export function createCollectionConstructor(db: Dexie) { | CODE |
| LOW | src/classes/where-clause/where-clause-constructor.ts | 20 | export function createWhereClauseConstructor(db: Dexie) { | CODE |
| LOW | src/classes/version/schema-helpers.ts | 557 | export function adjustToExistingIndexNames( | CODE |
| LOW | src/functions/chaining-functions.js | 87 | export function reverseStoppableEventChain(f1, f2) { | CODE |
| LOW | src/functions/workaround-undefined-primkey.ts | 6 | export function workaroundForUndefinedPrimKey( | CODE |
| LOW | src/functions/quirks.ts | 7 | export function getNativeGetDatabaseNamesFn(indexedDB) { | CODE |
| LOW | src/functions/event-wrappers.ts | 32 | export function hookedEventSuccessHandler(resolve) { | CODE |
| LOW | src/helpers/promise.js | 575 | function addPossiblyUnhandledError(promise) { | CODE |
| LOW | src/helpers/promise.js | 804 | function nativeAwaitCompatibleWrap(fn, zone, possibleAwait, cleanup) { | CODE |
| LOW | src/dbcore/get-key-extractor.ts | 15 | export function getSinglePathKeyExtractor(keyPath: string) { | CODE |
| LOW | src/dbcore/virtual-index-middleware.ts | 43 | export function createVirtualIndexMiddleware(down: DBCore): DBCore { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/tests-2330.js | 1 | // Regression guard for issue #2330 (minified bundle corrupts updating-hook chain). | COMMENT |
| LOW | test/tests-upgrading.js | 21 | // V Remove indexes | COMMENT |
| LOW | test/tests-crud-hooks.js | 341 | COMMENT | |
| LOW | addons/Dexie.Syncable/src/syncable-connect.js | 81 | // Returning here will resume db.on('ready') and resume all queries that | COMMENT |
| LOW | addons/Dexie.Syncable/src/Dexie.Syncable.js | 121 | // connection so that it will continue syncing as long as the database is open. | COMMENT |
| LOW | …/src/middlewares/createImplicitPropSetterMiddleware.ts | 61 | const key = table.schema.primaryKey.extractKey?.(obj); | COMMENT |
| LOW | addons/dexie-cloud/src/sync/messagesFromServerQueue.ts | 161 | // Verify again in ACID tx that we're on same server revision. | COMMENT |
| LOW | addons/dexie-cloud/src/sync/sync.ts | 321 | // We should not clear out anything now. | COMMENT |
| LOW | addons/dexie-cloud/src/authentication/login.ts | 21 | ) { | COMMENT |
| LOW | …ons/dexie-cloud/src/authentication/interactWithUser.ts | 101 | let firstPrompt = true; | COMMENT |
| LOW | samples/open-existing-db/dump-databases.html | 41 | // there is no native API to list existing databases, but Dexie is still capable of dumping the version and sche | COMMENT |
| LOW | samples/vue/src/database.js | 1 | import Dexie from 'dexie'; | COMMENT |
| LOW | samples/vue/src/database.js | 21 | todos: '++id,done', | COMMENT |
| LOW | samples/dexie-cloud-todo-app/src/setupTests.ts | 1 | // jest-dom adds custom vitest matchers for asserting on DOM nodes. | COMMENT |
| LOW | …dexie-cloud-todo-app/src/helpers/simplify-debugging.ts | 1 | import Dexie from "dexie"; | COMMENT |
| LOW | samples/remote-sync/websocket/WebSocketSyncProtocol.js | 21 | // The following vars are needed because we must know which callback to ack when server sends it's ack to us | COMMENT |
| LOW | samples/remote-sync/websocket/WebSocketSyncProtocol.js | 81 | onError("Socket closed: " + event.reason, RECONNECT_DELAY); | COMMENT |
| LOW | samples/remote-sync/websocket/WebSocketSyncServer.js | 221 | // ---------------------------------------------- | COMMENT |
| LOW | samples/remote-sync/ajax/AjaxSyncProtocol.js | 1 | /// <reference path="../../dist/dexie.js" /> | COMMENT |
| LOW | samples/remote-sync/ajax/AjaxSyncProtocol.js | 41 | dataType: 'json', | COMMENT |
| LOW | samples/remote-sync/ajax/jquery-2.1.0.js | 3561 | get: function( owner, key ) { | COMMENT |
| LOW | .github/workflows/publish.yml | 1 | name: Publish | COMMENT |
| LOW | src/globals/global-events.ts | 1 | import Events from '../helpers/Events'; | COMMENT |
| LOW | src/live-query/observability-middleware.ts | 141 | // Merge the mutated parts from the request into the transaction's mutatedParts | COMMENT |
| LOW | src/live-query/observability-middleware.ts | 241 | ) { | COMMENT |
| LOW | src/live-query/observability-middleware.ts | 301 | pkRangeSet.addKeys(pKeys); | COMMENT |
| LOW | src/live-query/live-query.ts | 141 | currentValue = result; | COMMENT |
| LOW | src/live-query/cache/cache-middleware.ts | 261 | const { requery, signal } = PSD as LiveQueryContext; | COMMENT |
| LOW | src/classes/dexie/dexie-static-props.ts | 101 | } | COMMENT |
| LOW | src/classes/dexie/dexie-static-props.ts | 221 | COMMENT | |
| LOW | src/classes/dexie/dexie-static-props.ts | 241 | .reduce((p, c, i) => p + c / Math.pow(10, i * 2)), | COMMENT |
| LOW | src/classes/table/table.ts | 81 | // still as of 2018-10-10 has problems keeping a transaction | COMMENT |
| LOW | src/errors/errors.js | 101 | COMMENT | |
| LOW | src/helpers/rangeset.ts | 241 | // | COMMENT |
| LOW | src/helpers/promise.js | 21 | // | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …exie-cloud/src/authentication/otpFetchTokenCallback.ts | 52 | // ── Non-interactive paths ────────────────────────────────────────────── | COMMENT |
| MEDIUM | …exie-cloud/src/authentication/otpFetchTokenCallback.ts | 112 | // ── Interactive paths ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …exie-cloud/src/authentication/otpFetchTokenCallback.ts | 219 | // ── POST /token (step 1) ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | …exie-cloud/src/authentication/otpFetchTokenCallback.ts | 258 | // ── POST /token (step 2: OTP verification) ───────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | samples/remote-sync/ajax/jquery-2.1.0.js | 6968 | jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | samples/remote-sync/ajax/jquery-2.1.0.js | 9066 | // understands anonymous AMD modules. A named AMD is safest and most robust | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/publish.yml | 149 | # Check if this package should be published | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/tests-asyncawait.js | 531 | `async function doSomething() { | CODE |