What problem does it solve?
Audits a library's published export surface to identify dead or unconsumed subpaths. For each package.json#exports subpath, it checks whether any other fleet repo imports it and whether the lib's own src/ references it, then classifies every subpath (dead / single-consumer / internal-only / consumed) into a ranked report. Read-only — reports prune candidates, never deletes. Use weekly (the audit-api-surface.lock.yml gh-aw cron drives it), before a major version bump, or when trimming bundle size on an infra lib.
Core Features & Use Cases
- Cross-repo export surface auditing across fleet libraries to surface dead exports.
- Classifies subpaths into dead, single-consumer, internal-only, or consumed with a concise report.
- Read-only workflow designed for governance, version-bump planning, and bundle trimming.
Quick Start
Run the audit-api-surface tool on your repository to generate a ranked report of dead, single-consumer, internal-only, and consumed exports.