Inspiration

Every large codebase has a few places where bugs keep coming back, but static-analysis tools bury them under hundreds of warnings. We wanted something that answers the question a team actually has: what should we fix first, and why? We were also curious about the CHECK24 question of whether code quality changed once AI coding tools became common in early 2025.

What it does

Blueprint scans any GitHub repository and gives you a prioritised, evidence-backed quality report with an interactive map of the code.

Fix first, not 500 warnings. Problems are ranked into three tiers. P1 means high-impact bugs (security, crash, data loss, concurrency) that have a structural cause. P2 means bug history plus a structural cause or hotspot. P3 is a watch list. Nine kinds of problems: hotspots, dependency cycles, hubs, god files, unstable dependencies, hidden coupling (files that always change together without importing each other), untested churn, knowledge risk (one person owns the code), and architecture-rule violations. Exact lines to change. Every finding links to GitHub at the analysed commit and shows the line of code, what to do with it, and the other lines that use it. For a cycle, it names the exact imports to cut. Traceable. Clicking a finding highlights it in the dependency graph. Cycles open a file view with the imports to remove drawn in red. History and validation. Blueprint re-runs the same analysis on older versions of the repo. It shows what was fixed and by whom, and compares each module side by side (March 2025 vs one year later) to say whether it got better or worse. Any repo, one command: python analyze.py clones the repo, detects its languages and structure, runs everything, and opens the site. It supports Java, Python, Go and TypeScript, frontend and backend. Open output. Everything is exported as JSON, CSV and SARIF, so other tools (GitHub code scanning, IDEs, spreadsheets) can use it. How we built it Structure: Emerge parses imports in every language. We wrote our own resolvers for Java (including same-package classes, which need no import), TypeScript path aliases, Python modules and Go packages, then used networkx to find cycles, hubs and module instability. Complexity: lizard measures complexity per function, with exact line ranges. History: git log gives churn, authors, co-change and bug-fix commits. Bug fixes are categorised by impact. AI only where rules aren't enough: an LLM classifies just the bug-fix commits behind the top items, using four signals (commit message, PR labels, the diff, and the changed files). It also writes short explanations from the measured facts. Everything else is deterministic, and the AI output is cached and labelled in the UI. Snapshots: git worktrees analyse older versions in parallel, using the same method and the same 12-month window, so the comparison is fair. Frontend: a static site in plain JavaScript with Cytoscape.js. No build step: just serve the folder. Challenges we ran into Making dependency graphs correct across languages. Out of the box, many internal imports weren't resolved. Java classes in the same package use each other without any import, which hid 18% of Artemis's real dependencies until we added same-package detection. Noise. Keyword-based bug detection flagged features as fixes (in Artemis, "test run" is a feature). Bulk refactors made one person look like the sole owner of hundreds of files. Re-export index.ts files looked like hubs. Each needed its own fix. A fair "before vs after". The current analysis covers more history than the snapshots, so we added a same-window "now" snapshot and normalised findings per 1,000 files, because Artemis nearly doubled in size. Speed on 2M-line repos. We parallelised snapshots and parsing, and added a quick mode. Accomplishments that we're proud of The findings predict bugs. On Artemis, files we flagged in March 2025 were 8% of the codebase but received 34% of the next year's high-impact bug fixes, 6.3× more per file than the rest. This is computed from git history only, with no AI involved. We checked a result by hand. We verified one result on gin against the raw git history and found every number matched. The function Blueprint told us to split (findCaseInsensitivePathRec) was exactly where a later panic fix landed. Works on four very different codebases: Artemis (Java + Angular), Apache Superset (Python + React), Mattermost (Go + React), plus any repo through auto-configuration. A clear before/after story: Artemis went from 27 to 16 findings per 1,000 files after March 2025, while growing a lot. What we learned A finding is only useful if it says where and what to do. Exact lines and the imports to cut mattered more than any score. Combining structure with history is far more convincing than either alone: a complex file that never changes is not a priority, and one that keeps causing crashes is. Validating against real history keeps you honest. Several of our first metrics looked reasonable but didn't hold up until we fixed the noise. What's next for Blueprint Analyse only changed files between snapshots, to make runs much faster. More languages (Kotlin, C#, PHP), and monorepo package detection without tsconfig paths. Run on every pull request, so a team sees whether a change makes a module better or worse before merging. A learning mode built on the same findings, where students fix a real problem, re-run the check and see their progress.

Built With

Share this project:

Updates

Submission history