Free and Open Source Machine Translation API. Self-hosted, offline capable and easy to setup.
This report summarizes scanner evidence for LibreTranslate/LibreTranslate, a Python project with 17,029 GitHub stars. SynthScan examined 5,811 lines of code across 126 source files, recording 53 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 11.4 (Moderate 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.
Can maintainers explain intent, assumptions, and trade-offs? 29 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 29 finding(s).
Which changes need focused human review? 53 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 53 distinct pattern matches across 9 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 | libretranslate/suggestions.py | 16 | except Exception as e: | CODE |
| LOW | libretranslate/cache.py | 35 | except Exception as e: | CODE |
| LOW | libretranslate/cache.py | 47 | except Exception as e: | CODE |
| MEDIUM | libretranslate/cache.py | 40 | def cache(self, cache_key, content): | CODE |
| LOW | libretranslate/language.py | 88 | except Exception as e: | CODE |
| LOW | libretranslate/locales.py | 26 | except Exception as e: | CODE |
| LOW | libretranslate/app.py | 65 | except Exception: | CODE |
| LOW | libretranslate/app.py | 877 | except Exception as e: | CODE |
| LOW | libretranslate/app.py | 1026 | except Exception as e: | CODE |
| MEDIUM | libretranslate/app.py | 55 | def get_version(): | CODE |
| LOW | libretranslate/api_keys.py | 20 | except Exception as e: | CODE |
| LOW | libretranslate/api_keys.py | 100 | except Exception as e: | CODE |
| LOW | libretranslate/init.py | 14 | except Exception as e: | CODE |
| MEDIUM | libretranslate/init.py | 8 | def boot(load_only=None, update_models=False, install_models=False): | CODE |
| MEDIUM | scripts/update_locales.py | 25 | print("Error: English model not found. You need it to run this script.") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libretranslate/secret.py | 25 | CODE | |
| LOW | libretranslate/language.py | 70 | CODE | |
| LOW | libretranslate/language.py | 128 | CODE | |
| LOW | libretranslate/locales.py | 11 | CODE | |
| LOW | libretranslate/locales.py | 77 | CODE | |
| LOW | libretranslate/app.py | 124 | CODE | |
| LOW | libretranslate/app.py | 186 | CODE | |
| LOW | libretranslate/app.py | 333 | CODE | |
| LOW | libretranslate/app.py | 577 | CODE | |
| LOW | libretranslate/app.py | 335 | CODE | |
| LOW | libretranslate/manage.py | 8 | CODE | |
| LOW | libretranslate/init.py | 18 | CODE | |
| LOW | scripts/gunicorn_conf.py | 10 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libretranslate/language.py | 50 | def get_language_with_fallback(lang_code, languages): | CODE |
| LOW | libretranslate/language.py | 128 | def improve_translation_formatting(source, translation, improve_punctuation=True, remove_single_word_duplicates=True): | CODE |
| LOW | libretranslate/locales.py | 39 | def get_available_locale_codes(only_reviewed=True): | CODE |
| LOW | libretranslate/locales.py | 43 | def get_alternate_locale_links(): | CODE |
| LOW | libretranslate/tests/test_api/test_api_translate.py | 35 | def test_api_translate_unsupported_language(client): | CODE |
| LOW | libretranslate/tests/test_api/test_api_translate.py | 50 | def test_api_translate_missing_parameter(client): | CODE |
| LOW | …translate/tests/test_api/test_api_frontend_settings.py | 1 | def test_api_get_frontend_settings(client): | CODE |
| LOW | libretranslate/tests/test_api/test_api_health.py | 8 | def test_api_health_must_fail_bad_request_type(client): | CODE |
| LOW | libretranslate/tests/test_api/test_api_get_languages.py | 13 | def test_api_get_languages_must_fail_bad_request_type(client): | CODE |
| LOW | libretranslate/tests/test_api/test_api_spec.py | 7 | def test_api_get_spec_must_fail_bad_request_type(client): | CODE |
| LOW | …retranslate/tests/test_api/test_api_detect_language.py | 15 | def test_api_detect_language_must_fail_without_parameters(client): | CODE |
| LOW | …retranslate/tests/test_api/test_api_detect_language.py | 23 | def test_api_detect_language_must_fail_bad_request_type(client): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | libretranslate/app.py | 59 | except OSError: | CODE |
| HIGH | libretranslate/app.py | 65 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libretranslate/__init__.py | 1 | CODE | |
| LOW | libretranslate/__init__.py | 2 | CODE | |
| LOW | libretranslate/__init__.py | 3 | CODE | |
| LOW | libretranslate/app.py | 8 | CODE | |
| LOW | libretranslate/main.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker-compose.cuda.yml | 21 | reservations: | COMMENT |
| LOW | docker-compose.yml | 21 | # - LT_API_KEYS=true | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libretranslate/static/js/materialize.min.js | 6 | var _get=function t(e,i,n){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,i);if(void 0===s){va | CODE |
| LOW | libretranslate/static/js/vue@2.js | 6 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libretranslate/language.py | 113 | # otherwise just add it to the temporary list | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/entrypoint.sh | 51 | # Set ARGOS_CHUNK_TYPE to MINISBD if not already defined | COMMENT |