Logical Decomposition #1: PRIMARY

The decompositions is based on the folder structure at level 1 (relative to the source code root).

Bubble Chart | Tree Map
Component Sizes (Lines of Code)
The "primary" logical decomposition has 22 components.

kahuna25342 LOC (38%) 301 files
scripts13084 LOC (20%) 116 files
common-lib9863 LOC (15%) 161 files
media-api3671 LOC (5%) 34 files
thrall2918 LOC (4%) 35 files
image-loader2187 LOC (3%) 26 files
usage1840 LOC (2%) 28 files
image-embedder-lambda1622 LOC (2%) 16 files
rest-lib959 LOC (1%) 24 files
dev816 LOC (1%) 10 files
metadata-editor716 LOC (1%) 15 files
cropper521 LOC (<1%) 10 files
collections425 LOC (<1%) 11 files
cdk260 LOC (<1%) 3 files
leases229 LOC (<1%) 6 files
ROOT203 LOC (<1%) 1 file
image-cache-purger173 LOC (<1%) 4 files
quarantine-status158 LOC (<1%) 2 files
auth155 LOC (<1%) 4 files
image-counter-lambda63 LOC (<1%) 2 files
.github32 LOC (<1%) 1 file
.devcontainer28 LOC (<1%) 1 file

scope details...
  • 811 files, 65,265 LOC (100.0% vs. main code).
Component Commits
Components ordered by number of commits
Total Commits per Component
All commits, some commits may include files from multiple components.
kahuna4995 commits (33%)
common-lib2852 commits (18%)
media-api1781 commits (11%)
image-loader713 commits (4%)
thrall709 commits (4%)
metadata-editor450 commits (2%)
usage429 commits (2%)
cropper245 commits (1%)
collections217 commits (1%)
dev194 commits (1%)
scripts161 commits (1%)
rest-lib140 commits (<1%)
leases108 commits (<1%)
cdk103 commits (<1%)
ROOT96 commits (<1%)
auth82 commits (<1%)
image-embedder-lambda47 commits (<1%)
image-counter-lambda17 commits (<1%)
.devcontainer14 commits (<1%)
.github11 commits (<1%)
image-cache-purger7 commits (<1%)
quarantine-status4 commits (<1%)
Yearly File Updates Trend per Components
The number of file changes in commits
animated commit history: all time cumulative | 12 months window
2026 2025 2024 2023 2022 2021 2020 2019 2018 2017 2016 2015 2014 2013
kahuna
253
179
219
192
299
223
197
174
230
24
586
2147
259
13
common-lib
268
150
112
130
153
387
227
230
204
14
215
620
110
32
media-api
228
59
51
46
39
130
74
92
135
11
145
603
104
64
image-loader
97
58
49
128
23
103
128
42
30
13
35
4
3
cdk
94
9
thrall
71
20
40
62
28
206
91
115
34
1
29
2
10
dev
47
16
23
41
17
34
16
metadata-editor
33
26
14
6
2
74
22
16
25
24
205
3
usage
34
18
24
10
71
26
34
13
45
4
53
97
rest-lib
30
21
17
10
12
50
image-embedder-lambda
47
scripts
31
7
7
6
1
23
12
9
9
19
20
11
6
ROOT
13
15
5
16
12
6
13
12
4
collections
4
23
7
8
19
16
12
16
80
32
cropper
4
10
14
10
36
29
25
17
12
72
10
6
.devcontainer
14
auth
6
3
4
1
32
9
9
18
image-cache-purger
7
.github
5
3
3
leases
2
3
8
2
17
16
33
15
12
image-counter-lambda
2
2
13
quarantine-status
4


Dependencies between components in same commits (past 180 days)
The number on the lines shows the number of shared commits.
See detailed temporal dependencies report...

