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-receipt

v1.0.0

Published

Print your git activity as a thermal receipt — commits, lines added, tech debt tax, and more

Readme


Install

npm install -g git-receipt

or run instantly with no install:

npx git-receipt

Demo

  ══════════════════════════════════════════
          ★  THANK YOU FOR CODING  ★
              git-receipt v1.0.0
  ══════════════════════════════════════════
  Date:               Mar 21, 2026  11:42 PM
  Repo:                      my-awesome-app
  Branch:                              main
  Period:                        Last 7 days
  ──────────────────────────────────────────
  COMMIT                               LINES
  ──────────────────────────────────────────
  feat: add auth system                 +847
  fix: token expiry edge case            +23
  refactor: split auth middleware       +112
  chore: update dependencies              +4
  fix: null check on user object          +8
  feat: dashboard UI                    +634
  fix: dashboard layout on mobile        -47
  fix: dashboard mobile AGAIN            -12
  feat: export data to CSV              +203
  ──────────────────────────────────────────
  COMMITS                                  9
  LINES ADDED                         +1,831
  LINES REMOVED                         -247
  NET CHANGE                          +1,584
  ··········································
  TAX  (tech debt)                   3 TODOs
  ══════════════════════════════════════════
  CASHIER:                        Jay Smith
  TOP CONTRIB:                    Alice Chen
  GIT:                               2.43.0
  SHELL:                                zsh
  ══════════════════════════════════════════

            THANK YOU, COME AGAIN!
         git commit -m "see you soon"

  ══════════════════════════════════════════
  ★ Keep your .env out of git history
  ★ Small PRs get reviewed, big PRs get merged blindly
  ★ Write the commit message you wish you'd found
  ══════════════════════════════════════════
    | ||| | || ||| || | ||| | || ||| || |
              [email protected]

Usage

# Today's commits (default)
git-receipt

# Last 7 days
git-receipt --week

# Last 30 days
git-receipt --month

# Full repo history
git-receipt --all

# Custom date range
git-receipt --since "Mar 1"
git-receipt --since "2 weeks ago"

# Someone else's receipt
git-receipt --author "Alice"
git-receipt --author "[email protected]"

# Specific branch
git-receipt --branch develop

# Help
git-receipt --help

What's on the receipt

| Section | Description | |---|---| | Date / Repo / Branch | When, where, and what you're printing | | Period | The time range being summarized | | Commit list | Each commit with lines added/removed (up to 22 shown) | | COMMITS | Total commit count in the period | | LINES ADDED | Total insertions across all commits | | LINES REMOVED | Total deletions across all commits | | NET CHANGE | The real size of your contribution | | TAX (tech debt) | Count of TODO, FIXME, HACK comments in the codebase | | CASHIER | Your git config user.name | | TOP CONTRIB | Most prolific committer in the repo (if not you) | | Tips | 3 random coding wisdom tips, different every run | | Barcode | Your git email, encoded as art |


How it works

git log --numstat    →  commits + per-file line stats
       ↓
  aggregate          →  total added, removed, net per commit
       ↓
  git grep           →  count TODO/FIXME/HACK in codebase
       ↓
  render             →  42-char wide thermal receipt format

Requirements

| | | |---|---| | Node.js | >= 18 | | Git | Installed and on your PATH | | Location | Must run from inside a git repository |


FAQ

Thermal receipts are long but not infinite. If you have more than 22 commits in the period, the receipt shows the most recent 22 and prints ... and X more at the bottom. Use --week or --since to narrow the range.

Any occurrence of TODO, FIXME, or HACK in tracked files — scanned with git grep. It reflects the current state of the repo, not the selected period.

Yes — use --author:

git-receipt --week --author "Alice"

Great for sprint reviews or roasting your teammates.

Yes. 3 tips are picked randomly from a pool of 15 each run. Think of it as a fortune cookie at the bottom of your receipt.


Author

Made by Rakesh Bisht


License

MIT