Repo X-Ray · 05 December 2026, 05:38 · read in 7.9s · nothing was executed
/srv/xela/workspace/.envxray-oss/immich
and 86 more.
| Language | Files | Lines | |
|---|---|---|---|
| TypeScript | 1,256 | 196,607 | |
| Dart | 861 | 96,255 | |
| Svelte | 415 | 40,943 | |
| SQL | 39 | 10,846 | |
| Python | 39 | 6,609 | |
| Rust | 37 | 6,003 |
The fewest files that are the only import route into 62% of the code — 779 of 1,263 files. This is not a ranking, it is a cover: nothing in those 779 files can be reached by an import without passing through one of the entrances below. Each row also names the files the rest of that region depends on most, which is the vocabulary you will be reading it in.
| Read this, then what it leads to | Files it opens | Lines in that region | A test reaches it |
|---|---|---|---|
| 1. server/src/controllers/index.ts where the program starts server/src/enum.ts ← 200 files, 1,379 lines server/src/decorators.ts ← 156 files, 363 lines server/src/dtos/auth.dto.ts ← 84 files, 217 lines | 321 | 52,584 | no |
| 2. web/src/routes/(user)/tags/[[photos=photos]]/[[assetId=id]]/+page.svelte nothing imports it packages/plugin-sdk/src/sdk.ts ← 129 files, 107 lines web/src/lib/queries/client.ts ← 97 files, 181 lines web/src/lib/managers/auth-manager.svelte.ts ← 51 files, 138 lines | 297 | 32,468 | yes |
| 3. web/src/routes/(user)/user-settings/+page.svelte nothing imports it web/src/lib/queries/api-key.query.ts ← 4 files, 34 lines web/src/lib/components/shared-components/settings/SettingAccordion.svelte ← 3 files, 118 lines web/src/lib/queries/passkey.query.ts ← 3 files, 72 lines | 53 | 4,412 | yes |
| 4. web/src/routes/admin/system-settings/+page.svelte nothing imports it web/src/lib/components/shared-components/settings/SystemConfigButtonRow.svelte ← 19 files, 78 lines web/src/routes/admin/system-settings/SettingSelect.svelte ← 8 files, 92 lines web/src/routes/admin/system-settings/SettingTextarea.svelte ← 2 files, 76 lines | 35 | 3,855 | yes |
| 5. server/src/schema/index.ts where the program starts server/src/schema/tables/asset-edit.table.ts ← 1 files, 55 lines server/src/schema/tables/user-metadata.table.ts ← 1 files, 46 lines server/src/schema/tables/memory-asset.table.ts ← 1 files, 38 lines | 24 | 790 | no |
| 6. web/src/routes/(user)/workflows/[workflowId]/+page.svelte nothing imports it web/src/lib/queries/workflow.query.ts ← 6 files, 75 lines web/src/lib/utils/workflow.ts ← 5 files, 98 lines web/src/lib/managers/plugin-manager.svelte.ts ← 5 files, 96 lines | 21 | 2,229 | yes |
| 7. server/src/services/index.ts where the program starts server/src/services/metadata.service.ts ← 1 files, 1,186 lines server/src/services/media.service.ts ← 1 files, 910 lines server/src/services/workflow-execution.service.ts ← 1 files, 518 lines | 14 | 4,047 | no |
| 8. machine-learning/conftest.py where the program starts machine-learning/immich_ml/models/transforms.py ← 8 files, 101 lines machine-learning/immich_ml/models/facial_recognition/_ops.py ← 2 files, 73 lines machine-learning/immich_ml/main.py ← 1 files, 260 lines | 14 | 1,598 | no |
Imported by the most files: the load-bearing walls, where a change reaches furthest.
| Module | Imported by | Lines | A test reaches it |
|---|---|---|---|
| packages/plugin-sdk/src/sdk.ts | 382 | 107 | yes |
| server/src/enum.ts | 353 | 1,379 | yes |
| web/src/lib/queries/client.ts | 308 | 181 | yes |
| web/src/lib/route.ts | 205 | 175 | yes |
| server/src/decorators.ts | 186 | 363 | yes |
| mobile/test/utils.dart | 172 | 23 | no |
| server/src/repositories/logging.repository.ts | 109 | 201 | yes |
| server/test/small.factory.ts | 108 | 229 | no |
| web/src/lib/managers/auth-manager.svelte.ts | 107 | 138 | yes |
| server/src/dtos/auth.dto.ts | 92 | 217 | yes |
| mobile/packages/ui/lib/src/types.dart | 91 | 5 | yes |
| web/src/lib/constants.ts | 87 | 315 | yes |
Churn multiplied by size. A big file that never changes is usually fine; a big file that changes constantly is where the bugs and the arguments live.
| File | Commits | Lines | Mostly written by | Tested |
|---|---|---|---|---|
| packages/sdk/src/fetch-client.ts | 5 | 9,063 | Author G 20% | no |
| server/src/enum.ts | 5 | 1,379 | Author B 60% | yes |
| server/src/dtos/config.dto.ts | 4 | 895 | Author B 75% | yes |
| server/src/utils/config.ts | 5 | 275 | Author B 80% | yes |
| server/src/utils/database.ts | 2 | 1,185 | Author H 50% | yes |
| server/src/services/sync.service.ts | 2 | 1,051 | Author G 50% | yes |
| server/src/repositories/config.repository.ts | 3 | 462 | Author E 33% | yes |
| mobile/lib/infrastructure/repositories/sync_stream.repository.dart | 2 | 1,023 | Author G 50% | no |
| server/src/repositories/person.repository.ts | 2 | 1,020 | Author I 50% | yes |
| web/src/lib/services/asset.service.ts | 2 | 896 | Author P 50% | yes |
| server/src/repositories/sync.repository.ts | 2 | 871 | Author G 50% | yes |
| mobile/lib/presentation/widgets/album/album_selector.widget.dart | 2 | 852 | Author G 50% | no |
The busiest test file is server/src/services/system-config.service.spec.ts (5 commits) - kept out of the table above so the code that ships comes first.
Active in the last 90 days: Author A (18), Author B (5), Author C (4), Author D (4), Author E (3), Author F (3)
History read: 50 commits, 4 days ago to today. Top committer overall: Author A 36%.
901 of 1,263 shipped modules are reachable from a test file by import (71%).
7 further files under examples, docs, scripts or benchmarks are not test-reachable either. They are counted apart from the number above, because demo code dragging a healthy repository down tells you nothing.
Reachable means a test imports it, directly or through another module. It is the floor, not coverage: a module can be reachable and still have none of its behaviour exercised. The modules below are the other case - nothing a test loads can even see them, so a green suite says nothing about them.
and 163 more in 135 other places.
Nothing imports these, and no entry point, script or resolved runtime load reaches them. Biggest first.
and 4 more in 4 other places.
| Function | File | Lines |
|---|---|---|
| _predict | machine-learning/immich_ml/models/ocr/recognition.py:56 | 58 |
| test_recognition | machine-learning/test_main.py:1730 | 41 |
| File | Count |
|---|---|
| packages/scripts/src/commands/notes.spec.ts | 14 |
| i18n/gl.json | 8 |
| server/src/services/workflow-execution.service.ts | 7 |
| server/src/dtos/album.dto.ts | 6 |
| packages/cli/src/queue.ts | 4 |
| server/src/dtos/person.dto.ts | 4 |
Read from package.json, docs/package.json, e2e/package.json, machine-learning/pyproject.toml, native/Cargo.toml, cli/package.json, e2e-auth-server/package.json, plugin-core/package.json, plugin-sdk/package.json, scripts/package.json, sdk/package.json, server/package.json, web/package.json.
These work on a machine where the package happens to be installed, and fail in a clean checkout or in CI.
| Package | Imported by |
|---|---|
| torch | machine-learning/ann/export/run.py |
| open_clip | machine-learning/ann/export/run.py |
| onnx2torch | machine-learning/ann/export/run.py |
| tinynn | machine-learning/ann/export/run.py |
| starlette | machine-learning/immich_ml/main.py |
| typing_extensions | machine-learning/immich_ml/models/ocr/schemas.py machine-learning/immich_ml/schemas.py |
| machine-learning/immich_ml/sessions/prepare.py |
Dead weight in the install, or a tool that is run rather than imported (formatters, type stubs, test plugins). Check before removing.
prettier prettier-plugin-sort-json @docusaurus/core @docusaurus/theme-mermaid @mdi/react @mdx-js/react docusaurus-lunr-search lunr postcss raw-loader react-dom @docusaurus/module-type-aliases @docusaurus/tsconfig @docusaurus/types @typescript/native typescript @immich/cli @immich/sdk @types/luxon @types/node @types/pg @types/pngjs @types/supertest eslint
Nothing in the shipped code imports these, so an install will not break - but a fresh contributor running the tests or building the docs will hit them.
@docusaurus/plugin-content-docs @theme/NavbarItem requests
Imported only inside try: or a TYPE_CHECKING guard, so the code already handles their absence. Not counted as missing.
onnxruntime_ep_nv_tensorrt_rtx
| What | Where | Value |
|---|---|---|
| password in code | e2e/src/fixtures.ts:9 | pass...rd' (20 chars) |
| password in code | e2e/src/fixtures.ts:32 | pass...d1' (21 chars) |
| password in code | e2e/src/fixtures.ts:37 | pass...12' (22 chars) |
| password in code | e2e/src/fixtures.ts:42 | pass...23' (23 chars) |
| password in code | e2e/src/fixtures.ts:47 | pass...23' (23 chars) |
| password in code | e2e/src/fixtures.ts:52 | pass...ta' (26 chars) |
| password in code | e2e/src/specs/server/api/oauth.e2e-spec.ts:53 | pass...rd' (20 chars) |
| password in code | e2e/src/specs/server/api/oauth.e2e-spec.ts:365 | pass...rd' (20 chars) |
| password in code | e2e/src/specs/server/api/user-admin.e2e-spec.ts:87 | pass...23' (23 chars) |
| password in code | e2e/src/specs/server/api/user-admin.e2e-spec.ts:142 | pass...et' (24 chars) |
| password in code | e2e/src/specs/server/api/user-admin.e2e-spec.ts:148 | pass...et' (24 chars) |
| private key block | packages/e2e-auth-server/test-keys.ts:1 | ----...--- (27 chars) |
| password in code | server/src/controllers/auth.controller.spec.ts:27 | pass...rd' (21 chars) |
| password in code | server/src/controllers/auth.controller.spec.ts:75 | pass...rd' (20 chars) |
| password in code | server/src/controllers/auth.controller.spec.ts:83 | pass...rd' (20 chars) |
| password in code | server/src/controllers/auth.controller.spec.ts:115 | pass...rd' (20 chars) |
| password in code | server/src/controllers/auth.controller.spec.ts:137 | pass...rd' (20 chars) |
| password in code | server/src/controllers/auth.controller.spec.ts:150 | pass...rd' (20 chars) |
| password in code | server/src/controllers/auth.controller.spec.ts:164 | pass...rd' (20 chars) |
| password in code | server/src/controllers/auth.controller.spec.ts:175 | pass...rd' (20 chars) |
Test certificates and sample keys are committed on purpose, so these are listed rather than raised. Worth a glance only if one of these folders holds something real.
| What | Where |
|---|---|
| password in code | server/test/fixtures/shared-link.stub.ts:32 |
| password in code | server/test/fixtures/shared-link.stub.ts:83 |
| password in code | server/test/medium/specs/services/auth.service.spec.ts:55 |
| password in code | server/test/medium/specs/services/auth.service.spec.ts:71 |
| password in code | server/test/medium/specs/services/auth.service.spec.ts:74 |
| password in code | server/test/medium/specs/services/auth.service.spec.ts:81 |
| password in code | server/test/medium/specs/services/auth.service.spec.ts:131 |
| password in code | server/test/medium/specs/services/auth.service.spec.ts:152 |
| password in code | server/test/medium/specs/services/user.service.spec.ts:67 |
| password in code | server/test/medium/specs/services/user.service.spec.ts:68 |
| password in code | server/test/repositories/config.repository.mock.ts:33 |
| password in code | web/test/common/data.ts:1078 |
No committed credentials matched the patterns checked.
Patterns covered: AWS keys, private key blocks, GitHub, Slack, Stripe, Google, OpenAI and Anthropic keys, JSON web tokens, and passwords assigned in code. A secret in a format not listed here would not be found, and this does not read the git history.