flowchart TB
    n0["kahuna"]
    n1["media-api"]
    n2["common-lib"]
    n3["image-loader"]
    n4["thrall"]
    n5["rest-lib"]
    n6["metadata-editor"]
    n7["dev"]
    n8["usage"]
    n9["image-embedder-lambda"]
    n10["scripts"]
    n11["image-cache-purger"]
    n12["cdk"]
    n13["ROOT"]
    n0 ---|"129"| n0
    n1 ---|"92"| n1
    n2 ---|"57"| n2
    n1 ---|"51"| n0
    n2 ---|"43"| n1
    n3 ---|"36"| n2
    n2 ---|"33"| n0
    n4 ---|"32"| n2
    n5 ---|"21"| n2
    n6 ---|"19"| n2
    n3 ---|"18"| n1
    n1 ---|"17"| n7
    n4 ---|"16"| n1
    n3 ---|"16"| n0
    n4 ---|"15"| n3
    n4 ---|"14"| n4
    n4 ---|"13"| n5
    n5 ---|"13"| n3
    n7 ---|"13"| n2
    n8 ---|"13"| n2
    n8 ---|"12"| n8
    n0 ---|"11"| n7
    n9 ---|"11"| n9
    n3 ---|"11"| n3
    n6 ---|"10"| n1
    n5 ---|"10"| n1
    n6 ---|"10"| n3
    n5 ---|"10"| n6
    n4 ---|"10"| n6
    n6 ---|"10"| n0
    n5 ---|"10"| n0
    n4 ---|"9"| n0
    n10 ---|"9"| n1
    n10 ---|"8"| n2
    n11 ---|"7"| n12
    n11 ---|"7"| n11
    n13 ---|"7"| n12
    n13 ---|"7"| n11
    n10 ---|"7"| n7
    n10 ---|"6"| n0
    n8 ---|"6"| n0
    n7 ---|"5"| n12
    n11 ---|"5"| n7
    n1 ---|"5"| n12
    n1 ---|"5"| n11
    n13 ---|"5"| n7
    n13 ---|"5"| n1
    n6 ---|"5"| n6
    n8 ---|"5"| n6
    n9 ---|"5"| n12
    classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
    classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
    linkStyle 0 stroke:#a0a0a0FF,stroke-width:10px
    linkStyle 1 stroke:#a0a0a0C9,stroke-width:7px
    linkStyle 2 stroke:#a0a0a093,stroke-width:4px
    linkStyle 3 stroke:#00688b82,stroke-width:3px
    linkStyle 4 stroke:#00688b82,stroke-width:3px
    linkStyle 5 stroke:#00688b70,stroke-width:2px
    linkStyle 6 stroke:#00688b70,stroke-width:2px
    linkStyle 7 stroke:#00688b70,stroke-width:2px
    linkStyle 8 stroke:#00688b5E,stroke-width:1px
    linkStyle 9 stroke:#00688b5E,stroke-width:1px
    linkStyle 10 stroke:#00688b5E,stroke-width:1px
    linkStyle 11 stroke:#00688b5E,stroke-width:1px
    linkStyle 12 stroke:#00688b5E,stroke-width:1px
    linkStyle 13 stroke:#00688b5E,stroke-width:1px
    linkStyle 14 stroke:#00688b5E,stroke-width:1px
    linkStyle 15 stroke:#a0a0a05E,stroke-width:1px
    linkStyle 16 stroke:#00688b5E,stroke-width:1px
    linkStyle 17 stroke:#00688b5E,stroke-width:1px
    linkStyle 18 stroke:#00688b5E,stroke-width:1px
    linkStyle 19 stroke:#00688b5E,stroke-width:1px
    linkStyle 20 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 21 stroke:#00688b4C,stroke-width:1px
    linkStyle 22 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 23 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 24 stroke:#00688b4C,stroke-width:1px
    linkStyle 25 stroke:#00688b4C,stroke-width:1px
    linkStyle 26 stroke:#00688b4C,stroke-width:1px
    linkStyle 27 stroke:#00688b4C,stroke-width:1px
    linkStyle 28 stroke:#00688b4C,stroke-width:1px
    linkStyle 29 stroke:#00688b4C,stroke-width:1px
    linkStyle 30 stroke:#00688b4C,stroke-width:1px
    linkStyle 31 stroke:#00688b4C,stroke-width:1px
    linkStyle 32 stroke:#00688b4C,stroke-width:1px
    linkStyle 33 stroke:#00688b4C,stroke-width:1px
    linkStyle 34 stroke:#00688b4C,stroke-width:1px
    linkStyle 35 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 36 stroke:#00688b4C,stroke-width:1px
    linkStyle 37 stroke:#00688b4C,stroke-width:1px
    linkStyle 38 stroke:#00688b4C,stroke-width:1px
    linkStyle 39 stroke:#00688b4C,stroke-width:1px
    linkStyle 40 stroke:#00688b4C,stroke-width:1px
    linkStyle 41 stroke:#00688b4C,stroke-width:1px
    linkStyle 42 stroke:#00688b4C,stroke-width:1px
    linkStyle 43 stroke:#00688b4C,stroke-width:1px
    linkStyle 44 stroke:#00688b4C,stroke-width:1px
    linkStyle 45 stroke:#00688b4C,stroke-width:1px
    linkStyle 46 stroke:#00688b4C,stroke-width:1px
    linkStyle 47 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 48 stroke:#00688b4C,stroke-width:1px
    linkStyle 49 stroke:#00688b4C,stroke-width:1px

About This Analysis

Logical decomposition is a representation of the organization of the main source code, where every and each file is put in exactly one logical component.

  • A software system can have one or more logical decompositions.
  • A logical decomposition can be defined in two ways in Sokrates.
  • First approach is based on the folders structure. Components are mapped to folders at defined folder depth relative to the source code root.
  • Second approach is based on explicit definition of each component. In such explicit definitions, components are explicitly named and their files are selected based on explicitly defined path and content filters.
  • A logical decomposition is considered invalid if a file is selected into two or more components. This constraint is introduced in order to facilitate measuring of dependencies among components.
  • Files not assigned to any component are put into a special "Unclassified" component.


2026-10-07 12:10