anthropics / beam
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 (17 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 17 components.
  • 7,196 files, 802,375 LOC (100.0% vs. main code).
  • "sdks" is biggest, containing 67.66% of LOC.
  • ".gemini" is smallest, containing 0% of LOC.


sdks542880 LOC (67%) 3,869 files
runners138536 LOC (17%) 1,249 files
playground38140 LOC (4%) 451 files
learning28866 LOC (3%) 1,056 files
website20006 LOC (2%) 245 files
it10397 LOC (1%) 168 files
model5205 LOC (<1%) 14 files
infra5111 LOC (<1%) 16 files
.test-infra4364 LOC (<1%) 64 files
buildSrc3314 LOC (<1%) 9 files
scripts2374 LOC (<1%) 16 files
ROOT1252 LOC (<1%) 4 files
release1228 LOC (<1%) 17 files
.github342 LOC (<1%) 9 files
contributor-docs185 LOC (<1%) 1 file
plugins165 LOC (<1%) 7 files
.gemini10 LOC (<1%) 1 file
Static Dependencies
Dependencies among components are static code dependencies among files in different components.
  • Analyzed system has 5 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 5 links contain 951 dependencies.
  • There is 1 place (2 links) with cyclic dependencies (897 file dependencies).
flowchart TB
    n0["sdks"]
    n1["model"]
    n2["ROOT"]
    n3["release"]
    n4["infra"]
    n5["contributor-docs"]
    n6["learning"]
    n7["it"]
    n8[".test-infra"]
    n9["buildSrc"]
    n10["plugins"]
    n11["runners"]
    n12["playground"]
    n13[".github"]
    n14["scripts"]
    n15["website"]
    n16[".gemini"]
    n11 -->|"865"| n0
    n6 -->|"43"| n0
    n0 -->|"32"| n11
    n7 -->|"10"| n0
    n7 -->|"1"| n11
    classDef default fill:#808080,stroke:#ffffff,color:#000000;
    classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
    class n0,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,n13,n14,n15,n16 highlighted;
    linkStyle 0 stroke:#DC143CFF,stroke-width:10px
    linkStyle 1 stroke:#00688b4C,stroke-width:1px
    linkStyle 2 stroke:#DC143C4C,stroke-width:1px
    linkStyle 3 stroke:#00688b4C,stroke-width:1px
    linkStyle 4 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
runners
  --> sdks
865 files, 122129 LOC (88%)
865 source files
learning
  --> sdks
43 files, 1383 LOC (4%)
43 source files
sdks
  --> runners
32 files, 18359 LOC (3%)
32 source files
it
  --> sdks
10 files, 1697 LOC (16%)
10 source files
it
  --> runners
1 file, 418 LOC (4%)
1 source file







2026-06-24 10:52