An animated, shareable story of your code — generated 100% locally in one command. No account. No API key. No upload. Zero dependencies.
npx git-recap · run it in any repo · scroll through it
| The story (up to 11 slides) | Every day you showed up |
|---|---|
![]() |
![]() |
| Who did the work | The verdict 👏 |
![]() |
![]() |
And the share card — generated as recap.svg, made to be embedded in your README. The colour is your verdict, so no two people get the same card:
Wrapped-style recaps are the most shared format on the internet (Spotify proved it). Every card someone posts — in a README, a tweet, a standup slide — is an ad for the tool. git-recap is built around that loop:
- The story —
recap.html, a full-screen animated recap of any repo: your heatmap, power hours, language donut, ride-or-die files, commit lingo ("fix" ×321), 3AM commits, and a personality verdict with confetti. - The card —
recap.svg, a 1200×630 digest. Perfect size for a README and for the repo's social preview image. This is the piece that self-propagates: every README it lands in markets the tool to everyone who visits. - The end card — the story ends with
npx git-recap, so every share teaches the next person how to make their own.
cd your-project
npx git-recapThat's it. It writes to ./git-recap/:
| File | What it is |
|---|---|
recap.html |
The animated story. Opens in your browser and scrolls like a page. |
recap.svg |
Share card for your README / social preview. Landscape, 1200×630. |
recap-story.svg |
The same card in portrait, sized for a phone feed. |
recap.json |
The raw stats — do whatever you want with them. |
npx git-recap [repo-path] [options]
--year 2025 # wrap a single year
--since / --until # any git date range
--author "name" # wrap one person's year
--theme synth # night (default) · synth · forest
--out <dir> # output elsewhere
--no-open # don't launch the browser
--json # stats to stdout, for scriptsnpx git-recap ~/$YOUR_REPO --year 2025 --no-open
cp $YOUR_REPO/git-recap/recap.svg .name: recap
on:
schedule: [{ cron: "0 9 1 1 *" }] # every Jan 1
workflow_dispatch:
permissions: { contents: write }
jobs:
wrap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 } # full history
- uses: actions/setup-node@v4
- run: npx -y git-recap . --year $(date -d "last year" +%Y) --no-open --out .
- run: |
git config user.name "recap-bot" && git config user.email "bot@users.noreply.github.com"
git add recap.svg && git commit -m "wrap: $(date -d 'last year' +%Y)" || exit 0
git pushEverything from one git log --numstat pass over your history:
- Commit volume, active days, averages, +/− line counts
- 52-week heatmap, longest streak, current streak, busiest day/month
- Power-hour clock (24-hour radial chart) and weekday rhythm
- Language ranking by lines written (60+ extensions recognized)
- Ride-or-die files by churn
- Commit lingo — top verbs, "wip" count, emoji commits, your longest message
- Ghost hours — commits between midnight and 5am
- Your verdict — one of 9 deterministic coding personalities
Everything runs on your machine with the git binary you already have. There is no server, no telemetry, no network call. It reads, it computes, it writes four files. Read the whole source — it's ~1,600 lines with zero dependencies.
PRs welcome — verdicts, themes, and languages are all data-driven tables, so adding one is a great first issue.
MIT © 2026 sutharsan




