All-in-one New-API/Sub2API account hub: balance/usage dashboard, auto check-in, one-click keys, price comparison, health checks, plus advanced channel management | 一站式 New-API/Sub2API 等中转站账号管理:余额/用量看板、自动签到、密钥一键使用、价格对比、可用性测试,另提供高级渠道管理
This report presents the forensic synthetic code analysis of qixing-jk/all-api-hub, a TypeScript project with 4,437 GitHub stars. SynthScan v2.0 examined 809,811 lines of code across 3049 source files, recording 1976 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 2.5 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1976 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | wxt.config.ts | 110 | function getManifestRequiredPermissions(browser: BrowserTarget) { | CODE |
| LOW | wxt.config.ts | 121 | function getManifestOptionalPermissions(browser: BrowserTarget) { | CODE |
| LOW | wxt.config.ts | 134 | function getChromiumOptionalPermissions() { | CODE |
| LOW | wxt.config.ts | 165 | function shortenPathForManifestDescription(value: string, maxLen: number) { | CODE |
| LOW | wxt.config.ts | 181 | function buildDevManifestDescription(projectPath: string) { | CODE |
| LOW | tests/test-utils/mockPreferencePersistence.ts | 21 | export function createPersistedPreferencesFixture( | CODE |
| LOW | tests/test-utils/mockPreferencePersistence.ts | 29 | export function setupMockPreferencePersistence( | CODE |
| LOW | tests/test-utils/kiloCodeExportGuidance.ts | 23 | export function expectKiloCodeUsageGuidance(target: KiloCodeExportTarget) { | CODE |
| LOW | tests/test-utils/factories.ts | 44 | export function buildApiCheckClipboardText(params?: { | CODE |
| LOW | tests/test-utils/factories.ts | 57 | export function buildShareSnapshotPayload( | CODE |
| LOW | tests/test-utils/factories.ts | 263 | export function buildApiCredentialProfile( | CODE |
| LOW | tests/contexts/ThemeContext.test.tsx | 29 | function createMatchMediaController(initialMatches = false) { | CODE |
| LOW | …ssingKeysDialog/RepairMissingKeysResultsPanel.test.tsx | 115 | function renderPanelWithSearchState({ | CODE |
| LOW | …atures/ImportExport/components/WebDAVSettings.test.tsx | 260 | function clearWebdavSyncDataSelection() { | CODE |
| LOW | …delList/components/AllAccountsGroupFilterMenu.test.tsx | 57 | async function openAccountGroupFilterMenu( | CODE |
| LOW | …roductAnnouncements/ProductAnnouncementBanner.test.tsx | 77 | function ProductAnnouncementBannerFromHook() { | CODE |
| LOW | …ntManagement/AccountManagement.bookmarkImport.test.tsx | 126 | default: function MockBookmarkAccountImportDialog({ | CODE |
| LOW | …sts/features/AccountManagement/sponsors/loader.test.ts | 201 | function expectBundledSponsorFallback( | CODE |
| LOW | …es/AccountManagement/components/CopyKeyDialog.test.tsx | 355 | async function renderExpandedServiceCredentialDialog() { | CODE |
| LOW | …ountManagement/components/NewcomerSupportCard.test.tsx | 59 | function setSponsorRecommendations(items: SponsorRecommendation[]) { | CODE |
| LOW | …ountManagement/components/NewcomerSupportCard.test.tsx | 115 | function renderNewcomerSupportCard() { | CODE |
| LOW | …gement/components/BookmarkAccountImportDialog.test.tsx | 120 | async function allowBookmarksAndScanSelected( | CODE |
| LOW | …gement/components/BookmarkAccountImportDialog.test.tsx | 183 | function bookmarkTreeWithNestedFolders() { | CODE |
| LOW | …gement/components/BookmarkAccountImportDialog.test.tsx | 216 | function bookmarkTreeWithFolderOnlySearchMatch() { | CODE |
| LOW | …ures/AccountManagement/components/AccountList.test.tsx | 370 | function createAccountDataContextValue( | CODE |
| LOW | …es/AccountManagement/hooks/AccountDataContext.test.tsx | 30 | function createMockIndexedAccountSearchEntries( | CODE |
| LOW | …es/AccountManagement/hooks/AccountDataContext.test.tsx | 393 | async function renderAccountDataProvider() { | CODE |
| LOW | …ooks/useAccountDialog.duplicateAccountWarning.test.tsx | 62 | async function renderDuplicateWarningHook( | CODE |
| LOW | tests/utils/tempWindowFetch.fallback.test.ts | 92 | function buildTempWindowPreferences( | CODE |
| LOW | tests/utils/i18nLocaleValidation.test.ts | 194 | function readUseTranslationNamespaces(call: ts.CallExpression) { | CODE |
| LOW | tests/utils/i18nLocaleValidation.test.ts | 237 | function jsxElementUsesPluralCount( | CODE |
| LOW | tests/utils/i18nLocaleValidation.test.ts | 270 | function mayContainStaticTranslationReference(sourceText: string) { | CODE |
| LOW | tests/utils/accountProviderDestinationsScenario.test.ts | 242 | function createProviderDestinationsPage(options: { | CODE |
| LOW | tests/components/RootErrorBoundary.test.tsx | 60 | function BrokenTranslatedDomNameChild(): ReactNode { | CODE |
| LOW | tests/components/RootErrorBoundary.test.tsx | 64 | function BrokenTranslatedDomMessageChild(): ReactNode { | CODE |
| LOW | tests/components/FloatingLayerPrimitives.test.tsx | 119 | function ModalComboboxEscapeHarness({ onClose }: { onClose: () => void }) { | CODE |
| LOW | …/dialogs/ChannelDialog/ChannelDialogContainer.test.tsx | 53 | function OpenDefaultTokenQuickCreateDialog({ | CODE |
| LOW | tests/hooks/useHorizontalScrollControls.test.tsx | 22 | function HorizontalScrollControlsHarness({ | CODE |
| LOW | …ypoints/background/tempWindowPoolNativeCheckin.test.ts | 25 | async function settleTempContextReadiness() { | CODE |
| LOW | …s/entrypoints/options/BasicSettings.lazyMount.test.tsx | 185 | function stubDesktopTabMeasurements() { | CODE |
| LOW | …s/entrypoints/options/BasicSettings.lazyMount.test.tsx | 198 | function configureDesktopTabOverflow( | CODE |
| LOW | tests/entrypoints/options/search/recentItems.test.ts | 14 | async function importRecentItemsWithStorageMock(storageOverrides: { | CODE |
| LOW | …s/KeyManagement/TokenHeader.saveToApiProfiles.test.tsx | 125 | function createManagedSiteAssessment( | CODE |
| LOW | …tialProfiles/VerifyApiCredentialProfileDialog.test.tsx | 70 | async function selectOpenAICompatibleApiTypeOption( | CODE |
| LOW | …options/pages/OptionsOverview/OptionsOverview.test.tsx | 1068 | function hasWorkflowTransitionIcon(element: HTMLElement) { | CODE |
| LOW | tests/entrypoints/popup/viewRegistry.test.tsx | 56 | default: forwardRef(function ApiCredentialProfilesPopupView(_props, ref) { | CODE |
| LOW | …s/entrypoints/content/shared/ContentReactRoot.test.tsx | 43 | function createMatchMediaController(initialMatches = false) { | CODE |
| LOW | tests/services/webdavAutoSyncService.lifecycle.test.ts | 31 | async function resolveWebdavAutoSyncTestMessage(request: any) { | CODE |
| LOW | tests/services/newApiService/newApiService.test.ts | 127 | function createMockDisplaySiteData( | CODE |
| LOW | tests/services/newApiService/newApiService.test.ts | 174 | function createMockUserPreferencesWithNewApi(overrides?: any) { | CODE |
| LOW | tests/services/newApiService/newApiService.test.ts | 264 | function createMockNewApiChannelListData(channels?: any[]) { | CODE |
| LOW | …s/services/aiApiVerification/probes.additional.test.ts | 40 | function createAbortedSignalFixture() { | CODE |
| LOW | tests/services/apiTransport/request.test.ts | 121 | function mockTempWindowFallbackDisabledPreference() { | CODE |
| LOW | tests/services/apiTransport/request.test.ts | 134 | async function expectTempWindowDisabledFallback( | CODE |
| LOW | tests/services/productAnnouncements/messaging.test.ts | 31 | function resetProductAnnouncementServiceState() { | CODE |
| LOW | tests/services/veloeraService/veloeraService.test.ts | 67 | function createMockUserPreferencesWithVeloera( | CODE |
| LOW | tests/services/veloeraService/veloeraService.test.ts | 80 | function createMockDisplaySiteData( | CODE |
| LOW | tests/services/veloeraService/veloeraService.test.ts | 121 | function createMockManagedSiteChannel(overrides: Record<string, unknown> = {}) { | CODE |
| LOW⚡ | …owers/plans/2026-06-21-account-site-product-profile.md | 1001 | export function normalizeAccountSiteUrlForStorage(params: { | CODE |
| LOW⚡ | …owers/plans/2026-06-21-account-site-product-profile.md | 1008 | export function normalizeAccountSiteUrlForManagedChannel(params: { | CODE |
| 1697 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/contexts/UserPreferencesContext.test.tsx | 581 | await context.updateAxonHubEmail("admin@example.com") | CODE |
| LOW | tests/contexts/UserPreferencesContext.test.tsx | 677 | axonHub: { email: "admin@example.com" }, | CODE |
| LOW | tests/contexts/UserPreferencesContext.test.tsx | 1130 | email: "admin@example.com", | CODE |
| LOW | …res/ManagedSiteModelSync/ManagedSiteModelSync.test.tsx | 485 | email: "admin@example.com", | CODE |
| LOW | …ccountManagement/components/AccountDialogForm.test.tsx | 215 | "placeholder", | CODE |
| LOW | …ccountManagement/components/AccountDialogForm.test.tsx | 230 | "placeholder", | CODE |
| LOW | tests/components/ApiCheckModalHost.test.tsx | 3898 | input.getAttribute("placeholder") !== | CODE |
| LOW | tests/entrypoints/options/AxonHubSettings.test.tsx | 199 | axonHubEmail: "admin@example.com", | CODE |
| LOW | tests/entrypoints/options/AxonHubSettings.test.tsx | 359 | axonHubEmail: "admin@example.com", | CODE |
| LOW | tests/entrypoints/options/ManagedSiteTab.test.tsx | 127 | axonHubEmail: "admin@example.com", | CODE |
| LOW | …pages/ManagedSiteChannels/ManagedSiteChannels.test.tsx | 377 | email: "admin@example.com", | CODE |
| LOW | …pages/ManagedSiteChannels/ManagedSiteChannels.test.tsx | 2234 | email: "admin@example.com", | CODE |
| LOW | …pages/ManagedSiteChannels/ManagedSiteChannels.test.tsx | 2287 | email: "admin@example.com", | CODE |
| LOW | …pages/ManagedSiteChannels/ManagedSiteChannels.test.tsx | 2308 | email: "admin@example.com", | CODE |
| LOW | …sts/services/userPreferences.managedSiteConfig.test.ts | 106 | email: "admin@example.com", | CODE |
| LOW | …sts/services/userPreferences.managedSiteConfig.test.ts | 116 | email: "admin@example.com", | CODE |
| LOW | …sts/services/userPreferences.managedSiteConfig.test.ts | 238 | email: "admin@example.com", | CODE |
| LOW | …services/managedSiteService/managedSiteService.test.ts | 252 | email: "admin@example.com", | CODE |
| LOW | …services/managedSiteService/managedSiteService.test.ts | 355 | email: "admin@example.com", | CODE |
| LOW | …services/managedSiteService/managedSiteService.test.ts | 559 | email: "admin@example.com", | CODE |
| LOW | …services/managedSiteService/managedSiteService.test.ts | 567 | email: "admin@example.com", | CODE |
| LOW | tests/services/productAnalytics/settings.test.ts | 111 | username: "admin@example.com", | CODE |
| LOW | tests/services/productAnalytics/privacy.test.ts | 74 | email: "user@example.com", | CODE |
| LOW | tests/services/managedSites/managedSiteUtils.test.ts | 127 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/managedSiteUtils.test.ts | 155 | userId: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/managedSiteUtils.test.ts | 230 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/managedSiteUtils.test.ts | 255 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/managedSiteUtils.test.ts | 268 | userId: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/managedSiteUtils.test.ts | 283 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/runtimeConfig.test.ts | 59 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/runtimeConfig.test.ts | 130 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/runtimeConfig.test.ts | 283 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/runtimeConfig.test.ts | 317 | userId: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/channelMigration.test.ts | 127 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/channelMigration.test.ts | 740 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/channelMigration.test.ts | 824 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/channelMigration.test.ts | 907 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/channelMigration.test.ts | 965 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/channelMigration.test.ts | 1010 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/channelMigration.test.ts | 1162 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/channelMigration.test.ts | 1499 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/channelMigration.test.ts | 1614 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/channelMigration.test.ts | 1682 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/channelMigration.test.ts | 1708 | email: "admin@example.com", | CODE |
| LOW | tests/services/managedSites/providers/axonHub.test.ts | 95 | email: "admin@example.com", | CODE |
| LOW | tests/services/apiService/axonHub/index.test.ts | 31 | email: "admin@example.com", | CODE |
| LOW | tests/services/modelSync/scheduler.test.ts | 216 | email: "admin@example.com", | CODE |
| LOW | tests/services/modelSync/modelSyncService.test.ts | 158 | email: "admin@example.com", | CODE |
| LOW | tests/services/modelSync/modelSyncService.test.ts | 398 | adminToken: "dummy-token", | CODE |
| LOW | …powers/plans/2026-05-19-managed-site-runtime-config.md | 102 | email: "admin@example.com", | CODE |
| LOW | …powers/plans/2026-05-19-managed-site-runtime-config.md | 166 | email: "admin@example.com", | CODE |
| LOW | …powers/plans/2026-05-19-managed-site-runtime-config.md | 206 | email: "admin@example.com", | CODE |
| LOW | …powers/plans/2026-05-19-managed-site-runtime-config.md | 240 | userId: "admin@example.com", | CODE |
| LOW | …powers/plans/2026-05-19-managed-site-runtime-config.md | 479 | email: "admin@example.com", | CODE |
| LOW | …powers/plans/2026-05-19-managed-site-runtime-config.md | 487 | email: "admin@example.com", | CODE |
| LOW | …powers/plans/2026-05-19-managed-site-runtime-config.md | 1059 | email: "admin@example.com", | CODE |
| LOW | …/plans/2026-07-03-account-runtime-key-product-model.md | 31 | - Replaces service-credential fake-token assertions with runtime-key assertions. | CODE |
| LOW | …2026-07-03-account-runtime-key-product-model-design.md | 346 | - Run a final grep for new fake-token ids and service-credential token wording. | CODE |
| LOW | src/locales/vi/modelRedirect.json | 44 | "placeholder": "Tìm kiếm kênh (tên hoặc ID)…" | CODE |
| LOW | src/locales/vi/settings.json | 83 | "emailPlaceholder": "admin@example.com", | CODE |
| 124 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …enspec/specs/model-redirect-mapping-guardrails/spec.md | 1 | # model-redirect-mapping-guardrails Specification | COMMENT |
| MEDIUM | …/changes/archive/2026-02-04-web-ai-api-check/design.md | 60 | ### 2) Run network operations in background; content script only orchestrates UI | COMMENT |
| MEDIUM | …hive/2026-03-19-temp-window-onsuspend-cleanup/tasks.md | 1 | ## 1. Recon and scope guardrails | COMMENT |
| MEDIUM | …26-03-26-require-sub2api-key-group-selection/design.md | 88 | ### Decision: Use local dialog state for local flows and global dialog orchestration for resumable flows | COMMENT |
| MEDIUM | …026-01-26-quantify-message-action-identifiers/tasks.md | 29 | ## 5. Tests and guardrails | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs_assistant/contributors.py | 467 | except Exception as e: | STRING |
| LOW | docs_assistant/contributors.py | 529 | except Exception as e: | STRING |
| LOW | docs_assistant/translate.py | 511 | except Exception as e: | CODE |
| LOW | docs_assistant/translate.py | 540 | except Exception as e: | CODE |
| LOW | docs_assistant/translate.py | 612 | except Exception as e: | CODE |
| LOW | docs_assistant/translate.py | 653 | except Exception as e: | CODE |
| LOW | docs_assistant/translate.py | 742 | except Exception as e: | CODE |
| LOW | docs_assistant/find_missing.py | 135 | except Exception as e: | CODE |
| LOW | docs_assistant/changelog.py | 22 | except Exception: | CODE |
| LOW | docs_assistant/changelog.py | 190 | except Exception as e: | CODE |
| LOW | docs_assistant/utils.py | 32 | except Exception as e: | CODE |
| LOW | docs_assistant/afdian_api.py | 95 | except Exception as e: | CODE |
| LOW | docs_assistant/main.py | 97 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs_assistant/sync_translations.py | 90 | CODE | |
| LOW | docs_assistant/translate.py | 531 | CODE | |
| LOW | docs_assistant/translate.py | 622 | CODE | |
| LOW | docs_assistant/translate.py | 659 | CODE | |
| LOW | docs_assistant/github_api.py | 17 | CODE | |
| LOW | docs_assistant/find_missing.py | 54 | CODE | |
| LOW | docs_assistant/afdian_api.py | 28 | CODE | |
| LOW | docs_assistant/main.py | 18 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs_assistant/README.md | 20 | export OPENAI_API_KEY="your-api-key-here" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/docs/en/usage-analytics.md | 24 | ## Step 1: Enable Usage History Synchronization | COMMENT |
| LOW | docs/docs/en/usage-analytics.md | 57 | ## Step 2: Access the Usage Analysis Page | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs_assistant/sync_translations.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | docs_assistant/translate.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | docs_assistant/find_missing.py | 18 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs_assistant/afdian_api.py | 7 | CODE | |
| LOW | docs_assistant/main.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/constants/designTokens.ts | 41 | // }, | COMMENT |