基于 ChatGPT API 的划词翻译浏览器插件和跨平台桌面端应用 - Browser extension and cross-platform desktop application for translation based on ChatGPT API.
This report summarizes scanner evidence for nextai-translator/nextai-translator, a TypeScript project with 25,023 GitHub stars. SynthScan examined 75,419 lines of code across 265 source files, recording 29 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.5 (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? 29 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 17 finding(s).
Which changes need focused human review? 29 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 29 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 | scripts/release.py | 4 | def get_current_version_from_tag(): | CODE |
| LOW | src/tauri/utils.ts | 100 | export async function bindQuickTranslatorHotkey(oldHotKey?: string) { | CODE |
| LOW | src/common/openai-api-path.ts | 13 | export function isResponsesCapableOpenAIModel(model: string | undefined | null): boolean { | CODE |
| LOW | src/common/openai-api-path.ts | 24 | export function getRecommendedOpenAIAPIPath(model: string | undefined | null): string { | CODE |
| LOW | src/common/lang/index.ts | 108 | export function pickTranslateAutoTargetLang( | CODE |
| LOW | src/common/components/Settings.tsx | 206 | function LanguageDetectionEngineSelector({ value, onChange, onBlur }: ILanguageDetectionEngineSelectorProps) { | CODE |
| LOW | src/common/components/Settings.tsx | 1096 | function RestorePreviousPositionCheckbox({ value, onChange, onBlur }: RestorePreviousPositionCheckboxProps) { | CODE |
| LOW | src/common/components/Settings.tsx | 1114 | function SelectInputElementsCheckbox({ value, onChange, onBlur }: SelectInputElementsProps) { | CODE |
| LOW | src/common/components/Settings.tsx | 1133 | function ReadSelectedWordsFromInputElementsCheckbox({ | CODE |
| LOW | src/common/components/ActionForm.tsx | 71 | function ActionThinkingLevelSelector({ value, onChange }: ActionThinkingLevelSelectorProps) { | CODE |
| LOW | src/common/polyfills/tauri.ts | 17 | export function invalidateTauriSettingsCache(): void { | CODE |
| LOW⚡ | src/common/services/promotion.ts | 97 | function getPromotionItemShowedKey(item: IPromotionItem) { | CODE |
| LOW⚡ | src/common/services/promotion.ts | 101 | function getPromotionItemNeverDisplayKey(item: IPromotionItem) { | CODE |
| LOW⚡ | src/common/services/promotion.ts | 107 | export async function checkShouldShowPromotionNotification() { | CODE |
| LOW | src/common/services/promotion.ts | 161 | export async function isPromotionItemNeverDisplay(item?: IPromotionItem): Promise<boolean> { | CODE |
| LOW | src/common/services/promotion.ts | 172 | export async function setPromotionItemNeverDisplay(item?: IPromotionItem) { | CODE |
| LOW | src/common/services/promotion.ts | 184 | export async function unsetPromotionItemNeverDisplay(item?: IPromotionItem) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src-tauri/src/writing.rs | 1 | // Writing flow: stream a translation into whatever input box the user has | COMMENT |
| LOW | src-tauri/src/writing.rs | 281 | pub fn finish_writing() { | COMMENT |
| LOW | src-tauri/src/fetch.rs | 21 | #[serde(default)] | COMMENT |
| LOW | src-tauri/src/windows.rs | 341 | /// (#1883, #1886). Explicitly sync the controller whenever those panels are | COMMENT |
| LOW | src-tauri/src/windows.rs | 441 | pub async fn show_translator_window_command() { | COMMENT |
| LOW | src-tauri/src/windows.rs | 1101 | } | COMMENT |
| LOW | src-tauri/src/windows.rs | 1241 | if let Some(window) = handle.get_webview_window(QUICK_TRANSLATOR_WIN_NAME) { | COMMENT |
| LOW | src/common/engines/abstract-openai.ts | 181 | // Only the undotted gpt-5 series (gpt-5 / gpt-5-mini / gpt-5-nano, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | README.md | 44 | I have developed a [Bob](https://bobtranslate.com/) [plugin](https://github.com/yetone/bob-plugin-nextai-translator) tha | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src-tauri/gen/schemas/acl-manifests.json | 1 | {"aptabase":{"default_permission":null,"permissions":{"allow-track-event":{"identifier":"allow-track-event","description | CODE |
| MEDIUM | src-tauri/gen/schemas/plugin-manifests.json | 1 | {"app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":[ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/release.py | 60 | # Create a new tag for the current release. | COMMENT |