Mergeprint
See what you actually shipped. PR throughput, backlog, merge time, sizes and period-over-period
trends, built locally from the gh CLI. The contribution graph says you were busy; this says what landed.
local-first · private repos supported · one self-contained HTML report
One command
uvx mergeprint # or: pipx run mergeprint
Needs Python 3.9+ and the gh CLI logged in. Nothing else.
Bleeding edge: uvx --from git+https://github.com/kirilklein/mergeprint mergeprint.
GitHub account [octodev]:
Days to cover [366]:
Public repositories only (private activity never touches disk) [Y/n]:
Repositories to exclude, comma-separated globs like acme/*:
Timezone (IANA name) [Europe/Berlin]:
Country code for public holidays [DE]:
Enter keeps every default. About five minutes later out/index.html opens in your browser. Then use
Settings on the page for days off and events: every number recomputes instantly, nothing is
rebuilt. mergeprint --yes skips the questions, --no-open skips the browser.
Prefer a clone? git clone https://github.com/kirilklein/mergeprint && cd mergeprint && ./refresh.sh.
Explore your report
- Overview: four headline metrics, trailing cadence, monthly activity, repository search, and highlights.
- Explore: cumulative progress, historical backlog, size vs. wait, merge timing, lines moved, and expandable top-five records.
- Filters: choose 30 days, 90 days, or the full collected range, or enter your own dates. Repository selection applies to both PRs and issues. The repository table remains an overview so you can switch between repositories.
- Comparisons: equal-length preceding periods, only when both fit inside the collected data. Counts and business-day rates appear together.
- Settings: timezone, country holidays, time off, events, and hiding repository names for screenshots. Light, dark, and automatic themes are supported.
Older raw.json files still build, but the backlog chart asks you to collect again because those
snapshots did not include open PRs. A saved report is a snapshot, not a live inbox.
Your data stays yours
- Fetched data (
raw.json), your answers (config.local.json) and the built page (out/) are written to the current directory and git-ignored. Nothing personal can end up in a fork by accident. - The page is one self-contained HTML file. It makes no requests (fonts aside) and stores your settings in your browser only.
- Sharing is a separate, explicit step: send the file, or run
./publish.sh, which asks before it pushes to a publicgh-pagesbranch. - A shareable version without repository names:
--anonymize-reposon the build. Without private repos at all: answer yes to public only and the search itself excludes them, so they never reach disk.
More control
python3 -m mergeprint.collect --account someone-else --end 2026-06-30 --days 180
python3 -m mergeprint.collect --exclude-repo 'acme/*' --exclude-repo octodev/dotfiles
python3 -m mergeprint.build --out out/index.html --anonymize-repos
Persistent defaults live in config.local.json (same keys as mergeprint/config.json):
{"timezone": "Europe/Berlin", "country": "DE", "public_only": true,
"off_days": ["2026-07-06..2026-07-24"], "events": [["2026-03-25", "conference"]]}
Using a coding agent
The repo is small and documented for agents (AGENTS.md). One-line asks that work well:
- "Run
mergeprintand open the result." - "Add my vacation from 6 to 24 July to the config and rebuild."
- "Add a chart of merges per repository per month."
- "Build a version without repo names and publish it to gh-pages."
How it works
collect.py uses gh api search/issues for authored PRs overlapping the period, including still-open
PRs and PRs closed after the selected end date, and for issues opened in the period. Dense date
ranges are split to respect GitHub's search cap; incomplete results stop collection rather than
produce a partial report. gh pr list supplies sizes for the busiest repositories. build.py inlines
those rows, your defaults and a bundled public-holiday table (250 countries, via the
holidays package at generation time) into template.html.
All aggregation happens in the page, in plain JavaScript with inline SVG charts.
Conventions:
- Business days exclude weekends, the chosen country's public holidays and your days off. An unlisted day off inflates the denominator, so the per-business-day rate is a floor.
- Lines of code count only PRs at or below
big_pr(10,000) changed lines. Size coverage is reported explicitly; the threshold does not determine whether code is generated or vendored. - Issues are counted by creation date: issues opened by the account.
- Timestamps are converted to the chosen timezone in the browser, DST-aware.
- Backlog uses creation and closure timestamps, including PRs closed after the selected window. The final partial week ends at the selected date. Reopen cycles are not reconstructed.
- Merge timing describes when PRs landed, including merges performed by maintainers. It does not measure the author's working hours or impact.
Development checks
./demo.sh
python3 -m py_compile mergeprint/*.py demo/*.py tools/*.py
python3 -m unittest discover -s tests -v
node --test tests/metrics.cjs
uvx --from . mergeprint --help
Node is needed only for the aggregation tests, not to build or view a report. In a browser, check both views, the date and repository filters, records, settings, and mobile layout.
The demo is a deterministic synthetic year for a fictional octodev; ./demo.sh regenerates it into
docs/index.html, the only built page tracked in git.
MIT licensed.
Metadata
Release files for mergeprint 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 |
|---|---|---|---|---|
| mergeprint-0.1.0.tar.gz | 61.3 kB | With provenance | Details for mergeprint-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mergeprint-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mergeprint-0.1.0-py3-none-any.whl |
Total release size: 120.4 kB
Release files / mergeprint-0.1.0.tar.gz
| Download URL | mergeprint-0.1.0.tar.gz |
|---|---|
| Size | 61.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b09c26105217d2aab19823c48dcc693e1edb5a244257968b894a6f8dac8e678
|
|
BLAKE2b-256 checksum How to use checksums |
b75ad5ef1360c09c33ae3097ee1d5d9233e80bd3757a0e61416d66a55ab5339a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 5, 2026.
Transparency logRelease files / mergeprint-0.1.0-py3-none-any.whl
| Download URL | mergeprint-0.1.0-py3-none-any.whl |
|---|---|
| Size | 59.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6f18820c8592d118c92c057f64eba9dadfbd32314ee4b33b77cf393b337891c
|
|
BLAKE2b-256 checksum How to use checksums |
42e2b679a35badeda368f07950248bbdf5001956c16882ddebbadc7538341b85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 5, 2026.
Transparency logSecurity for mergeprint 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 mergeprint-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 Sep 5, 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.