anthropics / connect-rust
Components

An overview of source code logical components.

Intro

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.
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

  • primary (8 components)

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 8 components.
  • 74 files, 29,347 LOC (38.7% vs. main code).
  • "connectrpc" is biggest, containing 66.74% of LOC.
  • "conformance" is smallest, containing 0.95% of LOC.


connectrpc19586 LOC (25%) 22 files
connectrpc-codegen3200 LOC (4%) 3 files
benches3159 LOC (4%) 24 files
connectrpc-health1055 LOC (1%) 8 files
connectrpc-reflection946 LOC (1%) 4 files
connectrpc-build757 LOC (<1%) 1 file
ROOT364 LOC (<1%) 2 files
conformance280 LOC (<1%) 10 files
Component Commits
Components ordered by number of commits
Total Commits per Component
All commits, some commits may include files from multiple components.
connectrpc60 commits (47%)
connectrpc-codegen25 commits (19%)
connectrpc-build17 commits (13%)
benches8 commits (6%)
ROOT6 commits (4%)
connectrpc-health4 commits (3%)
connectrpc-reflection2 commits (1%)
conformance2 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
connectrpc
60
connectrpc-codegen
25
connectrpc-build
17
benches
8
ROOT
6
connectrpc-health
4
connectrpc-reflection
2
conformance
2


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["connectrpc"]
    n1["connectrpc-codegen"]
    n2["connectrpc-build"]
    n3["benches"]
    n4["ROOT"]
    n5["connectrpc-health"]
    n6["connectrpc-reflection"]
    n7["conformance"]
    n0 ---|"30"| n0
    n0 ---|"11"| n1
    n1 ---|"8"| n2
    n3 ---|"7"| n1
    n3 ---|"7"| n3
    n3 ---|"5"| n0
    n0 ---|"4"| n2
    n4 ---|"3"| n1
    n5 ---|"3"| n0
    n5 ---|"2"| n1
    n3 ---|"2"| n4
    n3 ---|"2"| n2
    n5 ---|"2"| n2
    n4 ---|"2"| n2
    n1 ---|"2"| n1
    n5 ---|"1"| n5
    n6 ---|"1"| n6
    n7 ---|"1"| n4
    n0 ---|"1"| n6
    n5 ---|"1"| n4
    n6 ---|"1"| n4
    n7 ---|"1"| n3
    n7 ---|"1"| n1
    n3 ---|"1"| n5
    n6 ---|"1"| n5
    n7 ---|"1"| n7
    n6 ---|"1"| n2
    n4 ---|"1"| n0
    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:#00688b82,stroke-width:3px
    linkStyle 2 stroke:#00688b70,stroke-width:2px
    linkStyle 3 stroke:#00688b70,stroke-width:2px
    linkStyle 4 stroke:#a0a0a070,stroke-width:2px
    linkStyle 5 stroke:#00688b5E,stroke-width:1px
    linkStyle 6 stroke:#00688b5E,stroke-width:1px
    linkStyle 7 stroke:#00688b5E,stroke-width:1px
    linkStyle 8 stroke:#00688b5E,stroke-width:1px
    linkStyle 9 stroke:#00688b4C,stroke-width:1px
    linkStyle 10 stroke:#00688b4C,stroke-width:1px
    linkStyle 11 stroke:#00688b4C,stroke-width:1px
    linkStyle 12 stroke:#00688b4C,stroke-width:1px
    linkStyle 13 stroke:#00688b4C,stroke-width:1px
    linkStyle 14 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 15 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 16 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 17 stroke:#00688b4C,stroke-width:1px
    linkStyle 18 stroke:#00688b4C,stroke-width:1px
    linkStyle 19 stroke:#00688b4C,stroke-width:1px
    linkStyle 20 stroke:#00688b4C,stroke-width:1px
    linkStyle 21 stroke:#00688b4C,stroke-width:1px
    linkStyle 22 stroke:#00688b4C,stroke-width:1px
    linkStyle 23 stroke:#00688b4C,stroke-width:1px
    linkStyle 24 stroke:#00688b4C,stroke-width:1px
    linkStyle 25 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 26 stroke:#00688b4C,stroke-width:1px
    linkStyle 27 stroke:#00688b4C,stroke-width:1px



2026-06-24 10:48