A rich text editor for everyday writing
This report summarizes scanner evidence for basecamp/trix, a JavaScript project with 20,015 GitHub stars. SynthScan examined 38,836 lines of code across 238 source files, recording 40 pattern matches distributed across 5 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.
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? 38 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 8 finding(s).
Which changes need focused human review? 40 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 40 distinct pattern matches across 5 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 | action_text-trix/app/assets/javascripts/trix.js | 2721 | } else if (cfg.TRUSTED_TYPES_POLICY === null) { | COMMENT |
| LOW | action_text-trix/app/assets/javascripts/trix.js | 3281 | // name at all, we can't reason about clobbering — return false | COMMENT |
| LOW | action_text-trix/app/assets/javascripts/trix.js | 3301 | // an internal slot, no serialization cost — and removes a residual | COMMENT |
| LOW | …n_text-trix/test/dummy/app/views/pwa/service-worker.js | 1 | // Add a service worker for processing Web Push notifications: | COMMENT |
| LOW | …n_text-trix/test/dummy/app/views/pwa/service-worker.js | 21 | // if (clients.openWindow) { | COMMENT |
| LOW | action_text-trix/test/dummy/config/storage.yml | 1 | test: | COMMENT |
| LOW | action_text-trix/test/dummy/config/storage.yml | 21 | # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %> | COMMENT |
| LOW | action_text-trix/test/dummy/config/application.rb | 21 | # Configuration for the application, engines, and railties goes here. | COMMENT |
| LOW | action_text-trix/test/dummy/config/puma.rb | 1 | # This configuration file will be evaluated by Puma. The top-level methods that | COMMENT |
| LOW | action_text-trix/test/dummy/config/puma.rb | 21 | # The default is set to 3 threads as it's deemed a decent compromise between | COMMENT |
| LOW | action_text-trix/test/dummy/config/database.yml | 21 | database: storage/test.sqlite3 | COMMENT |
| LOW | action_text-trix/test/dummy/config/locales/en.yml | 1 | # Files in the config/locales directory are used for internationalization and | COMMENT |
| LOW | action_text-trix/test/dummy/config/locales/en.yml | 21 | # | COMMENT |
| LOW | …text-trix/test/dummy/config/environments/production.rb | 61 | COMMENT | |
| LOW | …text-trix/test/dummy/config/environments/production.rb | 81 | # Enable DNS rebinding protection and other `Host` header attacks. | COMMENT |
| LOW | action_text-trix/test/dummy/config/environments/test.rb | 1 | # The test environment is used exclusively to run your application's | COMMENT |
| LOW | …t/dummy/config/initializers/content_security_policy.rb | 1 | # Be sure to restart your server when you modify this file. | COMMENT |
| LOW | …t/dummy/config/initializers/content_security_policy.rb | 21 | # config.content_security_policy_nonce_directives = %w(script-src style-src) | COMMENT |
| LOW | …ext-trix/test/dummy/config/initializers/inflections.rb | 1 | # Be sure to restart your server when you modify this file. | COMMENT |
| LOW | action_text-trix/test/dummy/db/schema.rb | 1 | # This file is auto-generated from the current state of the database. Instead | COMMENT |
| LOW | src/test/unit/location_mapper_test.js | 1 | import { TEST_IMAGE_URL, assert, test, testGroup } from "test/test_helper" | COMMENT |
| LOW | src/test/unit/location_mapper_test.js | 21 | // 1 b😭cd | COMMENT |
| LOW | src/test/unit/location_mapper_test.js | 161 | const offset = 2 | COMMENT |
| LOW | src/trix/core/helpers/strings.js | 81 | // the result back to the same value. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …t/dummy/config/initializers/content_security_policy.rb | 3 | # Define an application-wide content security policy. | COMMENT |
| MEDIUM | action_text-trix/test/dummy/db/schema.rb | 1 | # This file is auto-generated from the current state of the database. Instead | COMMENT |
| MEDIUM | action_text-trix/test/dummy/db/schema.rb | 5 | # This file is the source Rails uses to define your schema when running `bin/rails | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | action_text-trix/app/assets/javascripts/trix.js | 1167 | function shouldRenderInmmediatelyToDealWithIOSDictation(inputEvent) { | CODE |
| LOW | action_text-trix/app/assets/javascripts/trix.js | 5366 | function createAddInitializerMethod(e, t) { | CODE |
| LOW | action_text-trix/app/assets/javascripts/trix.js | 5548 | function createAddInitializerMethod(e, t) { | CODE |
| LOW | action_text-trix/app/assets/javascripts/trix.js | 5735 | function createAddInitializerMethod(e, t) { | CODE |
| LOW | action_text-trix/app/assets/javascripts/trix.js | 6114 | function AsyncFromSyncIteratorContinuation(r) { | CODE |
| LOW | action_text-trix/app/assets/javascripts/trix.js | 6393 | function GeneratorFunctionPrototype() {} | CODE |
| LOW | action_text-trix/app/assets/javascripts/trix.js | 6430 | function callInvokeWithMethodAndArg() { | CODE |
| LOW | src/trix/core/helpers/events.js | 47 | export function shouldRenderInmmediatelyToDealWithIOSDictation(inputEvent) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …text-trix/test/dummy/config/environments/production.rb | 56 | # Set this to true and configure the email server for immediate delivery to raise delivery errors. | COMMENT |
| LOW | …text-trix/test/dummy/config/environments/production.rb | 59 | # Set host to be used by links generated in mailer templates. | COMMENT |
| LOW | …ext-trix/test/dummy/config/environments/development.rb | 40 | # Set localhost to be used by links generated in mailer templates. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | action_text-trix/app/assets/javascripts/trix.js | 2130 | const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'au | CODE |
| LOW | action_text-trix/app/assets/javascripts/trix.js | 2498 | const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placehol | CODE |