gitsaga
The story of your repo in 60 seconds. One command turns git log into a
self-contained, animated, narrated timeline: directories grow as a tree,
contributors fly in to touch files, and captions call out the moments that
mattered — first commit, releases, new contributors, big refactors, long
silences, the day the language mix flipped.
$ pip install gitsaga
$ cd my-project
$ gitsaga --open
That writes story.html: a single file with no network access, no CDN and no
dependencies. Email it, attach it to a release, drop it in a PR.
Why not Gource?
Gource draws a beautiful swarm but never tells you what happened. gitsaga detects milestones from the history and narrates them with a rule-based caption track — no LLM, no API key, nothing leaves your machine.
| gitsaga | Gource | |
|---|---|---|
| Output | one HTML file, scrubbable | realtime OpenGL window |
| Narration of milestones | yes | no |
| Needs a GPU / desktop | no | yes |
| Share it | send the file | screen-record |
| GIF / MP4 | built in (optional extra) | via ffmpeg pipe |
What gets detected
First commit · semver releases (from tags) · the Nth contributor and the top authors joining · new top-level areas · the biggest changes · refactors (25+ renames in one commit) · the busiest 30 days · silences of 6+ months · language leadership shifts · round commit counts · "Today". Milestones are scored and spaced so 12 captions cover the whole arc.
Ownership view: who knows this code?
$ gitsaga --view ownership --open
Same animation, but every directory is coloured by who owns it right now. Press o (or the button) to
flip between languages and owners at any moment.
- A red ring marks an area with a bus factor of 1 (one person accounts for most of its recent changes).
- A dashed amber ring marks an area whose owner has not committed anywhere for 12+ months.
- The HUD shows the repo-wide bus factor over time, and captions call out the moments that matter: "extreview/ loses its owner", "Markus takes over tests/", "The bus factor falls to 1".
Ownership is recency-weighted: a change counts for its directory and every parent, and its weight halves every 18 months, so the owner is whoever worked there most recently and often, not whoever wrote it a decade ago. The bus factor is the fewest people who account for half of that weight. No network, no blame, no file contents — only who touched which directory and when.
Usage
gitsaga [REPO] [-o story.html] [--open]
[--gif FILE] [--mp4 FILE] [--duration SECS]
[--theme dark|light] [--view language|ownership] [--rev REV] [--since DATE] [--milestones N] [--title TEXT]
[--depth N] [--max-dirs N] [--max-commits N]
[--include-bots] [--include-vendor] [--list]
-
gitsaga --since "1 year ago"— just the last year. -
gitsaga --rev v2.0.0— the story up to a tag. -
gitsaga --list— print the detected milestones without rendering. -
Bots (dependabot, renovate…) and noise (lock files, vendored and minified files) are skipped by default;
--include-bots/--include-vendorkeep them. -
gitsaga --theme light— light player (and light GIF/MP4); the URL also accepts?theme=light.
Player keys: space play/pause, ←/→ step, n/p next/previous caption,
click the scrubber to seek. Add ?t=12000 to the URL to open at 12 s.
GIF and MP4
$ pip install 'gitsaga[video]'
$ playwright install chromium
$ gitsaga --gif story.gif # 30 s, 800x450
$ gitsaga --mp4 story.mp4 # 60 s, 1280x720 (needs ffmpeg)
Frames are rendered deterministically by stepping the player's clock in headless Chromium, so output is identical run to run.
Privacy
gitsaga only runs git log/git tag locally. The HTML embeds commit
subjects, author names and file paths from the history — review it before
sharing a private repo's story publicly.
Notes
- Shallow clones lose history; gitsaga warns. Use
git fetch --unshallow. - Very large repos: use
--max-commitsor--since. Commits are bucketed into at most 360 animation steps.
Development
pip install -e ".[dev]"
ruff check . && pytest
MIT licensed.
Metadata
Release files for gitsaga 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gitsaga-0.1.0.tar.gz | 4.4 MB | With provenance | Details for gitsaga-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gitsaga-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for gitsaga-0.1.0-py3-none-any.whl |
Total release size: 4.4 MB
Release files / gitsaga-0.1.0.tar.gz
| Download URL | gitsaga-0.1.0.tar.gz |
|---|---|
| Size | 4.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4ef8b1ecd2bfffd8ddaee4b0b3332bed43e90a982d0f9b660a14160b74a2d3e
|
|
BLAKE2b-256 checksum How to use checksums |
a71aefee64f6841080b24127d88f0f4073fed560e29e7965cbd8a84a97b3e9f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / gitsaga-0.1.0-py3-none-any.whl
| Download URL | gitsaga-0.1.0-py3-none-any.whl |
|---|---|
| Size | 29.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db46bca0a42bab676e559886fa462f6464e77b446714093f65848461ca9551c6
|
|
BLAKE2b-256 checksum How to use checksums |
8fdef91b4b219414d89b904a6ecd82755b7d10f850d12231ce3bc4ade0e375b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for gitsaga 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for gitsaga-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.