openai / openai-dotnet
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.
  • 932 files, 26,742 LOC (12.7% vs. main code).
  • "OpenAI" is biggest, containing 71.05% of LOC.
  • "specification" is smallest, containing 0.06% of LOC.


OpenAI18999 LOC (9%) 680 files
OpenAI.Responses3614 LOC (1%) 216 files
codegen2010 LOC (<1%) 24 files
scripts1443 LOC (<1%) 7 files
api569 LOC (<1%) 1 file
.github92 LOC (<1%) 3 files
specification15 LOC (<1%) 1 file
Static Dependencies
Dependencies among components are static code dependencies among files in different components.
  • Analyzed system has 3 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 3 links contain 26 dependencies.
  • There is 1 place (2 links) with cyclic dependencies (25 file dependencies).
flowchart TB
    n0[".github"]
    n1["OpenAI"]
    n2["api"]
    n3["scripts"]
    n4["specification"]
    n5["codegen"]
    n6["OpenAI.Responses"]
    n6 -->|"24"| n1
    n1 -->|"1"| n6
    n5 -->|"1"| n1
    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:#DC143C4C,stroke-width:1px
    linkStyle 2 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
OpenAI.Responses
  --> OpenAI
24 files, 1059 LOC (29%)
24 source files
OpenAI
  --> OpenAI.Responses
1 file, 167 LOC (<1%)
1 source file
codegen
  --> OpenAI
1 file, 135 LOC (6%)
1 source file







2026-06-24 10:37