Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
This report presents the forensic synthetic code analysis of fastapi/full-stack-fastapi-template, a TypeScript project with 44,222 GitHub stars. SynthScan v2.0 examined 17,039 lines of code across 197 source files, recording 82 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 6.5 places this repository in the Low AI signal 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 82 distinct pattern matches across 7 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 | backend/app/utils.py | 69 | def generate_reset_password_email(email_to: str, email: str, token: str) -> EmailData: | CODE |
| LOW | backend/app/utils.py | 86 | def generate_new_account_email( | CODE |
| LOW | backend/app/utils.py | 104 | def generate_password_reset_token(email: str) -> str: | CODE |
| LOW | backend/app/utils.py | 117 | def verify_password_reset_token(token: str) -> str | None: | CODE |
| LOW | backend/app/main.py | 10 | def custom_generate_unique_id(route: APIRoute) -> str: | CODE |
| LOW | backend/app/core/config.py | 108 | def _enforce_non_default_secrets(self) -> Self: | CODE |
| LOW | backend/app/api/deps.py | 52 | def get_current_active_superuser(current_user: CurrentUser) -> User: | CODE |
| LOW | backend/app/api/routes/login.py | 105 | def recover_password_html_content(email: str, session: SessionDep) -> Any: | CODE |
| LOW | backend/tests/conftest.py | 39 | def normal_user_token_headers(client: TestClient, db: Session) -> dict[str, str]: | CODE |
| LOW | backend/tests/utils/user.py | 10 | def user_authentication_headers( | CODE |
| LOW | backend/tests/utils/user.py | 30 | def authentication_token_from_email( | CODE |
| LOW | backend/tests/utils/utils.py | 17 | def get_superuser_token_headers(client: TestClient) -> dict[str, str]: | CODE |
| LOW | backend/tests/scripts/test_backend_pre_start.py | 8 | def test_init_successful_connection() -> None: | CODE |
| LOW | backend/tests/scripts/test_test_pre_start.py | 8 | def test_init_successful_connection() -> None: | CODE |
| LOW⚡ | backend/tests/crud/test_user.py | 30 | def test_not_authenticate_user(db: Session) -> None: | CODE |
| LOW⚡ | backend/tests/crud/test_user.py | 37 | def test_check_if_user_is_active(db: Session) -> None: | CODE |
| LOW⚡ | backend/tests/crud/test_user.py | 45 | def test_check_if_user_is_active_inactive(db: Session) -> None: | CODE |
| LOW⚡ | backend/tests/crud/test_user.py | 53 | def test_check_if_user_is_superuser(db: Session) -> None: | CODE |
| LOW⚡ | backend/tests/crud/test_user.py | 61 | def test_check_if_user_is_superuser_normal_user(db: Session) -> None: | CODE |
| LOW | backend/tests/api/routes/test_login.py | 28 | def test_get_access_token_incorrect_password(client: TestClient) -> None: | CODE |
| LOW | backend/tests/api/routes/test_login.py | 67 | def test_recovery_password_user_not_exits( | CODE |
| LOW | backend/tests/api/routes/test_login.py | 113 | def test_reset_password_invalid_token( | CODE |
| LOW | backend/tests/api/routes/test_items.py | 55 | def test_read_item_not_enough_permissions( | CODE |
| LOW | backend/tests/api/routes/test_items.py | 100 | def test_update_item_not_found( | CODE |
| LOW | backend/tests/api/routes/test_items.py | 114 | def test_update_item_not_enough_permissions( | CODE |
| LOW | backend/tests/api/routes/test_items.py | 142 | def test_delete_item_not_found( | CODE |
| LOW | backend/tests/api/routes/test_items.py | 154 | def test_delete_item_not_enough_permissions( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 15 | def test_get_users_superuser_me( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 26 | def test_get_users_normal_user_me( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 37 | def test_create_user_new_email( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 60 | def test_get_existing_user_as_superuser( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 79 | def test_get_non_existing_user_as_superuser( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 90 | def test_get_existing_user_current_user(client: TestClient, db: Session) -> None: | CODE |
| LOW | backend/tests/api/routes/test_users.py | 117 | def test_get_existing_user_permissions_error( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 132 | def test_get_non_existing_user_permissions_error( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 146 | def test_create_user_existing_username( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 165 | def test_create_user_by_normal_user( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 267 | def test_update_password_me_incorrect_password( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 282 | def test_update_user_me_email_exists( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 300 | def test_update_password_me_same_password_error( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 342 | def test_register_user_already_exists_error(client: TestClient) -> None: | CODE |
| LOW | backend/tests/api/routes/test_users.py | 384 | def test_update_user_not_exists( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 397 | def test_update_user_email_exists( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 451 | def test_delete_user_me_as_superuser( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 463 | def test_delete_user_super_user( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 482 | def test_delete_user_not_found( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 493 | def test_delete_user_current_super_user_error( | CODE |
| LOW | backend/tests/api/routes/test_users.py | 508 | def test_delete_user_without_privileges( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | compose.override.yml | 23 | # Create an entrypoint "http" listening on port 80 | COMMENT |
| MEDIUM | compose.override.yml | 25 | # Create an entrypoint "https" listening on port 443 | COMMENT |
| MEDIUM | compose.traefik.yml | 15 | # Define the port inside of the Docker service to use | COMMENT |
| MEDIUM⚡ | compose.traefik.yml | 48 | # Create an entrypoint "http" listening on port 80 | COMMENT |
| MEDIUM⚡ | compose.traefik.yml | 50 | # Create an entrypoint "https" listening on port 443 | COMMENT |
| MEDIUM⚡ | compose.traefik.yml | 52 | # Create the certificate resolver "le" for Let's Encrypt, uses the environment variable EMAIL | COMMENT |
| MEDIUM | compose.traefik.yml | 70 | # Create a volume to store the certificates, even if the container is recreated | COMMENT |
| MEDIUM | …98dd8ec85a3_edit_replace_id_integers_in_all_models_.py | 25 | # Create a new UUID column with a default UUID value | COMMENT |
| MEDIUM | backend/tests/crud/test_user.py | 101 | # Create a bcrypt hash directly (simulating legacy password) | COMMENT |
| MEDIUM | backend/tests/api/routes/test_login.py | 136 | # Create a bcrypt hash directly (simulating legacy password) | COMMENT |
| MEDIUM | backend/tests/api/routes/test_login.py | 170 | # Create an argon2 hash (current default) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 200 | - `first_superuser`: (default: `"admin@example.com"`) The email of the first superuser (in .env). | CODE |
| LOW | frontend/src/routes/login.tsx | 91 | placeholder="user@example.com" | CODE |
| LOW | frontend/src/routes/recover-password.tsx | 101 | placeholder="user@example.com" | CODE |
| LOW | frontend/src/routes/signup.tsx | 122 | placeholder="user@example.com" | CODE |
| LOW | backend/tests/api/routes/test_login.py | 54 | patch("app.core.config.settings.SMTP_USER", "admin@example.com"), | CODE |
| LOW | backend/tests/api/routes/test_users.py | 43 | patch("app.core.config.settings.SMTP_USER", "admin@example.com"), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/app/alembic/env.py | 1 | CODE | |
| LOW | …rsions/fe56fa70289e_add_created_at_to_user_and_item.py | 10 | CODE | |
| LOW | …98dd8ec85a3_edit_replace_id_integers_in_all_models_.py | 10 | CODE | |
| LOW | …sions/1a31ce608336_add_cascade_delete_relationships.py | 10 | CODE | |
| LOW | …ons/9c0a54914c78_add_max_length_for_string_varchar_.py | 10 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/playwright.config.ts | 41 | storageState: 'playwright/.auth/user.json', | COMMENT |
| LOW | frontend/playwright.config.ts | 61 | // dependencies: ['setup'], | COMMENT |
| LOW | backend/alembic.ini | 1 | # A generic, single database configuration. | COMMENT |
| LOW | backend/alembic.ini | 21 | # the 'revision' command, regardless of autogenerate | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/app/backend_pre_start.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/initial_data.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/utils.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/tests_pre_start.py | 10 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/app/backend_pre_start.py | 27 | except Exception as e: | CODE |
| LOW | backend/app/tests_pre_start.py | 27 | except Exception as e: | CODE |
| LOW | backend/tests/scripts/test_backend_pre_start.py | 26 | except Exception: | CODE |
| LOW | backend/tests/scripts/test_test_pre_start.py | 26 | except Exception: | CODE |