npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

git-will

v0.1.5

Published

Your repo has no will. If you vanish tomorrow, the code dies with you. git-will writes the succession plan while you're still alive.

Readme

git-will

Your repo has no will. If you vanish tomorrow, the code dies with you.

git-will is a zero-dependency Node CLI that reads your git history, shows who actually owns the code, and writes WILL.md — a succession plan for the next maintainer.

Most tools stop at “you have a bus-factor problem.” This one makes you write the will.

About 65% of popular projects have a bus factor ≤ 2 (Wikipedia). Write the plan while you’re still here.

Quick start

npx git-will scan          # see ownership + risk
npx git-will draft         # write WILL.md interactively

Requirements: Node 18+ and git. No npm dependencies. Analysis stays on your machine.

npm i -g git-will          # optional global install

What you get

| Command | Result | |--------|--------| | scan | Terminal report: authors, single-owner files, danger list, repo bus-factor estimate | | scan --json | Same data as versioned JSON (git-will@1) for scripts/CI | | draft | Interactive WILL.md: maintainer, backup, keys, wishes, handoff checklist | | draft --yes | Non-interactive defaults (safe for CI) |

Usage

git-will scan                 # blame-based ownership (accurate)
git-will scan --json          # machine-readable output
git-will scan --fast          # faster approx via git log --numstat
git-will draft                # interactive WILL.md
git-will draft --yes          # CI-friendly defaults
git-will draft --force        # overwrite WILL.md (backs up to WILL.md.bak)
git-will --dir path/to/repo … # analyze another repo without cd
git-will --version

Example scan

┌──────────────────────────────────────────┐
│  GIT WILL — example-app                  │
└──────────────────────────────────────────┘

repo https://github.com/example/example-app.git
branch main  ·  commits 449  ·  repo bus factor ~2

Authors
───────
  ✓ alex                    224439 ██████████████████████████████
  ✓ sam                      86230 ██████████████
  ✓ jordan                    7787 █

Bus factor 1 — files only one person understands
───────────────────────────────────────────────
  ⚠ src/core/engine.js                        96% by sam
  ⚠ src/core/runner.js                        99% by alex

Most dangerous — highest single-owner share
──────────────────────────────────────────
  ✗ src/core/engine.js              15836 lines, 96% by sam
  ✗ src/core/runner.js              10864 lines, 99% by alex

Next: git-will draft — write the will while you're still alive.

Example draft

▸ Who's the main maintainer? [alex]
▸ Who's the backup (the person who'd take over)? []
▸ Who gets the keys (repo access, npm/pypi publish, domain, CI)? []
▸ Your wishes if you can't maintain this anymore? []
▸ Anything future maintainers should know? []

Pipe answers for scripts:

printf "alex\nsam\nalex + sam\narchive if unused\n\n" | git-will draft

How ownership is measured

Defaults are honest heuristics, not academic truck-factor research.

| Signal | Rule | |--------|------| | Per-file ownership | Line authorship via git blame (honors .mailmap) | | Bus factor 1 (file) | One author holds ≥ 80% of counted lines | | Danger files | Bus-factor-1 files with ≥ 85% single-author share (sorted by size) | | Repo bus factor (~N) | Greedy removal of knowledge owners until ≤ 50% of owned files retain an owner | | Skipped noise | Lockfiles, binaries, build output, common generated dirs |

--fast skips blame and approximates ownership from git log --numstat (lines added). Use it on huge repos or tight CI budgets; prefer default blame when accuracy matters.

What’s in WILL.md

A practical handoff doc, not a manifesto:

  • Maintainer, backup, who gets the keys, wishes
  • Ownership snapshot from the last scan
  • First-48-hours checklist for a successor
  • Structured “machine section” for tooling / future maintainers

Never put real secrets in WILL.md — names of people and systems only.

Why this exists

Bus-factor dashboards are common. Succession documents are not.

If the person who knows src/core/ disappears, a chart won’t ship a patch. A will might.

License

MIT