Backup automation for self-hosters. Built on top of restic
This report summarizes scanner evidence for nicotsx/zerobyte, a TypeScript project with 7,093 GitHub stars. SynthScan examined 283,173 lines of code across 1175 source files, recording 71 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 0.3 (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? 51 finding(s).
Are imports declared and package/API names verified? 20 finding(s).
Are wrappers, guards, and repeated structures necessary? 49 finding(s).
Which changes need focused human review? 71 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 71 distinct pattern matches across 3 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 | app/test/helpers/auth.ts | 36 | export async function createTestSessionWithOrgAdmin() { | CODE |
| LOW | app/test/helpers/auth.ts | 44 | export async function createTestSessionWithGlobalAdmin() { | CODE |
| LOW | app/test/helpers/auth.ts | 76 | export async function createTestSessionWithRegularMember() { | CODE |
| LOW | app/server/lib/accept-language.ts | 3 | export function getLocaleFromAcceptLanguage(acceptLanguage?: string | null) { | CODE |
| LOW | app/server/lib/auth/helpers/create-default-org.ts | 7 | export async function findMembershipWithOrganization(userId: string, organizationId?: string) { | CODE |
| LOW | app/server/lib/auth/helpers/create-default-org.ts | 42 | export async function buildDefaultOrganizationData( | CODE |
| LOW | app/server/lib/auth/helpers/create-default-org.ts | 62 | async function createDefaultOrganizationMembership(user: User) { | CODE |
| LOW | app/server/lib/functions/current-permissions.ts | 16 | export function getCurrentPermissionsOptions( | CODE |
| LOW | app/server/modules/auth/__tests__/auth.api-keys.test.ts | 78 | async function createDesktopRuntimeSession() { | CODE |
| LOW | app/server/modules/sso/sso-configuration.ts | 51 | export function getSsoCallbackDiagnostics(request: Request, providerId: string) { | CODE |
| LOW | app/server/modules/sso/sso-configuration.ts | 97 | export function checkSsoProviderDiscovery( | CODE |
| LOW | app/server/modules/sso/sso.integration.ts | 150 | async function resolveOrgMembershipOrThrow(userId: string, ctx: GenericEndpointContext | null) { | CODE |
| LOW | …odules/sso/middlewares/validate-registration-issuer.ts | 5 | export async function validateSsoRegistrationIssuer(ctx: AuthMiddlewareContext) { | CODE |
| LOW | …/modules/sso/middlewares/trust-provider-for-linking.ts | 4 | export async function resolveTrustedProvidersForRequest(request?: Request): Promise<string[]> { | CODE |
| LOW | …s/sso/middlewares/__tests__/require-invitation.test.ts | 21 | function createMockSsoCallbackContext(providerId: string): GenericEndpointContext { | CODE |
| LOW | app/server/modules/sso/utils/sso-context.ts | 13 | function extractProviderIdFromPath(path: string): string | null { | CODE |
| LOW | app/server/modules/sso/utils/sso-context.ts | 35 | export function extractProviderIdFromContext(ctx?: GenericEndpointContext | null) { | CODE |
| LOW | …p/server/modules/sso/__tests__/sso.integration.test.ts | 10 | function createMockSsoCallbackContext(providerId: string, cookie?: string): GenericEndpointContext { | CODE |
| LOW | …p/server/modules/sso/__tests__/sso.integration.test.ts | 47 | async function createUserWithCredentialAccount(email: string, username: string) { | CODE |
| LOW | app/server/modules/backups/helpers/backup-lifecycle.ts | 116 | export async function startPostBackupMirrorSyncs( | CODE |
| LOW | app/lib/datetime.ts | 80 | function formatConfiguredDateWithMonth(date: Date, options: DateFormatOptions) { | CODE |
| LOW | app/lib/datetime.ts | 123 | function formatDateTimeWithSeconds(date: DateInput, options: DateFormatOptions = {}): string { | CODE |
| LOW | app/lib/sso-provider-identity.ts | 13 | export function isSameIssuerExceptTrailingSlash(currentIssuer: string, nextIssuer: string) { | CODE |
| LOW | app/lib/sso-provider-identity.ts | 20 | export function getLinkedSsoProviderEditError( | CODE |
| LOW | app/client/components/layout.tsx | 113 | export function DashboardRecoveryKeyReminder() { | CODE |
| LOW | app/client/components/ui/chart.tsx | 293 | function getPayloadConfigFromPayload(config: ChartConfig, payload: unknown, key: string) { | CODE |
| LOW | app/client/modules/settings/settings-scope.ts | 30 | export function getSettingsScopeAvailability(permissions: SettingsPermissionChecker): SettingsScopeAvailability { | CODE |
| LOW | app/client/modules/settings/settings-scope.ts | 51 | export function getVisibleSettingsScopeNavigationItems(availability: SettingsScopeAvailability) { | CODE |
| LOW | …s/settings/components/recovery-key-download-dialog.tsx | 14 | export function RecoveryKeyDownloadDialog({ hasPassword, passwordAuthSupported }: Props) { | CODE |
| LOW | …ttings/components/password-protected-action-dialog.tsx | 42 | export function PasswordProtectedActionDialog({ | CODE |
| LOW | …ient/modules/settings/components/instance-settings.tsx | 91 | function RegistrationSettingsSection() { | CODE |
| LOW | …ient/modules/settings/components/instance-settings.tsx | 126 | function PasswordLoginSettingsSection({ showDivider }: { showDivider: boolean }) { | CODE |
| LOW | …es/settings/components/pending-invitations-section.tsx | 25 | export function PendingInvitationsSection({ initialInvitations, userEmail }: Props) { | CODE |
| LOW | app/client/modules/settings/routes/settings.tsx | 38 | function OrganizationDetailsSection() { | CODE |
| LOW | app/client/modules/auth/routes/login.tsx | 47 | function isPasskeyVerificationFailure(error: PasskeySignInError | null) { | CODE |
| LOW | app/client/modules/auth/routes/login.tsx | 51 | function hasSkippedRecoveryKeyDownload(userId: string) { | CODE |
| LOW | …nt/modules/sso/components/edit-sso-provider-dialog.tsx | 29 | function getUsableDiscoveredIssuer(provider: SsoProviderDetails, discovery?: SsoDiscoveryResult) { | CODE |
| LOW | …ages/core/src/restic/helpers/validate-custom-params.ts | 86 | function collectCustomResticParams( | CODE |
| LOW | …ages/core/src/restic/helpers/validate-custom-params.ts | 154 | export function validateCustomResticParams(params: string[]): string | null { | CODE |
| LOW | …ages/core/src/restic/helpers/validate-custom-params.ts | 160 | export function getCopyCompatibleCustomResticParams(params: string[]): string[] { | CODE |
| LOW | e2e/0002-backup-restore.spec.ts | 155 | async function selectRepositoryDirectory(page: Page, directoryPath: string) { | CODE |
| LOW | e2e/0002-backup-restore.spec.ts | 248 | async function waitForRepositorySnapshots(page: Page, repositoryShortId: string, expectedCount: number) { | CODE |
| LOW | e2e/0002-backup-restore.spec.ts | 282 | async function importExistingLocalRepository( | CODE |
| LOW | e2e/0004-mirror-sync.spec.ts | 99 | async function waitForMirrorSyncComplete(page: Page, backupShortId: string, mirrorRepoShortId: string) { | CODE |
| LOW | e2e/0003-oidc.spec.ts | 183 | async function getInvitationStatusByEmail(page: Page, email: string) { | CODE |
| LOW | e2e/0003-oidc.spec.ts | 195 | async function verifyInvitationAsLocalUserWithSso( | CODE |
| LOW | e2e/0003-oidc.spec.ts | 392 | async function expectInviteOnlyLoginError(page: Page) { | CODE |
| LOW | e2e/0003-oidc.spec.ts | 398 | async function expectAccountLinkRequiredLoginError(page: Page) { | CODE |
| LOW | e2e/helpers/browser-errors.ts | 68 | async function captureFirstPageErrorSnapshot( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …s/sso/middlewares/__tests__/require-invitation.test.ts | 76 | await expect(requireSsoInvitation("user@example.com", null)).rejects.toThrow("Missing SSO context"); | CODE |
| LOW | …s/sso/middlewares/__tests__/require-invitation.test.ts | 83 | await expect(requireSsoInvitation("user@example.com", ctx)).rejects.toThrow("Missing providerId"); | CODE |
| LOW⚡ | …s/sso/middlewares/__tests__/require-invitation.test.ts | 110 | await expect(requireSsoInvitation("user@example.com", ctx)).rejects.toThrow("must be invited"); | CODE |
| LOW⚡ | …s/sso/middlewares/__tests__/require-invitation.test.ts | 119 | email: "user@example.com", | CODE |
| LOW⚡ | …s/sso/middlewares/__tests__/require-invitation.test.ts | 128 | await expect(requireSsoInvitation("user@example.com", ctx)).rejects.toThrow("must be invited"); | CODE |
| LOW⚡ | …s/sso/middlewares/__tests__/require-invitation.test.ts | 137 | email: "user@example.com", | CODE |
| LOW | …s/sso/middlewares/__tests__/require-invitation.test.ts | 151 | await expect(requireSsoInvitation("user@example.com", ctx)).rejects.toThrow("SSO provider not found"); | CODE |
| LOW | …p/server/modules/sso/__tests__/sso.integration.test.ts | 168 | name: "Acme Corp", | CODE |
| LOW | …p/server/modules/sso/__tests__/sso.integration.test.ts | 318 | name: "Acme Corp", | CODE |
| LOW | …fications/__tests__/notification-target-policy.test.ts | 12 | to: ["admin@example.com"], | CODE |
| LOW | …/notifications/__tests__/notifications.service.test.ts | 134 | to: ["admin@example.com"], | CODE |
| LOW | …ent/modules/settings/components/create-user-dialog.tsx | 107 | placeholder="John Doe" | CODE |
| LOW | …fications/components/notification-forms/email-form.tsx | 53 | <Input {...field} placeholder="user@example.com" /> | CODE |
| LOW | e2e/0007-sso-reverse-proxy.proxy.spec.ts | 38 | body: JSON.stringify({ email: "user@example.com", role: "member" }), | CODE |
| LOW | e2e/0007-sso-reverse-proxy.proxy.spec.ts | 80 | await ssoPage.locator('input[name="username"]').fill("user@example.com"); | CODE |
| LOW | e2e/0003-oidc.spec.ts | 23 | const uninvitedUserEmail = "admin@example.com"; | CODE |
| LOW | e2e/0003-oidc.spec.ts | 24 | const invitedUserEmail = "user@example.com"; | CODE |
| LOW | e2e/0001-auth.setup.ts | 47 | await page.getByRole("textbox", { name: "Email" }).fill("test@test.com"); | CODE |
| LOW | e2e/0001-auth.setup.ts | 93 | await page.getByRole("textbox", { name: "Email" }).fill("test@test.com"); | CODE |
| LOW | e2e/helpers/account.ts | 14 | await page.getByRole("textbox", { name: "Email" }).fill("test@test.com"); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | playwright.config.ts | 41 | args: ["--host-rules=MAP zerobyte.example.com 127.0.0.1, MAP tinyauth.example.com 127.0.0.1"], | COMMENT |
| LOW | playwright.config.ts | 61 | // name: 'Mobile Safari', | COMMENT |