openai / compose-richtext
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 (9 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 9 components.
  • 87 files, 8,624 LOC (100.0% vs. main code).
  • "richtext-ui" is biggest, containing 44.39% of LOC.
  • "richtext-ui-material" is smallest, containing 0.93% of LOC.


richtext-ui3828 LOC (44%) 32 files
android-sample2274 LOC (26%) 19 files
richtext-markdown1234 LOC (14%) 17 files
richtext-commonmark463 LOC (5%) 7 files
desktop-sample380 LOC (4%) 2 files
ROOT167 LOC (1%) 2 files
buildSrc118 LOC (1%) 4 files
richtext-ui-material380 LOC (<1%) 2 files
richtext-ui-material80 LOC (<1%) 2 files
Static Dependencies
Dependencies among components are static code dependencies among files in different components.
  • Analyzed system has 11 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 11 links contain 34 dependencies.
flowchart TB
    n0["android-sample"]
    n1["richtext-commonmark"]
    n2["ROOT"]
    n3["richtext-ui-material3"]
    n4["desktop-sample"]
    n5["richtext-ui"]
    n6["richtext-markdown"]
    n7["richtext-ui-material"]
    n8["buildSrc"]
    n0 -->|"7"| n5
    n6 -->|"7"| n5
    n0 -->|"6"| n3
    n0 -->|"4"| n1
    n1 -->|"4"| n6
    n0 -->|"1"| n6
    n1 -->|"1"| n5
    n3 -->|"1"| n5
    n4 -->|"1"| n5
    n4 -->|"1"| n7
    n7 -->|"1"| n5
    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 highlighted;
    linkStyle 0 stroke:#00688bC9,stroke-width:7px
    linkStyle 1 stroke:#00688bC9,stroke-width:7px
    linkStyle 2 stroke:#00688bB7,stroke-width:6px
    linkStyle 3 stroke:#00688b93,stroke-width:4px
    linkStyle 4 stroke:#00688b93,stroke-width:4px
    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:#00688b5E,stroke-width:1px
    linkStyle 10 stroke:#00688b5E,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
android-sample
  --> richtext-ui
7 files, 1669 LOC (73%)
7 source files
richtext-markdown
  --> richtext-ui
7 files, 727 LOC (58%)
7 source files
android-sample
  --> richtext-ui-material3
6 files, 1539 LOC (67%)
6 source files
android-sample
  --> richtext-commonmark
4 files, 1088 LOC (47%)
4 source files
richtext-commonmark
  --> richtext-markdown
4 files, 365 LOC (78%)
4 source files
android-sample
  --> richtext-markdown
1 file, 340 LOC (14%)
1 source file
richtext-commonmark
  --> richtext-ui
1 file, 71 LOC (15%)
1 source file
richtext-ui-material3
  --> richtext-ui
1 file, 53 LOC (66%)
1 source file
desktop-sample
  --> richtext-ui
1 file, 358 LOC (94%)
1 source file
desktop-sample
  --> richtext-ui-material
1 file, 358 LOC (94%)
1 source file
richtext-ui-material
  --> richtext-ui
1 file, 53 LOC (66%)
1 source file







2026-06-24 10:34