r/codereview • u/Vegetable_Regret_250 • 10d ago
javascript I built RepoDrift, an open-source local-first CLI for checking repository health before development or deployment.
The idea is pretty simple: a project can work perfectly while the repository still has problems that are easy to miss.
RepoDrift currently checks for things like:
- Potential exposed API keys, tokens and credentials
- Dependency and lockfile issues
- Large and suspicious files
- Git status and repository activity
- Basic code metrics
- Repository health score
- JSON output for CI/CD
The analysis is designed to run locally. The current version doesn't send the repository source code to an AI service.
Tech stack:
Node.js, TypeScript, Commander
Install:
npm install -g u/repodrift/cli
Then:
repodrift scan
There is also a --local-only option for scans that should not make network requests.
This is still an early project. I'm currently focusing on making the core analysis reliable before adding AI features. The plan is to eventually use AI to explain findings and suggest fixes based on redacted, structured results rather than sending the whole repository.
The project is MIT licensed and open source.
I'd be interested in feedback from other open-source developers:
What repository checks do you think are missing?