You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,6 @@ CLI that computes **per-author** GitHub language statistics by inspecting the fi
4
4
5
5
Unlike `GET /repos/{owner}/{repo}/languages` (which returns repo-wide bytes regardless of who wrote them), this tool only counts lines in files **you personally changed**.
6
6
7
-
## Screenshot
8
-
9
-
Example of how the output data can be visualized — this chart is from the IndieCV app by smallstack, built on top of the JSON data this tool produces:
GitHub's default profile has two major limitations:
@@ -39,6 +32,11 @@ Perfect for portfolios, resumes, and demonstrating your real technical expertise
39
32
40
33
Progress is cached in `.github-lang-stats-cache/<user>.json` so **interrupted runs resume from where they left off**.
41
34
35
+
> **⚠️ Former employer / removed from org?**
36
+
> Phase 3 requires **current read access** to each repository. If you've since been removed from a private org or repo, those `GET /commits/:sha` calls will return `404` and no language stats will be collected for that work.
37
+
>
38
+
> **Workaround:** Run the tool while you still have access and keep the cache file. On future runs the tool will use cached data, so your stats remain intact even after access is revoked.
39
+
42
40
**Note**: PR counts are collected by default starting with Phase 4. Use `--exclude-pr-counts` to skip this phase if you don't need PR data. The Search API has a stricter rate limit (30 requests/minute), so PR collection includes automatic 2-second delays between requests.
43
41
44
42
## Metric: `lines_changed`
@@ -247,6 +245,12 @@ When `--exclude-pr-counts` is used, the metadata includes `"excludedPRs": true`.
247
245
-**Exclude infrastructure languages** with `--exclude-langs HCL,Dockerfile` if teammates committed those to repos you also touched.
248
246
-**Adjust concurrency** carefully — GitHub's [secondary rate limits](https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api) may trigger at high concurrency even if your primary limit is not exhausted. `5` is a safe default.
249
247
248
+
## Screenshot
249
+
250
+
Example of how the output data can be visualized — this chart is from the IndieCV app by smallstack, built on top of the JSON data this tool produces:
Made by [smallstack GmbH](https://smallstack.com) · [GitHub](https://github.com/smallstack/github-lang-stats) · [npm](https://www.npmjs.com/package/github-lang-stats)
0 commit comments