If your top people quit tomorrow, who still knows the code?
One command reads your git history and tells you your bus factor: how many people can leave before most of your code has no active author.
npx github:SAMARTHJAISWAL/lastoneoutRun it inside any git repository. Needs Node 18+. Nothing is uploaded.
Your project:
How famous projects score
What the number means
For every file, lastoneout scores each contributor from three things: who created it, how often they changed it, and how much others changed it. The formula comes from Avelino et al., “A Novel Approach for Estimating Truck Factors” (ICPC 2016).
It then removes the biggest authors one at a time, until the remaining authors cover less than half of the code. That count is the bus factor. The stricter view, and the command line's headline number, first remove anyone with no commit in 12 months.
A low score is a warning, not a verdict. It only sees git history. Reviewers, maintainers who merge other people's work, and everything people carry in their heads are invisible to it. In the stricter view, a 0 means most of the code's main authors have moved on, not that nobody looks after it. Many of these projects have busy maintainers.