openai / orchard
Static Component Dependencies

An overview of static code dependencies among source code logical components.

Intro

Static code dependencies refer to the relationships between different modules, libraries, or components in a software system that are established at compile-time rather than at runtime. These dependencies are determined by the code itself, meaning that one module directly references another through imports, includes, or explicit references in the code. Examples include:

  • Library and Module Imports
  • Class Dependencies (Inheritance & Composition)
  • Function and Method Calls
  • Dependency Injection Without Runtime Resolution
Learn more...
  • To learn more about good practices on componentization and dependencies, Sokrates recommends the following resources:
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

  • primary (7 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 7 components.
  • 176 files, 14,286 LOC (100.0% vs. main code).
  • "internal" is biggest, containing 77.63% of LOC.
  • ".github" is smallest, containing 0.07% of LOC.


internal11090 LOC (77%) 142 files
pkg1604 LOC (11%) 23 files
api814 LOC (5%) 2 files
rpc733 LOC (5%) 5 files
cmd24 LOC (<1%) 1 file
ROOT11 LOC (<1%) 2 files
.github10 LOC (<1%) 1 file
Static Dependencies
Dependencies among components are static code dependencies among files in different components.
  • Analyzed system has 6 links (arrows) between components.
  • The number on the arrow represents the number of files from referring component that depend on files in referred component.
  • These 6 links contain 59 dependencies.
  • There is 1 place (2 links) with cyclic dependencies (45 file dependencies).
flowchart TB
    n0["rpc"]
    n1["ROOT"]
    n2[".github"]
    n3["pkg"]
    n4["cmd"]
    n5["internal"]
    n6["api"]
    n5 -->|"43"| n3
    n5 -->|"11"| n0
    n3 -->|"2"| n5
    n3 -->|"1"| n0
    n4 -->|"1"| n5
    n5 -->|"1"| n6
    classDef default fill:#808080,stroke:#ffffff,color:#000000;
    classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
    class n0,n1,n2,n3,n4,n5,n6 highlighted;
    linkStyle 0 stroke:#DC143CFF,stroke-width:10px
    linkStyle 1 stroke:#00688b70,stroke-width:2px
    linkStyle 2 stroke:#DC143C4C,stroke-width:1px
    linkStyle 3 stroke:#00688b4C,stroke-width:1px
    linkStyle 4 stroke:#00688b4C,stroke-width:1px
    linkStyle 5 stroke:#00688b4C,stroke-width:1px



Download: Mermaid (.mmd) (open online Mermaid editor)

Open 2D force graph...
Open 3D force graph...

Show more details about dependencies...
From Component
 --> To Component
From Component
(files with dependencies)
Details
internal
  --> pkg
43 files, 4804 LOC (43%)
43 source files
internal
  --> rpc
11 files, 2446 LOC (22%)
11 source files
pkg
  --> internal
2 files, 359 LOC (22%)
2 source files
pkg
  --> rpc
1 file, 313 LOC (19%)
1 source file
cmd
  --> internal
1 file, 24 LOC (100%)
1 source file
internal
  --> api
1 file, 284 LOC (2%)
1 source file







2026-06-24 10:34