Idea · Jul 19, 2026
Bus Factor Visualizer
A React + GitHub API tool that analyzes any public repository and generates a treemap of file ownership, bus factor calculations per directory, orphaned code heatmap, and a team health radar chart for use in software engineering courses.
What it would do
Bus factor (how many developers could leave before critical code becomes unmaintained) is a foundational software engineering concept that most students only encounter theoretically. This multi-week classroom assignment asks students to build a GitHub repository analysis tool that makes bus factor tangible through interactive visualization. The tool authenticates with the GitHub API, ingests any public repository's commit history, and computes: per-file ownership percentages (who wrote what fraction of each file's lines), bus factor scores per directory subtree (minimum developer departures before no one with >20% ownership remains), orphaned code identification (files unchanged for 2+ years with no dominant author still active), and a team health radar chart covering five dimensions: coverage breadth (how many people know each area), freshness, concentration risk, commit recency, and issue-response rate. Students build the data pipeline in one sprint (GitHub API + Git log parsing), the visualization layer in a second sprint (D3 treemap + radar), and write a 3-page analysis of a real open-source project of their choice in a third sprint. The assignment teaches API integration, data transformation, D3.js visualization, and empirical software engineering analysis in a coherent project arc.
Key features
- GitHub API integration: ingests commit history and computes per-file authorship fractions
- Interactive D3 treemap of repository file ownership colored by concentration risk
- Bus factor calculator per directory subtree with configurable ownership threshold
- Orphaned code heatmap: files last touched 2+ years ago with no dominant active author
- Team health radar chart across five dimensions: breadth, freshness, concentration, recency, responsiveness
- Three-sprint structure with defined deliverables for classroom use