:kangaroo: - PouchDB is a pocket-sized database.
This report summarizes scanner evidence for apache/pouchdb, a JavaScript project with 17,616 GitHub stars. SynthScan examined 120,164 lines of code across 396 source files, recording 106 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 5.9 (Moderate 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.
Can maintainers explain intent, assumptions, and trade-offs? 42 finding(s).
Are imports declared and package/API names verified? 64 finding(s).
Are wrappers, guards, and repeated structures necessary? 12 finding(s).
Which changes need focused human review? 106 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 106 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 |
|---|---|---|---|---|
| CRITICAL | tests/integration/test.get.js | 216 | doc._revisions.ids.length.should.equal(3, 'correct revisions length'); | CODE |
| CRITICAL | tests/integration/test.get.js | 240 | doc._revisions.ids.length.should.equal(4, 'correct revisions length'); | CODE |
| CRITICAL | tests/integration/test.get.js | 616 | doc._revisions.ids.length.should.equal(2, 'got two revs'); | CODE |
| CRITICAL | tests/integration/test.replication.js | 1237 | res.rows.should.have.length.above(0, 'first'); | CODE |
| CRITICAL | tests/integration/test.replication.js | 1242 | res.rows.should.have.length.above(0, 'second'); | CODE |
| CRITICAL⚡ | tests/integration/test.attachments.js | 3308 | doc._attachments.one.revpos.should.equal(1); | CODE |
| CRITICAL⚡ | tests/integration/test.attachments.js | 3312 | doc._attachments.two.revpos.should.equal(2); | CODE |
| CRITICAL⚡ | tests/integration/test.attachments.js | 3313 | doc._attachments.one.revpos.should.equal(1); | CODE |
| CRITICAL⚡ | tests/integration/test.attachments.js | 3316 | doc._attachments.one.revpos.should.equal(3); | CODE |
| CRITICAL⚡ | tests/integration/test.attachments.js | 3317 | doc._attachments.two.revpos.should.equal(2); | CODE |
| CRITICAL⚡ | tests/integration/test.attachments.js | 3341 | doc._attachments.one.revpos.should.equal(1); | CODE |
| CRITICAL⚡ | tests/integration/test.attachments.js | 3349 | doc._attachments.two.revpos.should.equal(2); | CODE |
| CRITICAL⚡ | tests/integration/test.attachments.js | 3350 | doc._attachments.one.revpos.should.equal(1); | CODE |
| CRITICAL⚡ | tests/integration/test.attachments.js | 3355 | doc._attachments.one.revpos.should.equal(3); | CODE |
| CRITICAL⚡ | tests/integration/test.attachments.js | 3356 | doc._attachments.two.revpos.should.equal(2); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 267 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 302 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 339 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 381 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 450 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 527 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 623 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 668 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 746 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 839 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 936 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 996 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 1109 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 1170 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 1289 | att.data.should.not.be.a('string'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 2575 | doc._attachments.mytext.data.should.equal('TXl0ZXh0'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 2738 | res._attachments.should.not.include.keys('mytext1'); | CODE |
| CRITICAL | tests/integration/test.attachments.js | 3372 | doc._attachments.one.revpos.should.equal(1); | CODE |
| CRITICAL | tests/integration/test.revs_diff.js | 37 | results.somestuff.missing.should.have.length(1); | CODE |
| CRITICAL | tests/integration/test.revs_diff.js | 64 | results.somestuff.missing.should.have.length(1); | CODE |
| CRITICAL | tests/integration/test.revs_diff.js | 77 | results.foo.missing.should.deep.equal(revs, 'listed all revs'); | CODE |
| CRITICAL | tests/integration/test.revs_diff.js | 154 | results.constructor.missing.should.have.length(1); | CODE |
| CRITICAL | tests/integration/test.viewadapter.js | 90 | viewRequest.result.objectStoreNames.length.should.equal(0); | CODE |
| CRITICAL | tests/integration/test.viewadapter.js | 100 | docRequest.result.objectStoreNames.length.should.equal(7); | CODE |
| CRITICAL | tests/integration/test.viewadapter.js | 139 | viewRequest.result.objectStoreNames.length.should.equal(7); | CODE |
| CRITICAL | tests/integration/test.viewadapter.js | 148 | docRequest.result.objectStoreNames.length.should.equal(7); | CODE |
| CRITICAL | tests/integration/test.sync.js | 41 | result.pull.errors.should.have.length(0); | CODE |
| CRITICAL | tests/integration/test.sync.js | 201 | result.pull.errors.should.have.length(0); | CODE |
| CRITICAL | tests/integration/test.sync.js | 221 | result.pull.errors.should.have.length(0); | CODE |
| CRITICAL | tests/integration/test.sync.js | 241 | result.pull.errors.should.have.length(0); | CODE |
| CRITICAL | tests/integration/test.sync.js | 265 | result.pull.errors.should.have.length(0); | CODE |
| CRITICAL | tests/integration/test.sync.js | 285 | result.pull.errors.should.have.length(0); | CODE |
| CRITICAL | tests/integration/test.sync.js | 578 | result.pull.errors.should.have.length(0); | CODE |
| CRITICAL | tests/integration/test.changes.js | 187 | results.results.length.should.be.at.least(2); | CODE |
| CRITICAL | tests/integration/test.changes.js | 1411 | ch.doc._conflicts.length.should.equal(1); | CODE |
| CRITICAL | tests/integration/test.all_docs.js | 288 | result.doc._conflicts.should.be.instanceof(Array); | CODE |
| CRITICAL | tests/integration/test.all_docs.js | 289 | result.doc._conflicts.should.have.length(2); | CODE |
| CRITICAL | tests/integration/test.all_docs.js | 303 | row.doc._conflicts.should.be.instanceof(Array); | CODE |
| CRITICAL | tests/integration/test.all_docs.js | 304 | row.doc._conflicts.should.have.length(2); | CODE |
| CRITICAL | tests/integration/test.bulk_docs.js | 1035 | doc._revisions.ids.length.should.equal(expected); | CODE |
| CRITICAL | tests/integration/test.bulk_docs.js | 1072 | doc._revisions.ids.length.should.equal(LIMIT); | CODE |
| CRITICAL | tests/integration/test.basics.js | 1116 | fullDocs[0].ok._revisions.ids.should.have.length(num); | CODE |
| CRITICAL | tests/find/test-suite-1/test.array.js | 43 | explainResp.index.name.should.deep.equal('_all_docs'); | CODE |
| CRITICAL | tests/find/test-suite-1/test.array.js | 59 | explainResp.index.name.should.deep.equal('name-index'); | CODE |
| CRITICAL | tests/mapreduce/test.persisted.js | 312 | res.rows.length.should.be.within(0, 2); | CODE |
| 4 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bin/test-webpack.sh | 1 | #!/usr/bin/env -S bash -e | COMMENT |
| LOW | tests/integration/leveldown.migration.js | 101 | it('should work', function () { | COMMENT |
| LOW | tests/integration/leveldown.migration.js | 121 | //var docsB = [{ | COMMENT |
| LOW | tests/integration/test.issue2674.js | 41 | // 5. On client B I synchronized its local db with remote db (in the same way | COMMENT |
| LOW | tests/integration/test.compaction.js | 521 | // We're testing some functionality specific to the implementation | COMMENT |
| LOW | tests/integration/deps/pouchdb-3.2.0-postfixed.js | 1 | // PouchDBVersion320 3.2.0 | COMMENT |
| LOW | tests/integration/deps/pouchdb-7.3.1-postfixed.js | 1 | // PouchDBVersion731 7.3.1 | COMMENT |
| LOW | tests/integration/deps/pouchdb-2.0.0-postfixed.js | 4921 | },{"./adapters/http":2,"./adapters/idb":3,"./adapters/leveldb":20,"./adapters/websql":4,"./deps/ajax":6,"./deps/errors": | COMMENT |
| LOW | tests/integration/deps/pouchdb-2.0.0-postfixed.js | 6241 | // | COMMENT |
| LOW | tests/integration/deps/pouchdb-2.2.0-postfixed.js | 4741 | // for a better overview of what this is doing, read: | COMMENT |
| LOW | tests/integration/deps/pouchdb-2.2.0-postfixed.js | 6521 | } else { | COMMENT |
| LOW | tests/integration/deps/pouchdb-8.0.1-postfixed.js | 1 | // PouchDBVersion801 8.0.1 | COMMENT |
| LOW | tests/integration/deps/pouchdb-3.0.6-postfixed.js | 5701 | },{"./adapters/http":2,"./adapters/idb":3,"./adapters/leveldb":26,"./adapters/websql":5,"./deps/ajax":8,"./deps/errors": | COMMENT |
| LOW | tests/integration/deps/pouchdb-3.0.6-postfixed.js | 7601 | return fun.call(this, args); | COMMENT |
| LOW | tests/fuzzy/test.fuzzy.js | 1 | 'use strict'; | COMMENT |
| LOW | tests/find/test-suite-1/test.skip.js | 261 | COMMENT | |
| LOW | tests/find/test-suite-1/test.skip.js | 281 | // // should have one document less because skip: 1 | COMMENT |
| LOW | docs/static/js/pouchdb.min.js | 1 | // PouchDB 9.0.0 | COMMENT |
| LOW | docs/src/less/bootstrap/forms.less | 101 | // input[type="datetime"] | COMMENT |
| LOW | docs/src/less/bootstrap/forms.less | 321 | COMMENT | |
| LOW | docs/src/less/bootstrap/responsive-utilities.less | 1 | // | COMMENT |
| LOW | docs/src/less/bootstrap/normalize.less | 321 | COMMENT | |
| LOW | docs/src/less/bootstrap/mixins.less | 1 | // | COMMENT |
| LOW | docs/src/less/bootstrap/mixins.less | 881 | .form-control-feedback { | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bin/build-pouchdb.js | 126 | function buildPluginsForBrowserify() { | CODE |
| LOW | tests/misc/sync-gateway-config-server.js | 7 | function createSyncGatewayConfigServer() { | CODE |
| LOW | tests/integration/test.replication.js | 575 | function ensureCheckpointIsMissing(db, replicationId) { | CODE |
| LOW | tests/integration/browser.migration.js | 18 | function usingDefaultPreferredAdapters() { | CODE |
| LOW | tests/integration/worker.js | 23 | function postAttachmentThenAllDocs(name) { | CODE |
| LOW | tests/integration/test.viewadapter.js | 42 | function getDbNamesFromLevelDBFolder(name) { | CODE |
| LOW | tests/integration/deps/pouchdb-2.0.0-postfixed.js | 2635 | function countUndeletedNonlocalDocs(e) { | CODE |
| LOW | tests/find/test-issues/test.issue7810.js | 44 | function assertWithAndWithoutLengthOf(results, docLen) { | CODE |
| LOW⚡ | tests/memleak/test.memleak.js | 73 | function SomewhatDummyPouchAdapter(opts,callback) { | CODE |
| LOW⚡ | tests/memleak/test.memleak.js | 76 | api._close = function SomewhatDummyPouchAdapterClose(callback) { | CODE |
| LOW⚡ | tests/memleak/test.memleak.js | 83 | api._info = function SomewhatDummyPouchAdapterInfo(callback) { | CODE |
| LOW | tests/memleak/test.memleak.js | 98 | SomewhatDummyPouchAdapter.valid = function SomwehatDummyPouchAdapterValid() { return true; }; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bin/release.sh | 18 | # Create a temporary build directory | COMMENT |
| MEDIUM | docs/src/less/bootstrap/variables.less | 257 | //## Define the breakpoints at which your layout will change, adapting to different screen sizes. | COMMENT |
| MEDIUM | docs/src/less/bootstrap/variables.less | 306 | //## Define the maximum width of `.container` for different screen sizes. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | CONTRIBUTING.md | 177 | Thus, it is expressly forbidden to contribute material generated by AI, LLMs, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/_includes/api/replication.html | 82 | As with [changes()](#changes), you can also omit `live`, in which case you can use `replicate()` in the callback/promise | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/integration/test.attachments.js | 3255 | function getData(cb) { | CODE |