The problem
A design system team makes decisions that affect hundreds of codebases: what to deprecate, which components to invest in, how hard an upgrade will be. Without data, those decisions are guesses, and a deprecation can land on far more code than anyone expected.
What I built
A scanner that reads 420+ repositories, parses their code with Babel ASTs and produces 11 reports, grouped into three questions:
- Adoption. Which components, props and prop values are used, where, and how often: about 90,000 usages in all.
- Consistency. A compliance score: the share of a repository’s JSX that uses SWAN components without custom styles or classes. Token usage in CSS and in JavaScript.
- Bloat. Components, props and values nobody uses, the first candidates for removal.
It also tracks the spread of React, TypeScript and SWAN versions, so we know how far behind teams are before planning a breaking change.
The pipeline runs on a schedule from start to finish: results land in S3, load into Snowflake, and feed Looker dashboards.
For a single page, the SWAN Overlay Chrome extension shows the same idea live: how much of the page is built from SWAN components.
Impact
The dashboards drive the team’s OKRs and deprecation planning. Before a change ships, we know which teams it affects and how much code it touches.