Immich architecture.
Immich is a self-hosted photo and video management app. Nodeway mapped the immich-app/immich repository at commit b4b0f78, from 29 November 2026, and found 2,043 source files, 7,585 functions, classes and components and 382 routes. This page is drawn from that map.
- Source files
- 2,043
- Functions and classes
- 7,585
- Confirmed calls
- 10,925
- Routes
- 382
- Tables
- 0
How the code is laid out
Most of it is TypeScript: 774 files of 2,043, followed by Dart (690), Svelte (412) and Python (38).
The repository is split into 34 packages: folders with their own manifest, such as a package.json, pyproject.toml or go.mod. The largest are mobile (762 files), web (680 files), server (488 files), mobile/packages/ui (45 files), machine-learning (43 files) and mobile/android (37 files).
These are its top-level folders by number of source files, with 2 more files at the root. The biggest ones show their own largest folders underneath.
- mobile/package762 files
- lib/622 files
- packages/ui/package45 files
- android/package37 files
- ios/package34 files
- pigeon/11 files
- integration_test/9 files
- web/package680 files60 routes
- src/675 files60 routes
- bin/1 file
- server/package488 files319 routes
- src/482 files319 routes
- bin/5 files
- machine-learning/package43 files3 routes
- immich_ml/package32 files3 routes
- ann/package6 files
- scripts/3 files
- packages/29 files
- cli/package8 files
- plugin-sdk/package7 files
- scripts/package6 files
- native/package28 files
- crates/26 files
- native_core/package2 files
- docs/package7 files
- src/3 files
- .devcontainer/server/3 files
- open-api/bin/1 file
Where the code starts
Nodeway looked for files that define a main function, and for files named like a starting point (main, server, app, cli and similar) that at most one other file imports, then for index files that nothing imports. Ranked that way, then by how many files each one reaches through its imports:
| File | Reaches |
|---|---|
| server/src/bin/metadata-fixtures.tsdefines main | 190 files |
| server/src/main.tsdefines main | 45 files |
| machine-learning/immich_ml/main.py | 26 files |
| machine-learning/immich_ml/sessions/prepare.pydefines main | 5 files |
| packages/scripts/src/main.ts | 4 files |
| packages/scripts/src/cli.ts | 3 files |
Routes
Nodeway found 382 routes, 60 of them pages, and linked 382 to the function that handles them. The rest by HTTP method: GET 139, POST 77, DELETE 46, PUT 43, PATCH 17. Most are under server/src (319), web/src (60) and machine-learning/immich_ml (3).
Some of them
| Route | Method |
|---|---|
| /root · machine-learning/immich_ml/main.py | GET |
| /uploadAsset · server/src/controllers/asset-media.controller.ts | POST |
| /updateAssets · server/src/controllers/asset.controller.ts | PUT |
| /megetMyUser · server/src/controllers/user.controller.ts | GET |
| /jobsgetQueuesLegacy · server/src/controllers/job.controller.ts | GET |
| /tagscreateTag · server/src/controllers/tag.controller.ts | POST |
| /facescreateFace · server/src/controllers/face.controller.ts | POST |
| /albumsgetAllAlbums · server/src/controllers/album.controller.ts | GET |
One request, traced
Nodeway followed POST /predict from its route to the code that handles it, then along confirmed calls.
- POST /predictroute · machine-learning/immich_ml/main.py
- predictfunction · machine-learning/immich_ml/main.py:166
- run_inferencefunction · machine-learning/immich_ml/main.py:184
- attemptfunction · machine-learning/immich_ml/main.py:224
- clear_cachemethod · machine-learning/immich_ml/models/base.py:110
- rmtreefunction · machine-learning/conftest.py:184
The most-called code
Ranked by how many different functions call each one, counting only calls the analyzer could confirm from the code. These are often the helpers worth reading first.
| Function | Callers |
|---|---|
| GenerateSqlfunction · server/src/decorators.ts | 378 |
| Authenticatedfunction · server/src/middleware/auth.guard.ts | 309 |
| Endpointfunction · server/src/decorators.ts | 291 |
| addedmethod · server/src/decorators.ts | 283 |
| Authfunction · server/src/middleware/auth.guard.ts | 231 |
| betamethod · server/src/decorators.ts | 216 |
| stablemethod · server/src/decorators.ts | 214 |
| executeMutationfunction · web/src/lib/queries/client.ts | 169 |
Open this repo in Nodeway
Nodeway is a desktop app that draws this map on your own computer, so you can click into any folder, read the code beside the map and trace a request yourself. Clone the repository:
git clone https://github.com/immich-app/immich.git- Install Nodeway for macOS, Windows or Linux: the getting started guide has every installer.
- Open the cloned folder. The first map is drawn on your machine and nothing is uploaded.
- Search for
GenerateSqland trace what it calls, or pick a route and follow it to the database.
New to reading a codebase this size? See how to understand a large codebase and how to read a call graph.
Questions
What language is Immich written in?
Mostly TypeScript: 774 of its 2,043 source files at commit b4b0f78, then Dart with 690.
Where does the Immich code start?
The entry point that reaches the most code is server/src/bin/metadata-fixtures.ts, which leads to 190 files through its imports.
How many routes does Immich have?
Nodeway found 382 routes, 382 of them linked to a handler. The most are under server/src.
How this page was made
Generated from a map Nodeway's analyzer (version 18) made of immich-app/immich at commit b4b0f78, committed on 29 November 2026. Tests, dependencies and build output are mostly left out. A call counts only when the analyzer could confirm its target from the code, so real totals are higher. The project will have changed since.