Backrest is a web UI and orchestrator for restic backup.
This report summarizes scanner evidence for garethgeorge/backrest, a TypeScript project with 7,791 GitHub stars. SynthScan examined 98,959 lines of code across 402 source files, recording 98 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 1.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.
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? 65 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 34 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 8 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 |
|---|---|---|---|---|
| MEDIUM⚡ | install.sh | 508 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | install.sh | 510 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | install.sh | 569 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | install.sh | 571 | # ============================================================================= | COMMENT |
| MEDIUM | install.sh | 164 | # ============================================================================= | COMMENT |
| MEDIUM | install.sh | 166 | # ============================================================================= | COMMENT |
| MEDIUM | install.sh | 205 | # ============================================================================= | COMMENT |
| MEDIUM | install.sh | 207 | # ============================================================================= | COMMENT |
| MEDIUM | install.sh | 277 | # ============================================================================= | COMMENT |
| MEDIUM | install.sh | 279 | # ============================================================================= | COMMENT |
| MEDIUM | install.sh | 381 | # ============================================================================= | COMMENT |
| MEDIUM | install.sh | 383 | # ============================================================================= | COMMENT |
| MEDIUM | scripts/manage.sh | 5 | #================================================= | COMMENT |
| MEDIUM | scripts/manage.sh | 8 | #================================================= | COMMENT |
| MEDIUM | webui/scripts/translate-gemini.ts | 17 | // ─── Config ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/scripts/translate-gemini.ts | 50 | // ─── Types ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/scripts/translate-gemini.ts | 73 | // ─── Schemas ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/scripts/translate-gemini.ts | 112 | // ─── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/scripts/translate-gemini.ts | 235 | // ─── GeminiClient ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/scripts/translate-gemini.ts | 316 | // ─── TranslationProject ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/scripts/translate-gemini.ts | 481 | // ─── UserReviewer ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/scripts/translate-gemini.ts | 517 | // ─── Main ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/src/features/dashboard/HistoryStrip.tsx | 142 | // ─── Per-day hover tooltip ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/src/features/dashboard/SummaryDashboard.tsx | 47 | // ─── helpers ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/src/features/dashboard/SummaryDashboard.tsx | 192 | // ─── Progress bar (animated shimmer) ───────────────────────────────────────── | COMMENT |
| MEDIUM | webui/src/features/dashboard/SummaryDashboard.tsx | 210 | // ─── Hero banner ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/src/features/dashboard/SummaryDashboard.tsx | 303 | // ─── Live progress hook ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/src/features/dashboard/SummaryDashboard.tsx | 391 | // ─── Shared card building blocks ───────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/src/features/dashboard/SummaryDashboard.tsx | 450 | // ─── Plan card ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/src/features/dashboard/SummaryDashboard.tsx | 573 | // ─── Repo card (slimmed — no schedule/next-run) ─────────────────────────────── | COMMENT |
| MEDIUM | webui/src/features/dashboard/SummaryDashboard.tsx | 633 | // ─── Recent activity timeline ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/src/features/dashboard/SummaryDashboard.tsx | 778 | // ─── Root component ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | webui/src/features/dashboard/SummaryDashboard.tsx | 918 | // ─── Multihost ──────────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install.sh | 181 | elif [ -f /Library/LaunchAgents/com.backrest.plist ]; then | COMMENT |
| LOW | internal/cryptoutil/transport.go | 41 | // TransportSession is the result of a successful handshake: a pair of one-way | COMMENT |
| LOW | internal/api/downloadhandler_test.go | 61 | } | COMMENT |
| LOW | internal/api/syncapi/cmdstreamutil.go | 201 | // TransportProtocolVersion and tied to the wire format. | COMMENT |
| LOW | internal/orchestrator/repo/repo.go | 461 | // | COMMENT |
| LOW | gen/go/v1/operations.pb.go | 201 | // plan id e.g. a scheduled set of operations (or system) that created this operation. | COMMENT |
| LOW | gen/go/v1/service_grpc.pb.go | 361 | // RunCommand executes a generic restic command on the repository. | COMMENT |
| LOW | gen/go/v1/config.pb.go | 21 | // Verify that runtime/protoimpl is sufficiently up-to-date. | COMMENT |
| LOW | gen/go/v1/config.pb.go | 41 | // the client (read-only view of host config). | COMMENT |
| LOW | gen/go/v1/v1connect/service.connect.go | 21 | // problem by either regenerating this code with an older version of connect or updating the connect | COMMENT |
| LOW | gen/go/v1/v1connect/service.connect.go | 41 | BackrestSetConfigProcedure = "/v1.Backrest/SetConfig" | COMMENT |
| LOW | gen/go/v1/v1connect/service.connect.go | 61 | // BackrestBackupProcedure is the fully-qualified name of the Backrest's Backup RPC. | COMMENT |
| LOW | gen/go/v1/v1connect/authentication.connect.go | 21 | // version compiled into your binary. | COMMENT |
| LOW | gen/go/v1sync/syncservice.pb.go | 901 | return nil | COMMENT |
| LOW | gen/go/v1sync/syncservice.pb.go | 1201 | // "backrest-sync-handshake/v1\x00" | COMMENT |
| LOW | gen/go/v1sync/v1syncconnect/syncservice.connect.go | 21 | const _ = connect.IsAtLeastVersion1_13_0 | COMMENT |
| LOW | gen/go/v1sync/v1syncconnect/syncservice.connect.go | 41 | // BackrestSyncStateServiceGetPeerSyncStatesStreamProcedure is the fully-qualified name of the | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 101 | COMMENT | |
| LOW | gen/go/google/api/http.pb.go | 121 | // as each field is a non-repeated field with a primitive (non-message) type. | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 141 | // This enables an HTTP REST to gRPC mapping as below: | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 161 | // } | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 181 | // | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 201 | // protos JSON encoding: | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 221 | // message Message { | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 241 | // | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 261 | // `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 281 | // request body, all | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 301 | // | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 321 | // `{+var}`. | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 341 | // rules: | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 361 | // because client libraries are not capable of handling such variable expansion. | COMMENT |
| LOW | gen/go/google/api/http.pb.go | 381 | // used with any of the {get|put|post|delete|patch} methods. A custom method | COMMENT |
| LOW | gen/go/google/api/annotations.pb.go | 1 | // Copyright 2015 Google LLC | COMMENT |
| LOW | scripts/testing/run-named.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | webui/gen/ts/google/api/http_pb.ts | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | webui/gen/ts/google/api/annotations_pb.ts | 1 | // Copyright 2015 Google LLC | COMMENT |
| LOW | webui/e2e/specs/backup-progress.spec.ts | 101 | await expect(backupLeaf).toBeVisible({ timeout: 30_000 }); | COMMENT |
| LOW | webui/src/components/common/FormModal.test.tsx | 1 | import { screen } from "@testing-library/react"; | COMMENT |
| LOW | webui/src/components/common/SpinButton.test.tsx | 1 | import { screen, waitFor } from "@testing-library/react"; | COMMENT |
| LOW | webui/src/api/streams/tabStream.ts | 1 | // One upstream server-stream per stream name, held by whichever Backrest tab | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | install.sh | 579 | # Step 1: Detect previous installation | COMMENT |
| LOW⚡ | install.sh | 589 | # Step 2: Remove all existing artifacts | COMMENT |
| LOW⚡ | install.sh | 644 | # Step 4: Install | COMMENT |
| LOW⚡ | install.sh | 654 | # Step 5: Summary | COMMENT |
| LOW | install.sh | 606 | # Step 3: Determine acquisition mode | COMMENT |
| LOW | docs/src/docs/multihost.md | 24 | ## Step 1: Generate a Pairing Token (Server) | COMMENT |
| LOW | docs/src/docs/multihost.md | 40 | ## Step 2: Connect the Client | COMMENT |
| LOW⚡ | docs/src/cookbooks/ssh-remote.md | 19 | ### Step 1: Create a Local Directory for SSH Config | COMMENT |
| LOW⚡ | docs/src/cookbooks/ssh-remote.md | 27 | ### Step 2: Generate an SSH Key | COMMENT |
| LOW⚡ | docs/src/cookbooks/ssh-remote.md | 37 | ### Step 3: Copy the Public Key to Your Remote Server | COMMENT |
| LOW⚡ | docs/src/cookbooks/ssh-remote.md | 46 | ### Step 4: Create the SSH Config and Known Hosts Files | COMMENT |
| LOW | docs/src/cookbooks/ssh-remote.md | 71 | ### Step 5: Set Secure Permissions | COMMENT |
| LOW | docs/src/cookbooks/ssh-remote.md | 80 | ### Step 6: Mount the SSH Directory in Docker Compose | COMMENT |
| LOW | docs/src/cookbooks/ssh-remote.md | 107 | ### Step 7: Add the Repository in Backrest | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | install.sh | 579 | # Step 1: Detect previous installation | COMMENT |
| LOW⚡ | install.sh | 589 | # Step 2: Remove all existing artifacts | COMMENT |
| LOW⚡ | install.sh | 644 | # Step 4: Install | COMMENT |
| LOW⚡ | install.sh | 654 | # Step 5: Summary | COMMENT |
| LOW | install.sh | 606 | # Step 3: Determine acquisition mode | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | install.sh | 509 | # Install orchestration | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/testing/ramdisk-mount.sh | 16 | # Check if MacOS | COMMENT |
| LOW | scripts/testing/ramdisk-unmount.sh | 16 | # Check if MacOS | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/test.yml | 34 | # Create an empty gzip file for testing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | webui/e2e/specs/hooks.spec.ts | 29 | async function createPlanWithCommandHookViaUI( | CODE |