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

@isalo/gtm

v0.2.0

Published

Analyze Git history to understand why code is the way it is: summaries, hotspots, file history, ownership.

Readme

Git Time Machine (gtm)

npm version npm downloads CI Publish provenance license node

Analyze Git history to understand why code is the way it is.

git log and git blame show raw data but rarely the story. Git Time Machine summarizes repository history, finds risky files, explains a file's evolution, and reveals who owns which parts of the codebase — perfect for onboarding into legacy projects.

Install / Run

No install needed — run via npx:

npx @isalo/gtm summary

Or install globally:

npm install -g @isalo/gtm
gtm summary

Commands

| Command | Status | Description | | --------------------- | ------------ | ---------------------------------------------------------------------------- | | gtm summary | ✅ available | High-level overview: commits, authors, age, top contributors, recent commits | | gtm hotspots | ✅ available | List risky, frequently-changed files (ranked by churn + author spread) | | gtm explain <path> | ✅ available | Summarize the history and ownership of a path | | gtm timeline <path> | ✅ available | Chronological change timeline for a path | | gtm author <name> | ✅ available | Contribution profile for an author (matched by name or email) | | gtm coupling | ✅ available | Files that frequently change together (temporal coupling) | | gtm bus-factor | ✅ available | Files dominated by a single author (knowledge silos) | | gtm activity | ✅ available | Commit cadence: weekday/hour heatmap + monthly trend | | gtm report | ✅ available | Self-contained HTML dashboard (all of the above combined) |

Per-command extras:

  • gtm hotspots-t, --top <count> (default 20)
  • gtm coupling-t, --top <count> (default 20), -m, --min-shared <count> (default 3)
  • gtm bus-factor-t, --top <count> (default 20), --threshold <0-100> (default 80)
  • gtm report-o, --output <file> (default gtm-report.html), -t, --top <count>

Global options

Every command supports:

| Flag | Description | | ------------------- | ----------------------------------------------------------- | | --json | Output machine-readable JSON (for scripts / CI / future AI) | | -r, --repo <path> | Target repository (default: current directory) | | -n, --max <count> | Limit analysis to the last N commits | | --since <date> | Only include commits since a git-parseable date |

Examples

gtm summary                       # overview of the current repo
gtm summary --repo ../other-repo  # overview of another repo
gtm summary --json                # JSON output for tooling
gtm summary --since "3 months ago"

gtm hotspots --top 10             # 10 riskiest files
gtm explain src/app/index.ts      # history + ownership of a file
gtm timeline src/app/index.ts     # chronological change timeline
gtm author "Jane"                 # contribution profile (name or email)
gtm coupling --top 15             # files that change together
gtm bus-factor --threshold 90     # files >=90% owned by one author
gtm activity                      # commit cadence heatmap + trend
gtm report -o report.html         # self-contained HTML dashboard
gtm report --json                 # combined dataset as JSON (for CI/AI)

Architecture

Clean, layered, and dependency-directed (cli → analyzers → git):

src/
  index.ts            # programmatic library entry
  cli/                # commander wiring + thin command adapters
    main.ts           # bin entry, single top-level error handler
    program.ts        # global options + command registration
    shared.ts         # option parsing, spinner, output dispatch
    commands/         # one file per command
  core/
    git/              # the only layer that talks to `git` (execa)
    analyzers/        # pure business logic, unit-testable, no I/O
    models/           # typed domain models (the stable contract)
  output/             # renderers (text/json today; html/ai later)
  utils/              # typed errors, logging

Design principles

  • Strict TypeScript (strict, noUncheckedIndexedAccess, exactOptionalPropertyTypes).
  • Separation of concerns: analyzers never print; renderers never call git.
  • Graceful errors: typed GtmError hierarchy → friendly messages + exit codes.
  • Cross-platform: pure git CLI via execa, locale-pinned output.
  • Extensible: --json everywhere; the same core powers future HTML reports, AI summaries, a local cache, and GitHub Actions.

Roadmap

  • [x] summary, hotspots, explain, timeline, author commands
  • [x] coupling, bus-factor, activity commands
  • [x] HTML report renderer (gtm report)
  • [ ] AI-assisted summaries (opt-in, no API required for core features)
  • [ ] Local SQLite cache for large repositories
  • [ ] GitHub Actions integration

Development

npm install
npm run build        # compile to dist/
npm run typecheck    # type-only check
npm run lint         # eslint
npm run format       # prettier --write
npm test             # run the vitest suite
node dist/cli/main.js summary

See CONTRIBUTING.md for conventions and the full check suite, and CHANGELOG.md for release notes.

Author

Created and maintained by Ivan Salo (@isalo).

License

MIT © Ivan Salo