One file is imported by 31% of Grafana. It is not a god object

typescript dev.to

TL;DR A god object is a class or file with lots of logic and many unrelated responsibilities. A file with many importers is not one by default. Grafana's most-imported file, packages/grafana-data/src/index.ts, is imported by 3,178 of 10,090 production files (31%) and contains no logic, only re-exports. In the median repo among 195 public repos with 1,000+ GitHub stars, one hub file is imported by 20% of production files, and in 68 repos (35%) a single file is imported by a quarter or more of t

Read Full Tutorial open_in_new
arrow_back Back to Tutorials