-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodebase.html
More file actions
187 lines (165 loc) · 7.42 KB
/
codebase.html
File metadata and controls
187 lines (165 loc) · 7.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Codebase | Orange Dev Tracker | Bitcoin Data Labs</title>
<meta name="description"
content="Deep dive into the Bitcoin Core codebase. Analysis of programming languages, functional areas, and 15 years of code evolution.">
<link rel="canonical" href="https://sorukumar.github.io/orange-dev-tracker/codebase.html">
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://sorukumar.github.io/Bitcoin-Data-Labs/styles/styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<link rel="icon" type="image/png" href="https://sorukumar.github.io/Bitcoin-Data-Labs/favicon.png">
<!-- Open Graph -->
<meta property="og:title" content="Codebase | Orange Dev Tracker | Bitcoin Data Labs">
<meta property="og:description" content="Explore the architecture and growth of the Bitcoin Core codebase.">
<meta property="og:image" content="https://sorukumar.github.io/orange-dev-tracker/assets/og-image.png">
<link rel="stylesheet" href="style.css">
<style>
.kpi-row {
display: flex;
justify-content: space-between;
gap: 20px;
margin-bottom: 30px;
flex-wrap: wrap;
}
.metric-card {
flex: 1;
min-width: 250px;
background: #ffffff;
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 24px;
text-align: center;
box-shadow: 0 2px 8px rgba(42, 51, 66, 0.04);
}
.metric-value {
font-size: 2.5em;
font-weight: 600;
color: var(--primary);
margin: 10px 0;
}
.metric-label {
color: var(--text-secondary);
font-size: 0.9em;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 600;
}
.chart-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.chart-box {
background: #ffffff;
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 24px;
box-shadow: 0 2px 8px rgba(42, 51, 66, 0.04);
}
.chart-header {
color: var(--secondary);
font-size: 1.1em;
margin-bottom: 20px;
font-weight: 600;
border-bottom: 1px solid var(--border-color);
padding-bottom: 12px;
}
</style>
</head>
<body class="has-fixed-header">
<div id="header"></div>
<div class="container">
<!-- KPI Section -->
<section style="margin-top: 30px;">
<div class="kpi-row">
<div class="metric-card">
<div class="metric-label">Total Volume</div>
<div class="metric-value" id="kpi-total-lines">-</div>
<div style="font-size:0.8em; color:var(--text-secondary);">Lines of Code (LOC)</div>
</div>
<div class="metric-card">
<div class="metric-label">File Count</div>
<div class="metric-value" id="kpi-total-files">-</div>
<div style="font-size:0.8em; color:var(--text-secondary);">Source Files</div>
</div>
<div class="metric-card">
<div class="metric-label">Tech Stack</div>
<div class="metric-value" id="kpi-total-langs">-</div>
<div style="font-size:0.8em; color:var(--text-secondary);">Active Languages</div>
</div>
</div>
</section>
<!-- Row 1: Category Analysis -->
<section class="chart-row">
<div class="chart-box">
<div class="chart-header">Functional Footprint (File Count)</div>
<div id="chart-snapshot-files-cat" style="height:300px;"></div>
</div>
<div class="chart-box">
<div class="chart-header">Code Volume by Category (LOC)</div>
<div id="chart-snapshot-volume" style="height:300px;"></div>
</div>
</section>
<!-- Row 2: Language Analysis -->
<section class="chart-row">
<div class="chart-box">
<div class="chart-header">Polyglot Composition (File Count)</div>
<div id="chart-snapshot-files-lang" style="height:300px;"></div>
</div>
<div class="chart-box">
<div class="chart-header">Tech Stack Dominance (LOC)</div>
<div id="chart-snapshot-stack" style="height:300px;"></div>
</div>
</section>
<!-- Disclaimer -->
<div
style="border: 1px solid var(--border-color); background: var(--bg-secondary); padding: 20px; border-radius: 12px; margin-bottom: 30px; color: var(--text-secondary); text-align: center; font-size: 14px;">
<strong style="color: var(--secondary);">⚠️ Data Normalization Notice</strong><br>
Historical line-of-code trends are mathematically scaled to match the current static codebase size (0.9M
LOC).<br>
Discrepancies between historical net churn (adds - deletes) and actual on-disk size have been normalized to
reflect realistic growth patterns.
</div>
<!-- Row 3b: Streamgraph (Repose Style) -->
<section class="chart-box" style="margin-bottom: 30px;">
<div class="chart-header">Longitudinal Tech Evolution (Lines of Code 2009-2025)</div>
<div id="chart-streamgraph" style="height:400px;"></div>
</section>
<!-- Row 4: Trend Category -->
<section class="chart-box">
<div class="chart-header">Longitudinal Category Evolution (Lines of Code 2009-2025)</div>
<div id="chart-category-evolution" style="height:400px;"></div>
</section>
</div>
<div id="footer"></div>
<script src="https://sorukumar.github.io/Bitcoin-Data-Labs/components/app-components.js"></script>
<script src="js/utils.js"></script>
<script src="js/theme.js"></script>
<script src="js/charts-dashboard.js"></script>
<script src="js/charts-codebase.js"></script>
<script src="js/charts-advanced.js"></script>
<script src="js/app.js?v=4"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
BitcoinLabsAppComponents.init({
isApp: true,
appName: 'orange-dev-tracker',
appHomeUrl: 'dashboard.html',
navLinks: [
{ name: 'Dashboard', url: 'dashboard.html' },
{ name: 'Contributors', url: 'contributors.html' },
{ name: 'Codebase', url: 'codebase.html' },
{ name: 'Engineering', url: 'engineering.html' },
{ name: 'Health & Culture', url: 'health.html' },
{ name: 'Methodology', url: 'methodology.html' }
]
});
});
</script>
</body>
</html>